Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Move command line options to start of line
- X-seq: zsh-users 10810
- From: Dan Nelson <dnelson@xxxxxxxxxxxxxxx>
- To: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- Subject: Re: Move command line options to start of line
- Date: Sat, 7 Oct 2006 12:21:38 -0500
- Cc: Zsh users list <zsh-users@xxxxxxxxxx>
- In-reply-to: <061007053926.ZM30314@xxxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <200610071202.k97C2BbC003441@xxxxxxxxxxxxxxxxx> <061007053926.ZM30314@xxxxxxxxxxxxxxxxxxxxxx>
In the last episode (Oct 07), Bart Schaefer said:
> On Oct 7, 1:02pm, Peter Stephenson wrote:
> } Consider (example contrived on the spur of the moment, but not
> } wholly unrealistic):
> }
> } su -c 'rm -f .zshrc' username -l
>
> But does
>
> su -c'rm -f .zshrc' username
>
> work in a true POSIX shell? Is it required to?
su isn't POSIX, but I don't think either of the above commands should
work. -c isn't an option to su, it's an option to the shell launched
by su, so it should follow the username. Linux's su apparently passes
-c on to the shell, but no other OSes do (and some use -c themselves).
--
Dan Nelson
dnelson@xxxxxxxxxxxxxxx
Messages sorted by:
Reverse Date,
Date,
Thread,
Author