vercel / hyper

A terminal built on web technologies
https://hyper.is
MIT License
43.27k stars 3.52k forks source link

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

Open samjcarter opened 2 years ago

samjcarter commented 2 years ago

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 ~]$ 
ReneeVandervelde commented 2 years ago

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

ReneeVandervelde commented 2 years ago

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

UNakade commented 6 months ago

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