Thread View: gnu.bash.bug
1 messages
1 total messages
Started by John Franks
Sun, 02 Jul 1989 20:28
Problem with test -n (core dumps)
Author: John Franks
Date: Sun, 02 Jul 1989 20:28
Date: Sun, 02 Jul 1989 20:28
18 lines
1184 bytes
1184 bytes
The following program core dumps. I think it should give the error message "test: argument expected." If $Y is quoted as it should be, then the program runs but the -n option has the opposite behavior from what is described in the help file. The -z option has the effect which the help file attributes to the -n option. The -n option seems to have no function (i.e. "test -n STRING" is the same as "test STRING" ). If this is true it could be removed. #bash version 1.01; run on Sun3, SunOS 4.03 Y= if test -n $Y ; then echo "Ok"; fi John Franks Dept of Math. Northwestern University Internet john@math.nwu.edu Bitnet j_franks@nuacc
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads