Bug 6169 - Syntax Error in runtests.sh "ssh-basic.test" script
Syntax Error in runtests.sh "ssh-basic.test" script
Status: RESOLVED FIXED
Product: rsync
Classification: Unclassified
Component: core
3.0.5
x86 Other
: P3 minor
: ---
Assigned To: Wayne Davison
Rsync QA Contact
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-03-06 02:06 UTC by Reiner Schulz
Modified: 2009-03-06 09:19 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Reiner Schulz 2009-03-06 02:06:10 UTC
OS: SCO_SV imsprod 3.2 5.0.7 i386

rsync-3.0.5/testsuite/ssh-basic.test
Line 21
Original: if ! [ "`$SSH -o'BatchM...
my change: if [ ! "`$SSH -o'BatchM...

NOT-Operator at wrong place.
Comment 1 Wayne Davison 2009-03-06 09:19:32 UTC
Whatever shell that is is broken, because '[' is just a program name (though often a built-in these days), and the syntax, "if ! program; then ... fi" is legal.  However, that "if" was a bit convoluted with a ! prior to an equality comparison, and I changed it into an inequality comparison without the prefixed "!".

Thanks!