Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Refering to overlaid variable from within a function
- X-seq: zsh-users 15393
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Re: Refering to overlaid variable from within a function
- Date: Sun, 12 Sep 2010 10:29:02 -0700
- In-reply-to: <20100912062419.GA5170@xxxxxxxxxxxxxxxxxxxx>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <20100910061319.GA73504@xxxxxxxxxxxxxxxxxxxx> <20100910094157.3f128d4d@xxxxxxxxxxxxxxxxxxxxxxxxx> <100910073557.ZM21299@xxxxxxxxxxxxxxxxxxxxxx> <20100912062419.GA5170@xxxxxxxxxxxxxxxxxxxx>
On Sep 12, 2:24am, Phil Pennock wrote:
}
} > trap "$1+=\" and \"${(q-)a}" EXIT
}
} % foo
} this is foo's a
} this is bar's a
} bar:3: error in flags
}
} Tried with 4.3.10 and 4.3.9.
Sorry, I tend to test everything against the most recent CVS checkout
and I forgot that (q-) isn't in 4.3.10.
As of a recent patch proposed by PWS, the trap trick would require
"unsetopt POSIX_TRAPS".
Messages sorted by:
Reverse Date,
Date,
Thread,
Author