Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: sourcing a sh file in zsh
- X-seq: zsh-workers 26456
- From: Richard Hartmann <richih.mailinglist@xxxxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: Re: sourcing a sh file in zsh
- Date: Tue, 27 Jan 2009 01:51:34 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=CK99bd75yahZHmOjSHfu1kCTqlbekhgmPwYNbJjSMao=; b=RLDSNtA1LInLy9eVij1Fxlk5NQxJRQEO0Gf4nIrvcJkGD3cWec1lsZMx2i/KCS+DDK +UA8EUOm5Bk10IP9UAQJJLFcJqdb9SGPIk+X8nmEn6ZtmB/z7K/XL12wHkJ1JRDwcfcP lSFxtBRRhPm95zjIlTx96uEUAMIrCThfn64Zk=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=tMCnQehnkofd6lCzhZUr/ib3rTXypVjiDF9PdlocaektZkGiEBmdXbHyeuMfVzlZGn jJGDrdJJVw3I2DMlyWvHgeJ3vx3HaoArGJuQ7UopkXzJlxmLu5lHDLaPhK2UGCMX0JBg YUd1OSoiRA+Wo2zjyISKBP8Wn1sezjdsXdiSM=
- In-reply-to: <20090126230713.GA18017@xxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <BD9D2405-AD6A-4336-9C8A-85149165B6B8@xxxxxxxxx> <200901251156.04815.arvidjaar@xxxxxxxxx> <2d460de70901250225g37845bftbbf4b87f12997a7c@xxxxxxxxxxxxxx> <200901251341.44463.arvidjaar@xxxxxxxxx> <20090126230713.GA18017@xxxxxxxxxxxxxxxxxxxx>
On Tue, Jan 27, 2009 at 00:07, Phil Pennock
<zsh-workers+phil.pennock@xxxxxxxxxxxx> wrote:
> What I do like with the
> setopt approach is that there's a way for zsh to test if this is
> currently the case.
>
> Eg, for bash/zsh portability, you could do:
> if [[ -n $ZSH_VERSION && -o sticky_options ]]
> since both support [[ conditional ]] and both support -o as a unary
> prefix test (both using it for testing shell options).
emulate could simply set $ZSH_STICKY to 'sh' or something
similar could happen. It would give more information than a simple
[[ -o sticky_options ]] and tie into existing mechanisms just as
nicely.
Richard
Messages sorted by:
Reverse Date,
Date,
Thread,
Author