https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=193759
Jilles Tjoelker <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Needs Triage |Issue Resolved CC| |[email protected] Resolution|--- |Works As Intended Assignee|[email protected] |[email protected] --- Comment #1 from Jilles Tjoelker <[email protected]> --- Thanks for your report. However, the behaviour is as designed and matches the POSIX.1-2008 standard. Firstly, assignments are performed after the command is expanded. Therefore, an IFS= assignment preceding a command never affects word splitting of that command itself. Secondly, an assignment preceding a special built-in utility such as 'set' remains in effect after the command completes. This explains why the second and later commands work. You need to set IFS before word splitting and possibly restore it later, or use IFS=... read ... (where the assignment does affect read's splitting and does not persist after the command completes). -- You are receiving this mail because: You are the assignee for the bug. _______________________________________________ [email protected] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-bugs To unsubscribe, send any mail to "[email protected]"
