Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nice: error: Unrecognized option: '1' / deprecated use of nice -ADJUSTMENT #73

Closed
Wabuo opened this issue Apr 26, 2021 · 3 comments
Closed

Comments

@Wabuo
Copy link
Contributor

Wabuo commented Apr 26, 2021

xxx@G6wisejackal ~/D/P/clean-chroot-manager> sudo ccm S
----> Attempting to build package...
nice: error: Unrecognized option: '1'
(yes I'm tying to build ccm in ccm, first PKGBUILD I had flying around)

I keep getting this error no matter what PKGBUILD I try and sadly have no clue how to troubleshoot this one, any tips.

cheers
Wabuo

@graysky2
Copy link
Owner

graysky2 commented Apr 26, 2021

I cannot reproduce. What version of coreutils do you have installed? Post the output of:

$ pacman -Qo nice

and of

$ nice -19 echo "hello"

@graysky2
Copy link
Owner

graysky2 commented May 8, 2021

No response for 12 days. Please reopen if you're still experiencing this.

@graysky2 graysky2 closed this as completed May 8, 2021
@Wabuo
Copy link
Contributor Author

Wabuo commented May 22, 2021

Hi
Sorry for the late response, I'm backpacking and literally did not use my laptop for a bit, so forgot about it.

I was using uutils nice ..

Apparently it expects to be called like this nice -n 19 / -n19 / -n=19[won't work in coreutils]
I opened an issue over there uutils/coreutils/issues/2251
Edit: from the above-mentioned issue, -n 19 seems to be best-practice.

For compatibility ‘GNU nice’ also supports an obsolete option syntax -ADJUSTMENT. New scripts should use -n ADJUSTMENT instead.

/Edit

Looking at nice --help it seems like the -n should be used any ways, not sure if you want to change it tho. (sorry for this petty shit)

Usage: nice [OPTION] [COMMAND [ARG]...]
Run COMMAND with an adjusted niceness, which affects process scheduling.
With no COMMAND, print the current niceness.  Niceness values range from
-20 (most favorable to the process) to 19 (least favorable to the process).

Mandatory arguments to long options are mandatory for short options too.
  -n, --adjustment=N   add integer N to the niceness (default 10)
      --help     display this help and exit
      --version  output version information and exit

NOTE: your shell may have its own version of nice, which usually supersedes
the version described here.  Please refer to your shell's documentation
for details about the options it supports.

GNU coreutils online help: <https://www.gnu.org/software/coreutils/>
Full documentation <https://www.gnu.org/software/coreutils/nice>
or available locally via: info '(coreutils) nice invocation'

@Wabuo Wabuo changed the title nice: error: Unrecognized option: '1' nice: error: Unrecognized option: '1' / missin -n flag for uu-nice May 22, 2021
@Wabuo Wabuo changed the title nice: error: Unrecognized option: '1' / missin -n flag for uu-nice nice: error: Unrecognized option: '1' / deprecated use of nice -ADJUSTMENT May 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants