diff options
author | Guilhem Moulin <guilhem@fripost.org> | 2020-03-06 02:12:38 +0100 |
---|---|---|
committer | Guilhem Moulin <guilhem@fripost.org> | 2020-03-06 02:13:31 +0100 |
commit | aea8da872bbe5400f02af466aa30dd097ca5d46c (patch) | |
tree | 33f0d6eb44ce34b37347a2c303ce253119c1fccc /tools | |
parent | 4e28c82534955f663409fc19677c85ca524224b6 (diff) |
tools/apply-colormap:serial_send(): Backup and restore IFS.
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/apply-colormap | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/apply-colormap b/tools/apply-colormap index dd35844..07b0470 100755 --- a/tools/apply-colormap +++ b/tools/apply-colormap @@ -79,7 +79,7 @@ palette() { } serial_send() { - local fd + local fd old_IFS="$IFS" exec {fd}<"$DEVICE_PATH" "$@" >"$DEVICE_PATH" while IFS= read -r -u "$fd" x; do @@ -87,6 +87,7 @@ serial_send() { [ "$x" != "." ] || break printf "%s\\n" "$x" done + IFS="$old_IFS" {fd}<&- } |