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

Re: conflict of "exec zsh" with scp



On Jan 10, 10:51am, Andy Spiegl wrote:
}
} So if I want zsh to run for non-interactive shells, how would I do that?

It may not be possible.

} 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.



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