Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: conflict of "exec zsh" with scp



On 2008-01-10 23:10:48 +0100, Anonymous bin ich wrote:
> You might be able to rectify problem once and for all by having
> something like this before your .bashrc:
> 
> if [ -n "$(echo $- | grep i)" ]; then
>   if [[ "$REALUSER" == "Andy Spiegl" ]]; then
>     which zsh >/dev/null 2>&1 && exec zsh -l
>   fi
> fi

This would have the effect to run zsh when one types bash from zsh.
This is bad as one may want to be able to use bash even though the
preferred login shell is zsh.

-- 
Vincent Lefèvre <vincent@xxxxxxxxxx> - Web: <http://www.vinc17.org/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.org/blog/>
Work: CR INRIA - computer arithmetic / Arenaire project (LIP, ENS-Lyon)



Messages sorted by: Reverse Date, Date, Thread, Author