summaryrefslogtreecommitdiff
path: root/src/nohup.sh
diff options
context:
space:
mode:
Diffstat (limited to 'src/nohup.sh')
-rwxr-xr-xsrc/nohup.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nohup.sh b/src/nohup.sh
index 3eae66747..87f864d41 100755
--- a/src/nohup.sh
+++ b/src/nohup.sh
@@ -59,14 +59,14 @@ if [ -t 1 ]; then
if cat /dev/null >> nohup.out; then
echo "nohup: appending output to \`nohup.out'" 2>&1
umask $oldmask
- exec nice -5 "$@" >> nohup.out 2>&1
+ exec nice -5 -- "$@" >> nohup.out 2>&1
else
cat /dev/null >> $HOME/nohup.out
echo "nohup: appending output to \`$HOME/nohup.out'" 2>&1
umask $oldmask
- exec nice -5 "$@" >> $HOME/nohup.out 2>&1
+ exec nice -5 -- "$@" >> $HOME/nohup.out 2>&1
fi
else
umask $oldmask
- exec nice -5 "$@"
+ exec nice -5 -- "$@"
fi