From ccf38158e6e7fefd2b7bdbde243da98ffff79270 Mon Sep 17 00:00:00 2001 From: Helmut Grohne Date: Sun, 2 Jun 2013 14:03:09 +0200 Subject: allow specifying the number of columns --- optcvt.sh | 2 ++ 1 file changed, 2 insertions(+) (limited to 'optcvt.sh') diff --git a/optcvt.sh b/optcvt.sh index 2f3f89c..b73c095 100755 --- a/optcvt.sh +++ b/optcvt.sh @@ -8,6 +8,8 @@ COLUMNS="${SIZE#* }" if test "$COLUMNS" -ge $((2*$MINWIDTH+1)); then exec $TCVT "$@" +elif test -z "$@"; then + exec "$SHELL" else exec "$@" fi -- cgit v1.2.3