On 13 Sep 99, Kai =?iso-8859-1?Q?Gro=DFjohann?= <[EMAIL PROTECTED]> 
wrote:
> I'm not sure, but maybe you said "test -x foo" and it means that foo
> wasn't found?  Or it executed a different command entirely (because
> some part of it got chopped off)?
> 
> Please set rcp-debug-buffer to t and also mail me the resulting debug
> buffer.  (In addition to the *rcp/scp erik@ns1* buffer.)

Ack.  Color me stupid.  :)  Here's the contents of *debug rcp/scp
erik@ns1*:

$ echo hello
hello
$ echo ~root
/root
$ test -x /bin/ls ; echo $?
0
$ /bin/ls -lnd / >/dev/null 2>&1 ; echo $?
1
$ test -x /usr/bin/ls ; echo $?
1
$ test -x /usr/sbin/ls ; echo $?
1
$ test -x /usr/local/bin/ls ; echo $?
1
$ test -x /usr/ccs/bin/ls ; echo $?
1
$ test -x /bin/gnuls ; echo $?
1
$ test -x /usr/bin/gnuls ; echo $?
1
$ test -x /usr/sbin/gnuls ; echo $?
1
$ test -x /usr/local/bin/gnuls ; echo $?
1
$ test -x /usr/ccs/bin/gnuls ; echo $?
1
$ test -x /bin/ls ; echo $?
0
$ rcp_set_exit_status () {
return $1
}
$ /bin/ls -d /bin >/dev/null 2>&1
$ echo $?
0
$ /bin/ls -d /bin >/dev/null 2>&1
$ echo $?
0
$ /bin/ls -iLldn /bin
ls: illegal option -- n
usage: ls [-ACFHLPRTWacdfgikloqrstu1] [file ...]
$ /bin/ls -d /usr/bin >/dev/null 2>&1
$ echo $?
0
$ /bin/ls -d /usr/bin >/dev/null 2>&1
$ echo $?
0
$ /bin/ls -iLldn /usr/bin
ls: illegal option -- n
usage: ls [-ACFHLPRTWacdfgikloqrstu1] [file ...]
$ /bin/ls -d /usr/sbin >/dev/null 2>&1
$ echo $?
0
$ /bin/ls -d /usr/sbin >/dev/null 2>&1
$ echo $?
0
$ /bin/ls -iLldn /usr/sbin
ls: illegal option -- n
usage: ls [-ACFHLPRTWacdfgikloqrstu1] [file ...]
$ /bin/ls -d /usr/local/bin >/dev/null 2>&1
$ echo $?
0
$ /bin/ls -d /usr/local/bin >/dev/null 2>&1
$ echo $?
0
$ /bin/ls -iLldn /usr/local/bin
ls: illegal option -- n
usage: ls [-ACFHLPRTWacdfgikloqrstu1] [file ...]
$ /bin/ls -d /usr/ccs/bin >/dev/null 2>&1
$ echo $?
1
$ PATH=
$ export PATH
$ LC_TIME=C; export LC_TIME; echo huhu
huhu
$ /bin/ls -d /tmp/helpme.txt >/dev/null 2>&1
$ echo $?
1
$ /bin/ls -d /tmp/helpme.txt >/dev/null 2>&1
$ echo $?
1
$ /bin/ls -d /tmp/helpme.txt >/dev/null 2>&1
$ echo $?
1
$ /bin/ls -d /tmp/ >/dev/null 2>&1
$ echo $?
0
$ test -w /tmp/ ; echo $?
test: not found
127
$ /bin/ls -d /tmp/helpme.txt >/dev/null 2>&1
$ echo $?
1
$ test -d /tmp/ ; echo $?
test: not found
127
$ echo hello
hello
$ echo ~root
/root
$ test -x /bin/ls ; echo $?
0
$ /bin/ls -lnd / >/dev/null 2>&1 ; echo $?
1
$ test -x /usr/bin/ls ; echo $?
1
$ test -x /usr/sbin/ls ; echo $?
1
$ test -x /usr/local/bin/ls ; echo $?
1
$ test -x /usr/ccs/bin/ls ; echo $?
1
$ test -x /bin/gnuls ; echo $?
1
$ test -x /usr/bin/gnuls ; echo $?
1
$ test -x /usr/sbin/gnuls ; echo $?
1
$ test -x /usr/local/bin/gnuls ; echo $?
1
$ test -x /usr/ccs/bin/gnuls ; echo $?
1
$ test -x /bin/ls ; echo $?
0
$ rcp_set_exit_status () {
return $1
}
$ /bin/ls -d /bin >/dev/null 2>&1
$ echo $?
0
$ /bin/ls -d /bin >/dev/null 2>&1
$ echo $?
0
$ /bin/ls -iLldn /bin
ls: illegal option -- n
usage: ls [-ACFHLPRTWacdfgikloqrstu1] [file ...]
$ /bin/ls -d /usr/bin >/dev/null 2>&1
$ echo $?
0
$ /bin/ls -d /usr/bin >/dev/null 2>&1
$ echo $?
0
$ /bin/ls -iLldn /usr/bin
ls: illegal option -- n
usage: ls [-ACFHLPRTWacdfgikloqrstu1] [file ...]
$ /bin/ls -d /usr/sbin >/dev/null 2>&1
$ echo $?
0
$ /bin/ls -d /usr/sbin >/dev/null 2>&1
$ echo $?
0
$ /bin/ls -iLldn /usr/sbin
ls: illegal option -- n
usage: ls [-ACFHLPRTWacdfgikloqrstu1] [file ...]
$ /bin/ls -d /usr/local/bin >/dev/null 2>&1
$ echo $?
0
$ /bin/ls -d /usr/local/bin >/dev/null 2>&1
$ echo $?
0
$ /bin/ls -iLldn /usr/local/bin
ls: illegal option -- n
usage: ls [-ACFHLPRTWacdfgikloqrstu1] [file ...]
$ /bin/ls -d /usr/ccs/bin >/dev/null 2>&1
$ echo $?
1
$ PATH=
$ export PATH
$ LC_TIME=C; export LC_TIME; echo huhu
huhu
$ /bin/ls -d /tmp/helpme.txt >/dev/null 2>&1
$ echo $?
1
$ /bin/ls -d /tmp/helpme.txt >/dev/null 2>&1
$ echo $?
1
$ /bin/ls -d /tmp/helpme.txt >/dev/null 2>&1
$ echo $?
1
$ /bin/ls -d /tmp/ >/dev/null 2>&1
$ echo $?
0
$ test -w /tmp/ ; echo $?
test: not found
127
$ /bin/ls -d /tmp/helpme.txt >/dev/null 2>&1
$ echo $?
1
$ test -d /tmp/ ; echo $?
test: not found
127

I think I see what's happening now.  The PATH is being emptied, and
`test' therefore isn't found.  It is located in /bin/ on that machine,
and isn't built into the shell.  Could that be the problem?

-- 
# Erik Arneson      [EMAIL PROTECTED]    Webring Software Engineer #
# Yahoo! Inc.      PGP ID: 2048/84413E19        (541) 482-3000x114 #
# "There's such a fine line between stupid and clever." Spinal Tap #

Reply via email to