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

Re: conflict of "exec zsh" with scp



Bart Schaefer wrote:
> } Putting
> }  exec zsh -$- "$@"
> } into .bashrc only leads to:
> } 
> }  lama:~>scp admin@otherhost:/etc/passwd .
> }  zsh: string expected after -c
> 
> That indicates that the command passed to "sh -c ..." is not available
> to be passed along to the new shell that's exec'd.  Which makes sense
> now that I think about it, because "$@" will be any additional args
> that came after the command for -c.

Uhm, I can't follow you (yet).  If $@ contains the additional args, why
isn't zsh -$- "$@" enough then?

Thx,
 Andy.

-- 
 You will find that the State is the kind of organization which, while it does
 big things badly, does small things badly too.



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