]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
Port to POSIX 1003.1-2001 "nice", which
authorJim Meyering <jim@meyering.net>
Sat, 27 Jul 2002 08:45:49 +0000 (08:45 +0000)
committerJim Meyering <jim@meyering.net>
Sat, 27 Jul 2002 08:45:49 +0000 (08:45 +0000)
requires the option "-n 5" rather than "-5".  This matters
with GNU "nice" if the user has set the _POSIX2_VERSION
environment variable.

src/nohup.sh

index b1f630ea423819b61bde55a62cbdfda9e20c71f9..2e70408b122204a165922f791433e8df4ba2e102 100755 (executable)
@@ -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" -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" -5 -- "$@" >> $HOME/nohup.out 2>&1
   fi
 else
   umask $oldmask
-  exec "$niceprog" -5 -- "$@"
+  exec "$niceprog" -5 -- "$@"
 fi