Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

RE: Bug#101523: zsh segmentation fault



>
> 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