summaryrefslogtreecommitdiff
path: root/optcvt.sh
diff options
context:
space:
mode:
authorHelmut Grohne <helmut@subdivi.de>2013-06-02 14:03:09 +0200
committerHelmut Grohne <helmut@subdivi.de>2013-06-02 14:03:09 +0200
commitccf38158e6e7fefd2b7bdbde243da98ffff79270 (patch)
tree2612ed2e5c8c9522a768d655ce6bd8e5c819bc0b /optcvt.sh
parent08db538d4de4fc4dcd99bbb23db9017f1a56b4b3 (diff)
downloadtcvt-ccf38158e6e7fefd2b7bdbde243da98ffff79270.tar.gz
allow specifying the number of columns
Diffstat (limited to 'optcvt.sh')
-rwxr-xr-xoptcvt.sh2
1 files changed, 2 insertions, 0 deletions
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