On 08/17/2010 10:18 PM, Beni Cherniavsky-Paskin wrote:
> Thanks, updated the wiki with your solution.
> I had a much more involved scheme somewhere, allowing switching both ways.
> Will try to find and post it too next week when I get home.
>
> Which reminds me of a question: should $SHELL be set to /usr/bin/fish or
> not?
> I'm not clear on what it affects, and whether it's safe to use a
> bourne-incompatible $SHELL.
> Can anyone shed light on this?

I can only offer my own experience of doing this.  Occasionally things 
break, but not with any great frequency.  The most recent issue was xpra 
which tried to execute "$HOME/.xpra/run-xpra.sh" over ssh.  This was 
promptly fixed (and xpra included a flag for the remote command, making 
it an easy issue to work around), so no big deal.

The only major issue --- and it's a fish issue, not a Bourne shell 
incompatibility --- is that fish hangs when used as the login shell at a 
text console.  As in, if a program hang with a keyboard grab in X and I 
try to switch to a text console to kill it, when I log in I simply get a 
fish process consuming 100% CPU (thank goodness for SysReq keys).  Can 
anybody offer insight into this problem?

> On Tue, Aug 17, 2010 at 14:20, David Schein <[email protected]
> <mailto:[email protected]>> wrote:
>
>     The wiki has a note on the BashToFish page[1] saying:
>       TODO: doing this uncoditionally will prevent
>       you from occasionally switching to bash from
>       by fish simply by typing "bash".
>
>     I use this snippet as the last line in my .bashrc and
>     it works well:
>
>       [ -z "$fish_on" ] && export fish_on=1 && exec fish "$@"

You should also test ! -z "$TERM" or sshfs may break.

>     I cannot edit the wiki so I thought I would post it here.
>
>     Peace,
>     David
>
>     [1] http://fishshell.org/wiki/moin.cgi/BashToFish

Thanks,
Tom Most

------------------------------------------------------------------------------
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
_______________________________________________
Fish-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fish-users

Reply via email to