Improve 1989/jar.2/try.sh
Now it will cat each file before running jar.2 on it, prompting for both cat and the command itself. Spaces are added in between commands to help let things stand out better.
This commit is contained in:
1 parent
7c12aeeb0d
commit
66308ecd7c
2 files changed
+5
-2
No files matched your search
@@ -22,8 +22,6 @@ NOTE: this entry will likely segfault on invalid input.
|
||||
```sh
|
||||
./try.sh
|
||||
|
||||
cat chocolate_cake.lisp ; ./jar.2 < chocolate_cake.lisp
|
||||
|
||||
./try.sh chocolate_cake.lisp
|
||||
|
||||
./try.sh try.txt
|
||||
|
||||
@@ -19,8 +19,13 @@ fi
|
||||
|
||||
for f in $FILES; do
|
||||
if [[ -e "$f" && -r "$f" ]]; then
|
||||
read -r -n 1 -p "Press any key to run: cat $f: "
|
||||
echo 1>&2
|
||||
cat "$f"
|
||||
echo 1>&2
|
||||
read -r -n 1 -p "Press any key to run: ./jar.2 < $f: "
|
||||
echo 1>&2
|
||||
./jar.2 < "$f"
|
||||
echo 1>&2
|
||||
fi
|
||||
done
|
||||
Reference in new issue
Block a user