vercel / vercel/hyper

Bash syntax error: unexpected end of file; Hyper-3.2.3.AppImage on Fedora 36 Silverblue

Open
#6,549 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
44.7k
Forks
3.6k
Avg merge
21m
Merged PRs (30d)
1

Description

OS

Fedora Silverblue 36 Version: 36.20220519.0

Disclaimer: Fedora Silverblue is immutable. Some directories cannot be written to. I'm new to the OS and not sure if the error described here is a result of the nature of Silverblue or Hyper. The Gnome Terminal app included with Silverblue does not show the same error.

Setup

I downloaded Hyper-3.2.3.AppImage from https://hyper.is/#installation and chmod +x Hyper-3.2.3.AppImage .

Reproduce Error

When opening Hyper, a bash error is displayed:

bash: which: line 1: syntax error: unexpected end of file
bash: error importing function definition for `which'
/usr/bin/sh: which: line 1: syntax error: unexpected end of file
/usr/bin/sh: error importing function definition for `which'
/usr/bin/sh: which: line 1: syntax error: unexpected end of file
/usr/bin/sh: error importing function definition for `which'
/usr/bin/sh: which: line 1: syntax error: unexpected end of file
/usr/bin/sh: error importing function definition for `which'
[user@fedora ~]$ 

Run clear to remove the error output and continue running commands as normal. I'm not sure if a command running later could break as a result of this error.

The error output returns if you reload Hyper with Ctrl+Shift+F5 or going to the Menu and selecting View > Full Reload. Then you can clear it again and continue.

Expected Behaviour

No bash error displayed upon opening or refreshing Hyper.

[user@fedora ~]$ 

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the launch and Ctrl+Shift+F5 reload behavior with Hyper-3.2.3.AppImage on Fedora Silverblue 36, then inspect how the shell environment imports the which function. Done means opening and refreshing Hyper no longer prints the Bash or /usr/bin/sh syntax errors.

Written by the indexing model from the issue text.

Assessment

Tech stack
bash, linux
Domain
cli, operating-systems
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.