bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

uname option handling problem (Re: bug)


From: Bob Proulx
Subject: uname option handling problem (Re: bug)
Date: Sat, 3 Jun 2006 08:49:55 -0600
User-agent: Mutt/1.5.9i

I do not have the gb2312 charset in which your message was encoded
installed on my system.  Apologies if certain characters did not
encode properly.  Please consider using a UTF-8 encoding for portable
message interchange.

> address@hidden test]# uname /?
> uname: ???????????? ??/a??
> ????????????uname --help??????????????????
> address@hidden test]# uname /a
> uname: ???????????? ??/a??
> ????????????uname --help??????????????????

In my locale (en_US.UTF-8) the english version of the message says:

  ./src/coreutils/src/uname: extra operand `/?'
  Try `./src/coreutils/src/uname --help' for more information.

  ./src/coreutils/src/uname: extra operand `/a'
  Try `./src/coreutils/src/uname --help' for more information.

This is because the '/' character is not an option designator on GNU
or Unix systems.  There you would use the '-' option disignator.

Try this:

  uname -a

And you should see the output result that you desire.

> address@hidden test]# uname --help
> ??????uname [????]...
> Print certain system information.  With no OPTION, same as -s.
> 
>   -a, --all                print all information, in the following order,
>                              except omit -p and -i if unknown:
>   -s, --kernel-name        print the kernel name
>   -n, --nodename           print the network node hostname
>   -r, --kernel-release     print the kernel release
>   -v, --kernel-version     print the kernel version
>   -m, --machine            print the machine hardware name
>   -p, --processor          print the processor type or "unknown"
>   -i, --hardware-platform  print the hardware platform or "unknown"
>   -o, --operating-system   print the operating system
>       --help     ????????????????????
>       --version  ??????????????????
> 
> ???? <address@hidden> ??????????

As you can see all of the options listed there start with a '-'
character.

Bob




reply via email to

[Prev in Thread] Current Thread [Next in Thread]