hyper icon indicating copy to clipboard operation
hyper copied to clipboard

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

Open samjcarter opened this issue 3 years ago • 3 comments

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 ~]$ 

samjcarter avatar May 20 '22 10:05 samjcarter

I get this on the standard Fedora 35 and 36 distributions as well, so this isn't specific to silverblue.

ReneeVandervelde avatar May 22 '22 21:05 ReneeVandervelde

This error does not occur in 3.2.0, And seems to have been introduced in 3.2.1

ReneeVandervelde avatar May 22 '22 21:05 ReneeVandervelde

I'm getting this too with the 3.4.1 version on AlmaLinux

UNakade avatar Mar 19 '24 14:03 UNakade