No description
Find a file
Sergey Poznyakoff cadf077236 Fix ws trimming and return_delim option
* src/wordsplit.c (_WSNF_DELIM): New node flag
(wsnode_flagstr): Print 'd' for that flag.
(expvar): Don't set WRDSF_WS when expanding variable
value.  This fixes, e.g., expansion of a$x if x begins with
a whitespace.
(wsnode_nullelim): A _WSNF_DELIM node breaks join chain.
(wordsplit_trimws): Don't affect nodes within join chains.
(scan_word): Set _WSNF_DELIM for returned delimiters.
* tests/wordsplit.at (TESTWSP): 8th argument - prologue
shell code.  Use it to unset environment variables in
env/getenv tests.
Test ws elimination with return_delims set.
2015-12-17 15:26:28 +02:00
doc Minor fixes in documentation 2015-12-17 15:26:28 +02:00
src Fix ws trimming and return_delim option 2015-12-17 15:26:28 +02:00
tests Fix ws trimming and return_delim option 2015-12-17 15:26:28 +02:00