[OpenAFS-devel] Return value on various command

El Barto elbarto@staff.epita.fr
Thu, 02 Aug 2007 13:43:48 +0200


 Hello,

 I'm using shell script to create my user, for testing if the user exist 
I just do a :

 $ pts membership newuser

 The problem is that pts always set the return variable to 0.
 To bypass that I just pipe the result to wc -l because the error is 
writing on fd 2, wc doesn't count this.

 Is there a reason for always returning 0 ?

 P.S. : By the way I'm using Openafs 1.4.4

 Thanks.

-- 
Emmanuel Vadot          System & Network Administrator [root & bocal]
elbarto@epitech.net     14-16 rue Voltaire 94270 Le Kremlin-Bicetre
01 44 08 01 91          06 83 14 62 92