[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
stat exits 0 on file-not-found
From: |
Seth Johnson |
Subject: |
stat exits 0 on file-not-found |
Date: |
Tue, 19 Jul 2005 18:22:02 -0400 |
User-agent: |
Mozilla Thunderbird 1.0.2 (Windows/20050317) |
Using coreutils-4.5.3-26,
stat foo
(where file foo does not exist)
exits 0.
Quote:
address@hidden sjohnson]$ stat foo
stat: cannot stat `foo': No such file or directory
address@hidden sjohnson]$ echo $?
0
I would expect it to exit 1.
Thanks,
Seth Johnson
- stat exits 0 on file-not-found,
Seth Johnson <=