diff options
-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}<&- } |