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

Re: conflict of "exec zsh" with scp



On Jan 16,  1:00pm, Andy Spiegl wrote:
} Subject: Re: conflict of "exec zsh" with scp
}
} Bart Schaefer wrote:
} > }  lama:~>scp admin@otherhost:/etc/passwd .
} > }  zsh: string expected after -c
} > 
} > That indicates that the command passed to "sh -c ..." is not available
} 
} Uhm, I can't follow you (yet).  If $@ contains the additional args, why
} isn't zsh -$- "$@" enough then?

Try this:

    bash -c 'print zsh -$- "$@"' more args here

Note that neither the "-c ..." nor the word "more" are printed.  Both
of those are needed to correctly excute a new shell for the command that
scp originally passed to bash, but you can't get at them.



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