Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: conflict of "exec zsh" with scp
- X-seq: zsh-users 12413
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: ZSH User List <zsh-users@xxxxxxxxxx>
- Subject: Re: conflict of "exec zsh" with scp
- Date: Thu, 10 Jan 2008 07:52:00 -0800
- In-reply-to: <20080110095128.GA13970@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>
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