[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[stat] : Bad return code.
From: |
cedric . rivera |
Subject: |
[stat] : Bad return code. |
Date: |
Thu, 3 May 2007 17:59:36 +0200 |
Hello,
This email just to signal that the "/usr/bin/stat" command in version
5.2.1 of "coreutils" do have a return code equal to 0 even if the file
argument given do not exist. Is that normal ?
---------------------------------------------------------8<--------------------------------------------------------------
address@hidden up2date]# stat --v
stat (coreutils) 5.2.1
Written by Michael Meskes.
Copyright (C) 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE.
address@hidden up2date]# stat /toto
stat: cannot stat `/toto': No such file or directory
address@hidden up2date]# echo $?
0
---------------------------------------------------------8<--------------------------------------------------------------
Thx for reading.
Cedric.
Ingénieur Système UNIX / Groupe HELICE
BNP Paribas Partners for Innovation
Secteur Systèmes Ouverts et Produits
Valmy1 (2G007)? 59, rue de la république ? 93100 Montreuil-sous-bois
ACI : CMG02A1
Tel : +33 1 57 43 01 43
This message and any attachments (the "message") is
intended solely for the addressees and is confidential.
If you receive this message in error, please delete it and
immediately notify the sender. Any use not in accord with
its purpose, any dissemination or disclosure, either whole
or partial, is prohibited except formal approval. The internet
can not guarantee the integrity of this message.
BNP PARIBAS (and its subsidiaries) shall (will) not
therefore be liable for the message if modified.
---------------------------------------------
Ce message et toutes les pieces jointes (ci-apres le
"message") sont etablis a l'intention exclusive de ses
destinataires et sont confidentiels. Si vous recevez ce
message par erreur, merci de le detruire et d'en avertir
immediatement l'expediteur. Toute utilisation de ce
message non conforme a sa destination, toute diffusion
ou toute publication, totale ou partielle, est interdite, sauf
autorisation expresse. L'internet ne permettant pas
d'assurer l'integrite de ce message, BNP PARIBAS (et ses
filiales) decline(nt) toute responsabilite au titre de ce
message, dans l'hypothese ou il aurait ete modifie.
- [stat] : Bad return code.,
cedric . rivera <=