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

Re: treatment of empty strings - why is this not a bug?



>>>>> Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> writes:

> Consider an array populated by using a glob pattern, which is then
> subjected to replacement using $arr:s/pat// or $arr:h or $arr:t.
> You don't know at time of execution what will be matched in by the
> glob, nor necessarily what will be left behind after substitution.
> If the substitution results in an emtpy string, how often do you
> want that to remain in the argument list of whatever action you next
> apply to the contents of the array?

I do not agree with this reasoning, but I don't think it's worth
continuing to argue about it.

thank you,
Greg



Messages sorted by: Reverse Date, Date, Thread, Author