bug-sh-utils
[Top][All Lists]
Advanced

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

Problem with test -d


From: stefan . marquardt
Subject: Problem with test -d
Date: Fri, 31 May 2002 10:46:56 +0200

Hello,

i struggle with the test -d command.
I can't really say what is wrong.

In the moment the gnu test command has another result code as on HP-UX or
SCO OpenServer.

Here the example:

Another OS:

ENTW-HP: /home/user/work # test -d man???
ENTW-HP: /home/user/work # echo $?
0
ENTW-HP: /home/user/work # echo $USERDIR/work/man???
/home/user/work/man000 /home/user/work/man001 /home/user/work/man002 /home/user/
work/man003 /home/user/work/man004 /home/user/work/man010 /home/user/work/man011
 /home/user/work/man016 /home/user/work/man026 /home/user/work/man033 /home/user
/work/man035 /home/user/work/man038 /home/user/work/man039 /home/user/work/man05
5 /home/user/work/man064 /home/user/work/man069 /home/user/work/man555 /home/use
r/work/man992 /home/user/work/man999


On Linux:

address@hidden /home]# echo $USERDIR/work/man???
/home/work/man100 /home/work/man101 /home/work/man102
address@hidden /home]# test -d $USERDIR/work/man???
test: too many arguments


address@hidden bin]# ./test --version
test (GNU sh-utils) 2.0
Written by FIXME: ksb and mjb.

Copyright (C) 1999 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
address@hidden bin]# ./test -d $USERDIR/work/man???
./test: zuviele Argumente
address@hidden bin]# test -d $USERDIR/work/man???
test: too many arguments


Any chance to get returncode 0 ?

Stefan Marquardt
hagebau dd
germany



**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com
**********************************************************************




reply via email to

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