On Sun, 15 November 1998 14:20:49 -0500, Mitch Blevins wrote:
> I should follow up that I downloaded and looked at Diablo
> (but did not compile because I don't have xmake).
dists/slink/main/binary-i386/devel/xmake_1.05-1.deb ,-)
> Looking at the XMakefile.inc, it appears that the author specific
On Sun, Nov 15, 1998 at 12:07:39PM -0700, [EMAIL PROTECTED] wrote:
> I don't know what you'd
> use with shell if you needed an error code.
ls -1 | grep .\*
Antti-Juhani
--
Antti-Juhani Kaijanaho A7 <[EMAIL PROTECTED]> ** http://www.iki.fi/gaia/>
**
The FAQ is y
On Sun, 15 Nov 1998, Marcus Brinkmann wrote:
> I need something that returns an error code if the directory is empty but
> does return 0 if it is non-empty.
$ dirname="whatever_you_want_to_check"
$ count=$(ls -A1 $dirname 2>/dev/null | wc -l)
$ echo $count
I love shell... BTW, you need the /dev
*-Marcus Brinkmann <[EMAIL PROTECTED]>
|
| I need something that returns an error code if the directory is empty but
| does return 0 if it is non-empty.
I don't know how portable this is, but this seems to work for
me in bash:
test -d empty -a $(ls -l empty | wc -l) -eq 1
This returns 0 if "empt
I should follow up that I downloaded and looked at Diablo
(but did not compile because I don't have xmake).
Looking at the XMakefile.inc, it appears that the author specifically
disabled dynamic linking for GNU systems, but not for others.
It would be worthwhile to contact the author to get his r
Marcus Brinkmann <[EMAIL PROTECTED]> writes:
> On Sun, Nov 15, 1998 at 11:23:09AM -0700, [EMAIL PROTECTED] wrote:
> >
> > ls -1
>
> May be I am missing something, but this does only affect the formatting of
> the output of ls.
-1 won't report . or .., but will return *nothing* of the
directory
On Sun, Nov 15, 1998 at 11:23:09AM -0700, [EMAIL PROTECTED] wrote:
>
> ls -1
May be I am missing something, but this does only affect the formatting of
the output of ls.
I need something that returns an error code if the directory is empty but
does return 0 if it is non-empty.
> Marcus Brinkman
Alexander Koch wrote:
> G'Evening...
>
> I've several question and problems with a package I'm trying to build.
> Well, here we go.
>
> 1. In the rules file some directories /var/run/diablo/, /var/spool/news/
>are 775 and not 755. How evil is that? Honestly I don't know whether
>755 break
ls -1
(one)
--
Phil Humpherys <[EMAIL PROTECTED]> DriverSoft
Unix Systems Administrator Mobile: +1.801.725.3257
WWW/PGPkeys: http://www.spire.com/~humphery
Marcus Brinkmann <[EMAIL PROTECTED]> writes:
> Hi,
>
> can someone give me a hint how I can efficient test if a ce
Hi,
can someone give me a hint how I can efficient test if a certain directory
is empty in the postrm (shell script)?
Thank you,
Marcus
--
"Rhubarb is no Egyptian god."Debian GNU/Linuxfinger brinkmd@
Marcus Brinkmann http://www.debian.orgmaster.debian.org
G'Evening...
I've several question and problems with a package I'm trying to build.
Well, here we go.
1. In the rules file some directories /var/run/diablo/, /var/spool/news/
are 775 and not 755. How evil is that? Honestly I don't know whether
755 breaks anything. And it already was like th
11 matches
Mail list logo