commit a7b864876dbb070f3e55121ba33fc549242ee8be (patch)
parent cd1cde4a7a84d4fb80eec6057d8adc97fc9cdc13
Author: Alex Karle <alex@alexkarle.com>
Date: Wed, 16 Feb 2022 00:37:19 -0500
bin: Add explicit usage of /bin/sh in demo(1)
This should hopefully make the ENV init file hack portable
to bash and others (by emulating POSIX sh via /bin/sh).
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/bin/demo b/bin/demo
@@ -8,7 +8,7 @@ PS1='\$ '
EOM
export ENV=/tmp/demo.env
-script /tmp/demo.out
+script -c /bin/sh /tmp/demo.out
if command -v xclip >/dev/null; then
sed -e '1d' -e '/^\$ ^D/d' -e '$d' /tmp/demo.out | tr -d '\r' | xclip