Testing wanted: OpenSSH 4.8

Iain Morgan imorgan at nas.nasa.gov
Fri Mar 14 11:20:16 EST 2008


On Thu, Mar 13, 2008 at 13:11:13 -0700, Iain Morgan wrote:
> regress/sftp-cmds.sh will fail on some platforms because it assumes that
> the echo command supports C-style escape codes.
> 
> verbose "$tid: lls"
> echo "cd ${OBJ}\nlls" | ${SFTP} -P ${SFTPSERVER} 2>&1 | \
>         grep -q copy.dd || fail "lls failed"
> 
> To fix this, it might be better to do something like this:
> 
> verbose "$tid: lls"
> (echo "cd ${OBJ}"; echo "lls") | ${SFTP} -P ${SFTPSERVER} 2>&1 | \
>         grep -q copy.dd || fail "lls failed"
> 
> Using 'echo -e' would be nicer, but that's not universal either.
> 

One further note: On Solaris 9 /usr/bin/grep does not support a -q
option, whereas /usr/xpg4/bin/grep does. It may be best to just direct
the output to /dev/null rather than relying on -q.

-- 
Iain Morgan


More information about the openssh-unix-dev mailing list