summaryrefslogtreecommitdiffstats
path: root/usr.bin/diff/diffdir.c
diff options
context:
space:
mode:
authorjaredy <jaredy@openbsd.org>2004-11-25 04:36:47 +0000
committerjaredy <jaredy@openbsd.org>2004-11-25 04:36:47 +0000
commit95cf1d2f8de85efa323cb4c04a9ac1dbdc20cf3c (patch)
treed2fd5478dbb3e791d1c3e6216c5bd4b7089b462d /usr.bin/diff/diffdir.c
parentEnable lpt0 on amd64 GENERIC. ok deraadt@ (diff)
downloadwireguard-openbsd-95cf1d2f8de85efa323cb4c04a9ac1dbdc20cf3c.tar.xz
wireguard-openbsd-95cf1d2f8de85efa323cb4c04a9ac1dbdc20cf3c.zip
Change the behavior of IFS word-splitting: split words
when the current character is IFS space and the last character was a word character or it was non-white IFS space and the current character is non-white IFS space. This deviates from the previous behavior because the latter splits words when the last character is any IFS space and the current is non-white IFS, resulting in more fields most of the time. This new behavior follows what the man page describes; i.e., that a field is delimited by one or more IFS whitespace characters followed by zero or one non-white IFS characters. Requires addition of a new substitution expansion state to handle the special case of empty fields at the beginning. testing by naddy ok jmc, millert, otto, deraadt
Diffstat (limited to 'usr.bin/diff/diffdir.c')
0 files changed, 0 insertions, 0 deletions