bug-bash
[Top][All Lists]
Advanced

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

Re: Bash Bugs


From: Chet Ramey
Subject: Re: Bash Bugs
Date: Fri, 13 Jan 2006 11:37:29 -0500
User-agent: Thunderbird 1.5 (Macintosh/20051201)

n3d gonzales wrote:
> Hello,
> 
> I used my old script to my new machine and their's a bug on it.  I have
> attached the very simplified script. It will determine whether the file
> has space or not. The result is different.

I'm not really sure what the aim of your script is given its logic, but
test -n is supposed to return failure when presented an empty string.
It does on my systems.  Are you sure that the empty lines are really
empty?

Chet

``The lyf so short, the craft so long to lerne.'' - Chaucer
( ``Discere est Dolere'' -- chet )
                                                Live Strong.
Chet Ramey, ITS, CWRU    chet@case.edu    http://cnswww.cns.cwru.edu/~chet/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]