expr exit status

2010-01-20 Thread salih k
Hi, add_num=`expr $int_num + 1 1/dev/null 21` if [ $? -ne 0 ] some case exit status is 1552 for expr even though the argument is integer .Initialy i checked if [ $?-ne 0 ],but this shows the above error so, i am planning to use kms=$? if [ $kms -eq 1 -o $kms -eq 2 -o $kms -eq 3 ] instaed

Re: expr exit status

2010-01-20 Thread Philip Rowlands
On Wed, 20 Jan 2010, salih k wrote: add_num=`expr $int_num + 1 1/dev/null 21` if [ $? -ne 0 ] some case exit status is 1552 for expr even though the argument is integer This cannot be true, as the exit status exposed through the $? shell variable is limited to the range 0-255. For

Re: expr exit status

2010-01-20 Thread salih k
On Wed, Jan 20, 2010 at 7:33 PM, Philip Rowlands p...@doc.ic.ac.uk wrote: On Wed, 20 Jan 2010, salih k wrote: add_num=`expr $int_num + 1 1/dev/null 21` if [ $? -ne 0 ] some case exit status is 1552 for expr even though the argument is integer This cannot be true, as the exit

Re: Misalignment of pinky output: lack of support of multibyte char

2010-01-20 Thread Rodolfo Ribeiro Gomes
Is there any complaint to use wide characters functions? Like wcswidth, wcslen and fwide functions? Regards, Rodolfo 2010/1/15 Pádraig Brady p...@draigbrady.com: On 15/01/10 11:28, Jim Meyering wrote: Rodolfo Ribeiro Gomes wrote: Hello. I was translating coreutils 8.3 and testing it when I

Usage of !! , in Unix

2010-01-20 Thread Sameer Kumbhare
Hi, I dont know whether to call this a bug, or a what. But. whenever I go n press !! , the previous command I provided gets enacted. Can u specify the reason please, or is it that it has been puposefully made. If it is purposefully made, I would also suggest to disallow saving of filenames

Re: expr exit status

2010-01-20 Thread Philip Rowlands
On Wed, 20 Jan 2010, salih k wrote: Now shall I explain again (sorry:)) actually the issue is rare and never happened in unix .So am curious on this. never happened in unix? Which OS and shell are you using? Now my query is why these exit status (254 or 16) are coming during the first run

Re: Usage of !! , in Unix

2010-01-20 Thread Giuseppe Scrivano
it is a bash feature, you can find more information using `info bash'. Anyway, the proper place for bash related questions is the bug-b...@gnu.org mailing list. Cheers, Giuseppe Sameer Kumbhare smrkumbh...@gmail.com writes: Hi, I dont know whether to call this a bug, or a what. But.

Re: Misalignment of pinky output: lack of support of multibyte char

2010-01-20 Thread Pádraig Brady
On 20/01/10 09:48, Rodolfo Ribeiro Gomes wrote: Is there any complaint to use wide characters functions? Like wcswidth, wcslen and fwide functions? mbsalign() uses those functions: http://git.savannah.gnu.org/gitweb/?p=coreutils.git;a=blob;f=gl/lib/mbsalign.c;hb=HEAD We're working on moving

Re: expr exit status

2010-01-20 Thread salih k
On Wed, Jan 20, 2010 at 8:29 PM, Philip Rowlands p...@doc.ic.ac.uk wrote: On Wed, 20 Jan 2010, salih k wrote: Now shall I explain again (sorry:)) actually the issue is rare and never happened in unix .So am curious on this. never happened in unix? Which OS and shell are you using?

Re: expr exit status

2010-01-20 Thread Eric Blake
According to salih k on 1/20/2010 5:55 AM: Hi, Well ,I have three queries now, [please trim your replies down to relevant portions you are replying to - we don't need to read the same text over and over again] 1.I am waiting for answer whether I can use if [ $?

Re: expr exit status

2010-01-20 Thread Eric Blake
According to Eric Blake on 1/20/2010 6:01 AM: 3.As you suggested(thanks)check what arguments for exit() expr is giving =Frankly i dont know how to check the same I will be thankful if you please let me know the way to check the same If you are on a Linux system, then 'strace expr $int_num +

Re: expr exit status

2010-01-20 Thread salih k
On Wed, Jan 20, 2010 at 9:11 PM, Eric Blake e...@byu.net wrote: According to Eric Blake on 1/20/2010 6:01 AM: 3.As you suggested(thanks)check what arguments for exit() expr is giving =Frankly i dont know how to check the same I will be thankful if you please let me know the way to

[PATCH] who: --mesg now respects also group of a TTY

2010-01-20 Thread Kamil Dudka
Hello, enclosed is a patch making the output of who --mesg more reliable when compiled with --with-tty-group. The issue was discussed before at https://bugzilla.redhat.com/454261 and later at http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14022 Any comments are welcome! Kamil From

Issue with Terminal command

2010-01-20 Thread Devon Pillay
Hi there I would like to report a bug since i installed fedora 11 and updated the softwares i am getting issue with installing applications through the terminal as its not allowing me to type in any password. therefore i cannot login as root to install some drivers for example i got a beta driver