Pass parameters over to cmd, e.g.: - xssstate - a simple utility to get the X screensaver state
HTML git clone git://git.suckless.org/xssstate
DIR Log
DIR Files
DIR Refs
DIR README
DIR LICENSE
---
DIR commit f58232beb295b70a15a93c75414781a80fe542cd
DIR parent cd05e2ae0c3004128a70b7d2b726454c5dbc1b50
HTML Author: Phil Pirozhkov <pirjsuka@gmail.com>
Date: Sat, 11 Oct 2014 11:42:47 +0400
Pass parameters over to cmd, e.g.:
xsidle.sh ls -l /usr
Signed-off-by: Christoph Lohmann <20h@r-36.net>
Diffstat:
M xsidle.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
DIR diff --git a/xsidle.sh b/xsidle.sh
@@ -8,7 +8,7 @@ then
printf "usage: %s cmd\n" "$(basename $0)" 2>&1
exit 1
fi
-cmd="$1"
+cmd="$@"
while true
do