Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

We found one annoying case[0], and one critical case[1].

The annoying case is vim plugins that use $SHELL to execute some bash/sh code. The workaround is to specify `set shell=sh` in .vimrc. We did not attempt to address this in fish (I didn't check but I would guess that tcsh is affected the same way).

The critical case is, at the login window, OpenSUSE invokes the login shell with a POSIX-ism (specifically 'exec "${@}"'), which was not recognized by fish. So setting fish as your login shell would lock OpenSUSE users out of their machines entirely!

What we did was hack fish to recognize exactly this command in its arguments, and handle it the way OpenSUSE expects, via a new function "fish_xdm_login_hack_hack_hack_hack". Heh.

[0] https://github.com/fish-shell/fish-shell/issues/145

[1] https://github.com/fish-shell/fish-shell/issues/367



Thank you for this!!! I tried out fish for a while but vi broke and I just reverted back to bash. I might give it a second try now.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: