Re: Force exit status if file not found

2011-03-10 Thread Cameron Simpson
On 07Mar2011 16:34, Kevin Martin wrote: | Strangely enough, if I'm in a directory and do a "find . -name e" (where e doesn't exist) I get *no* failed message and an exit code | of 0. I find that a bit odd as I would think that "find e" and "find . -name e" would be the same thing. Perhaps that

Re: Force exit status if file not found

2011-03-07 Thread Sergio Belkin
2011/3/7 Kevin Martin : > > > On 03/07/2011 04:08 PM, Sergio Belkin wrote: >> Hi, >> I am writing a script that it searchs for a file. I'd want to exit >> with status non-zero if the file is not found. But find cannot do >> that. >> find command only exit with status non-zero one file is not proces

Re: Force exit status if file not found

2011-03-07 Thread Sergio Belkin
2011/3/7 Mikkel : > On 03/07/2011 04:08 PM, Sergio Belkin wrote: >> Hi, >> I am writing a script that it searchs for a file. I'd want to exit >> with status non-zero if the file is not found. But find cannot do >> that. >> find command only exit with status non-zero one file is not processed >> suc

Re: Force exit status if file not found

2011-03-07 Thread Mikkel
On 03/07/2011 04:08 PM, Sergio Belkin wrote: > Hi, > I am writing a script that it searchs for a file. I'd want to exit > with status non-zero if the file is not found. But find cannot do > that. > find command only exit with status non-zero one file is not processed > successfully. > > locate com

Re: Force exit status if file not found

2011-03-07 Thread Kevin Martin
On 03/07/2011 04:08 PM, Sergio Belkin wrote: > Hi, > I am writing a script that it searchs for a file. I'd want to exit > with status non-zero if the file is not found. But find cannot do > that. > find command only exit with status non-zero one file is not processed > successfully. > > locate co

Force exit status if file not found

2011-03-07 Thread Sergio Belkin
Hi, I am writing a script that it searchs for a file. I'd want to exit with status non-zero if the file is not found. But find cannot do that. find command only exit with status non-zero one file is not processed successfully. locate command con do that, but it cannot find a file from a given dire