aboutsummaryrefslogtreecommitdiff
path: root/bin/9l
diff options
context:
space:
mode:
authormmnmnnmnmm <mnnnm@disroot.org>2022-08-17 17:57:04 +0100
committerDan Cross <crossd@gmail.com>2022-08-18 10:48:20 -0400
commitffdca8f730a459606b30e754cb20f224feed18ff (patch)
tree67978ec4007c24876c06a8914318f140430957bf /bin/9l
parent10e46bde5acfcabee6a3a38fb8245ce322620d67 (diff)
9l: without arguments, exit instead of failing to link nothing
Found in Arch Linux but never reported upstream: https://bugs.archlinux.org/task/55640
Diffstat (limited to 'bin/9l')
-rwxr-xr-xbin/9l2
1 files changed, 2 insertions, 0 deletions
diff --git a/bin/9l b/bin/9l
index d7c9e2dd..3b8cf680 100755
--- a/bin/9l
+++ b/bin/9l
@@ -1,5 +1,7 @@
#!/bin/sh
+[ "$1" = "" ] && exit 1
+
test -f $PLAN9/config && . $PLAN9/config
libsl=""
frameworks=""