Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
RE: Bug#101523: zsh segmentation fault
- X-seq: zsh-workers 14986
- From: "Andrej Borsenkow" <Andrej.Borsenkow@xxxxxxxxxxxxxx>
- To: "Bart Schaefer" <schaefer@xxxxxxxxxxxxxxxxxxxxxxx>, "Clint Adams" <schizo@xxxxxxxxxx>, <zsh-workers@xxxxxxxxxx>
- Subject: RE: Bug#101523: zsh segmentation fault
- Date: Wed, 20 Jun 2001 10:51:11 +0400
- Cc: "Michal Politowski" <mpol@xxxxxxxxxxxxxxxxxxx>, <101523-forwarded@xxxxxxxxxxxxxxx>
- Importance: Normal
- In-reply-to: <1010620040105.ZM1105@xxxxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
>
> I will point out that there's a rather nasty bug in shoop.sh on line 61:
>
> local orgargs="$@"
>
> This will almost certainly not do what is wanted; it'll set orgargs to be
> $1 and will make local variables whose names are the rest of the
> arguments.
> Then later,
>
> set -- $orgargs
>
> will also not produce the desired effect.
>
This is related to export foo=$(cmd) problem we have discussed. Obviously,
other shells treat {export|local|typeset} foo=bar w.r.t. word splitting
exactly the same as foo=bar, i.e. they do not split in assignments here.
Did not we have some patch for it, at least in HEAD? Looks, like it should
be in 4.0.
Have
Messages sorted by:
Reverse Date,
Date,
Thread,
Author