Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: conflict of "exec zsh" with scp
- X-seq: zsh-users 12444
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: ZSH User List <zsh-users@xxxxxxxxxx>
- Subject: Re: conflict of "exec zsh" with scp
- Date: Wed, 16 Jan 2008 08:03:07 -0800
- In-reply-to: <20080116120005.GA16058@xxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <20080108220102.GB20640@xxxxxxxxx> <080108210151.ZM6361@xxxxxxxxxxxxxxxxxxxxxx> <080108233407.ZM6480@xxxxxxxxxxxxxxxxxxxxxx> <47841108.4020903@xxxxxxxxxxxxx> <20080109170542.GC20640@xxxxxxxxx> <080109182144.ZM7912@xxxxxxxxxxxxxxxxxxxxxx> <20080110095128.GA13970@xxxxxxxxx> <080110075200.ZM9269@xxxxxxxxxxxxxxxxxxxxxx> <20080116120005.GA16058@xxxxxxxxx>
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