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/