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

Re: [BUG] var=$* and var=$@ create array with SHWORDSPLIT and null or unset IFS



On Feb 17, 12:05am, Martijn Dekker wrote:
}
} In SHWORDSPLIT mode, if IFS is null (no field splitting) or unset
} (default fieldsplitting), both var=$* and var=$@ act like var=("$@"), so
} turn 'var' into an array.

This sounded naggingly familiar, and indeed:

    30299: "$*" was split with SHWORDSPLIT if IFS was empty or unset

Undoing 30299 fixes the bug Martijn is reporting here, but re-introduces
the incorrect splitting behavior.

I haven't gotten any further with it than that.



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