Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: simple substitution?
- X-seq: zsh-users 14329
- From: spiralofhope <spiralofhope@xxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: simple substitution?
- Date: Sat, 29 Aug 2009 01:28:05 -0700
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:subject :message-id:in-reply-to:references:x-mailer:mime-version :content-type:content-transfer-encoding; bh=94Hecql4rlUPJd9o8ZReB9pHKOcJrme5evmiKxag1i8=; b=mp6OPelDn7vyPJoY1JlQlqNOwWoZwfAv94ed/t5xAIW9XyJP0Um9hXItevs7FVNljD R+L78E0J9+RPDsqFxqsX9PJhUe7T3GuveDogSn9tV5xYSk0Swy80abtyYfM5ya/4HuLn Rv8hD/bpj7zYIfep9lZEraq1cTOfpXA72nFvs=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:subject:message-id:in-reply-to:references:x-mailer :mime-version:content-type:content-transfer-encoding; b=GduJ9j1z2CC6fL3Y4yglrvo32pPVEnkpv04XlKNk6UC/QP+ODN9/jbRT1DuSFYf07r uklrcxPdsZ8X2KHP/e+YXxI92U34ADFc463tR4ntFyhtw+lkXlkWG9ctQmnznyfP+44O HwwoMnJCrEOEHjF9yLgvaMtpl7NUYD7wQCTuY=
- In-reply-to: <chaz20090827185537.GA5341@xxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <20090812133916.6ab5adcf.tartifola@xxxxxxxxx> <chaz20090812120418.GA21006@xxxxxxxxxxx> <20090827081235.176e8879@xxxxxxxxx> <chaz20090827185537.GA5341@xxxxxxxxxxx>
On Thu, 27 Aug 2009 19:55:37 +0100
Stephane Chazelas <stephane_chazelas@xxxxxxxx> wrote:
> Yes, that's usually what eval does when passed uncontrolled
> data. You'd get the same problem with (e).
>
> You need to make sure that $FO$O resolves to a valid variable
> name.
>
> if $FO$O were 'x}; rm -rf ${HOME' for instance, there'd be
> damage.
>
> However note that the eval solutions are standard POSIX sh
> solutions, so you don't make your script zsh specific when using
> them.
Thanks, this is good stuff to know.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author