rice7th / swef

The Should Work Everywhere Fetch... or at least it should
MIT License
19 stars 2 forks source link

Wrong shell #6

Closed polluks closed 2 years ago

polluks commented 2 years ago

macOS uses zsh

  __()_         os: Mac Os
.'     '.       wm: Quartz Compositor
|      (        kn: Darwin 21.5.0
'._____.'       sh: sh
$ echo $SHELL
/bin/zsh
rice7th commented 2 years ago

This is a common bug caused by the $SHELL variable. I will look forward and fix that.

rice7th commented 2 years ago

should be fixed now

rice7th commented 2 years ago

Okay, so, the bug was the fact that in swef, if the basename program is not found, then it will fallback to sh. Now if there is no basename, it will just display $SHELL. This means that you will get /bin/zsh instead of zsh