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

Re: exec -l



On Monday 2007-04-30 11:15 +1000, Dave Yost output:
:Why does zsh not have "exec -l" a la bash?

"PRECOMMAND MODIFIERS
-      The command is executed with a  `-' prepended to its argv[0] string."

% ssh -t someserver "cd $(pwd) && exec - \$0"

or

% ssh -t someserver "cd $(pwd) && ARGV0=-\$0 exec \$0"



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