Re: [BUG] urar extfs in mc-4.6.0-pre2



* Andrew V. Samoilov <sav bcs zp ua> [Fri, 03 Jan 2003]:
> Tomas Styblo wrote:
> >~~~ SNIP ~~~
> >If a command is not found, the exit status shall be 127. If the
> >command name is found, but it is not an executable utility, the
> >exit status shall be 126.
> >~~~ SNIP ~~~
> 
> Sorry, but it should be too easy to be true.  Zsh returns 1 in this 
> case.  And some distros symlinks zsh as /bin/sh.

I experimented with the unrar and found that

    unrar l /dev/null >/dev/null 2>&1

returns zero. This tells unrar to list an empty archive.

Maybe we could use it ?

-- 
Tomas Styblo <tripie cpan org>
PGP: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xC97EA4B6



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]