Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: handling of variables
- X-seq: zsh-users 8453
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: handling of variables
- Date: Tue, 1 Feb 2005 15:24:28 +0000
- In-reply-to: <200502011410.j11EAA9D029705@xxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <2005-02-01T12-49-14@xxxxxxxxxxxxxxxxxxxxxxxxx> <200502011410.j11EAA9D029705@xxxxxxxxxxxxxx>
On Feb 1, 2:10pm, Peter Stephenson wrote:
}
} > % zsh -f
} > % FOO=BAR BAR=FOO echo $FOO $BAR
} >
} > % FOO=BAR BAR=FOO echo $FOO $BAR
} > BAR
} > %
}
} This looks suspiciously like a bug.
I *think* (not yet sure) this is happening because during interpretation
of the assignments,
BAR=FOO echo $FOO $BAR
examines "echo" and decides it looks like a simple builtin command and
therefore should have variables restored afterwards, but
FOO=BAR BAR=FOO echo $FOO $BAR
examines "BAR=FOO" and fails to reach the same conclusion.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author