diff options
author | Ron Yorston <rmy@pobox.com> | 2019-01-26 10:37:03 +0000 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2019-01-26 10:37:03 +0000 |
commit | 0aad680ce3c01a23fbcef8f67ed160e09936ab17 (patch) | |
tree | f82033304fc2679f7adf883c5a6c51d8a4b530de /win32 | |
parent | 7874ca73b5cc8cfbf8a9151c34747aac4a1792f4 (diff) | |
download | busybox-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 'win32')
0 files changed, 0 insertions, 0 deletions