summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2002-07-27 08:45:49 +0000
committerJim Meyering <jim@meyering.net>2002-07-27 08:45:49 +0000
commit62c03f8facbb527aa3146ef7a43d4f182167c0d5 (patch)
treef6b29ac89590880624180de7bdf713a559f45da7
parent5e8cbfdf8e005923a6522a0a670a4760a6ef43c5 (diff)
downloadcoreutils-62c03f8facbb527aa3146ef7a43d4f182167c0d5.tar.xz
Port to POSIX 1003.1-2001 "nice", which
requires the option "-n 5" rather than "-5". This matters with GNU "nice" if the user has set the _POSIX2_VERSION environment variable.
-rwxr-xr-xsrc/nohup.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nohup.sh b/src/nohup.sh
index b1f630ea4..2e70408b1 100755
--- a/src/nohup.sh
+++ b/src/nohup.sh
@@ -74,14 +74,14 @@ if [ -t 1 ]; then
if cat /dev/null >> nohup.out; then
echo "nohup: appending output to \`nohup.out'" 2>&1
umask $oldmask
- exec "$niceprog" -5 -- "$@" >> nohup.out 2>&1
+ exec "$niceprog" -n 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 "$niceprog" -5 -- "$@" >> $HOME/nohup.out 2>&1
+ exec "$niceprog" -n 5 -- "$@" >> $HOME/nohup.out 2>&1
fi
else
umask $oldmask
- exec "$niceprog" -5 -- "$@"
+ exec "$niceprog" -n 5 -- "$@"
fi