чување b3555e6decf8464d6fdd6ab5d825093bbf6f5313
родитељ 425115ff6bf7d45b37ea33f24d77d0f786c1db36
Аутор: Страхиња Радић <sr@strahinja.org>
Датум: Mon, 6 Oct 2025 09:35:47 +0200
ste.in: Bugfix: pressing enter errored out with "shift: nothing to shift"
Diffstat:
измењених датотека: 2, додавања: 2(+), брисања: 2(-)
diff --git a/TODO b/TODO
@@ -1,7 +1,7 @@
TODO
====
-[ ] Bugfix: pressing enter errors out with "shift: nothing to shift"
+[x] Bugfix: pressing enter errors out with "shift: nothing to shift"
[ ] Decrease the total number of rows in the prompt
diff --git a/ste.in b/ste.in
@@ -300,7 +300,7 @@ directly from stdin"
#shellcheck disable=SC2086
set -- $cmd
cmd=$1
- if [ -n "'$2'" ]; then
+ if [ -n "$2" ]; then
shift
args="$*"
else