Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: conflict of "exec zsh" with scp
- X-seq: zsh-users 12408
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: ZSH User List <zsh-users@xxxxxxxxxx>
- Subject: Re: conflict of "exec zsh" with scp
- Date: Wed, 09 Jan 2008 18:21:44 -0800
- In-reply-to: <20080109170542.GC20640@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>
On Jan 9, 6:05pm, Andy Spiegl wrote:
}
} > However, if want you really want is to NOT exec zsh for scp, then it may
} > be sufficient to change the test to:
} >
} > [[ ! -t 0 && "$REALUSER" == "Andy Spiegl" ]]
} Without the "!" it works.
Yes, I don't know why I had my head on backwards for that message.
} But why did you mention whether I really don't want to use zsh for scp?
} Is there any disadvantage?
As you're in a shared environment, it's conceivable that there are other
scripts that might run scp or a non-interactive ssh and depend on bash
semantics on the far end.
The main reason to care one way or the other is globbing. If you pass a
glob pattern to the remote system (which only makes sense if the remote
system is the source of the copy, really), you'll be restricted to bash
patterns unless you can figure out how to get zsh to run.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author