Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Bug#517008: alias not expanded with zsh -c
- X-seq: zsh-workers 26796
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: Re: Bug#517008: alias not expanded with zsh -c
- Date: Thu, 26 Mar 2009 08:12:59 -0700
- In-reply-to: <20090326095029.52a8ce33@news01>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <20090225022850.GA4841@xxxxxxxxxxxxxxxxxxx> <20090325145418.GB9330@xxxxxxxx> <200903251630.n2PGU8sK013449@xxxxxxxxxxxxxx> <20090325172509.79c53d4d@news01> <090325111130.ZM7836@xxxxxxxxxxxxxxxxxxxxxx> <200903251820.n2PIK6JI016478@xxxxxxxxxxxxxx> <090325171431.ZM8037@xxxxxxxxxxxxxxxxxxxxxx> <20090326095029.52a8ce33@news01>
On Mar 26, 9:50am, Peter Stephenson wrote:
} Subject: Re: Bug#517008: alias not expanded with zsh -c
}
} On Wed, 25 Mar 2009 17:14:31 -0700
} Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
} > It just seems to me that we're potentially penalizing a script that
} > does not use aliases in the can't-open-tempfile case in order to
} > support a script that does not use aliases.
In case it wasn't obvious, there's an extra "not" in that last line.
} > Given potential security problems with using tempfiles and the
} > likelyhood of a script using an alias vs. the likelyhood of file
} > creation failing, which case ought we be catering too?
Good grief, I was having a bad typing day yesterday. Must be because
I was home sick at the time ...
} From what I've heard, it doesn't sound like it's worth more than a
} warning.
}
} +other piece of shell code evaluated as one unit. Note this may
} +cause differences from other shells even when the option is in
} +effect. For example, when running a command with `tt(zsh -c)' the
} +entire command argument is parsed in one go, so aliases defined within
Is it obvious enough that "evaluated as one unit" and "parsed in one go"
mean the same thing? And should that be tt(sh -c) rather than zsh?
Messages sorted by:
Reverse Date,
Date,
Thread,
Author