Badly formed number error with tcsh

Marc Emery <[email protected]>
Newsgroups gmane.comp.gnu.sh-utils.bugs
Message-ID <[email protected]>
Hello,

I found the following problem with nice 2.0.11:

with tcsh

   Marc:~/src/openoffice/oo_641c_src> nice -n -19 bootstrap
   nice: Badly formed number.
   Marc:~/src/openoffice/oo_641c_src> nice -adf
   nice: Badly formed number.
   Marc:~/src/openoffice/oo_641c_src> nice --help
   nice: Badly formed number.
   Marc:~/src/openoffice/oo_641c_src> nice -19 bootstrap
   setpriority: Permission denied.
   Marc:~/src/openoffice/oo_641c_src> nice \-n 19 bootstrap
   nice: Badly formed number.
   Marc:~/src/openoffice/oo_641c_src> nice "-n" 19 bootstrap
   nice: Badly formed number.
   Marc:~/src/openoffice/oo_641c_src> nice "\-n" 19 bootstrap
   \-n: Command not found.
   Marc:~/src/openoffice/oo_641c_src> nice '\-n' 19 bootstrap
   \-n: Command not found.
   Marc:~/src/openoffice/oo_641c_src> nice '-n' 19 bootstrap
   nice: Badly formed number.

nice +19 bootstrap is ok;

nice -19 give me:
  setpriority: Permission denied.

No problem with bash.

I hope it is not a "feature" of tcsh.


My config:
---------

debian woody i386 last apt-get upgrade last week.


GNU bash, version 2.05a.0(1)-release (i386-pc-linux-gnu)
nice (GNU sh-utils) 2.0.11
ii  tcsh                  6.11.00-2.1


Thank you for your good job !

Marc Emery
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.