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    [EMAIL PROTECTED]    http://cnswww.cns.cwru.edu/~chet/


_______________________________________________
Bug-bash mailing list
Bug-bash@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-bash
  • Bash Bugs n3d gonzales
    • Re: Bash Bugs Chet Ramey

Reply via email to