aboutsummaryrefslogtreecommitdiff
path: root/libbb
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2019-01-26 10:37:03 +0000
committerRon Yorston <rmy@pobox.com>2019-01-26 10:37:03 +0000
commit0aad680ce3c01a23fbcef8f67ed160e09936ab17 (patch)
treef82033304fc2679f7adf883c5a6c51d8a4b530de /libbb
parent7874ca73b5cc8cfbf8a9151c34747aac4a1792f4 (diff)
downloadbusybox-w32-0aad680ce3c01a23fbcef8f67ed160e09936ab17.tar.gz
busybox-w32-0aad680ce3c01a23fbcef8f67ed160e09936ab17.tar.bz2
busybox-w32-0aad680ce3c01a23fbcef8f67ed160e09936ab17.zip
ash: remove carriage returns from strings to be evaluated
The shell could fail to evaluate strings containing carriage returns. For example: awk 'BEGIN { "set -ex\r\npwd\r\n" | getline }' </dev/null The string is passed as an argument to "sh -c". The "set" built-in fails because it attempts to treat the carriage return as an option. Although this is correct behaviour on Unix it may be unhelpful on Microsoft Windows. See GitHub issue #138.
Diffstat (limited to 'libbb')
0 files changed, 0 insertions, 0 deletions