Pass parameters over to cmd, e.g.: - xssstate - a simple utility to get the X s… | |
git clone git://git.suckless.org/xssstate | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit f58232beb295b70a15a93c75414781a80fe542cd | |
parent cd05e2ae0c3004128a70b7d2b726454c5dbc1b50 | |
Author: Phil Pirozhkov <[email protected]> | |
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 <[email protected]> | |
Diffstat: | |
M xsidle.sh | 2 +- | |
1 file changed, 1 insertion(+), 1 deletion(-) | |
--- | |
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 |