diff options
author | Pedro Alves <palves@redhat.com> | 2012-12-13 10:00:51 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2012-12-13 10:00:51 +0000 |
commit | c9023fb3ce6a3ad8af9322437cd930cf5779e005 (patch) | |
tree | f86d000edd83e5786ec7a24479d5b71651f5e750 /gdb/gdbarch.sh | |
parent | 943d398f4c528b87e85092e6b47b7f87f1b899bc (diff) | |
download | binutils-gdb-c9023fb3ce6a3ad8af9322437cd930cf5779e005.tar.gz |
2012-12-13 Pedro Alves <palves@redhat.com>
* gdbarch.sh (do_read): Set IFS to blank.
Diffstat (limited to 'gdb/gdbarch.sh')
-rwxr-xr-x | gdb/gdbarch.sh | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gdb/gdbarch.sh b/gdb/gdbarch.sh index 887552eda99..8a56106e474 100755 --- a/gdb/gdbarch.sh +++ b/gdb/gdbarch.sh @@ -47,7 +47,10 @@ do_read () { comment="" class="" - while read line + # On some SH's, 'read' trims leading and trailing whitespace by + # default (e.g., bash), while on others (e.g., dash), it doesn't. + # Set IFS to empty to disable the trimming everywhere. + while IFS='' read line do if test "${line}" = "" then |