Bug 2117 - Non-portable use of test == operator in ssh-copy-id
Summary: Non-portable use of test == operator in ssh-copy-id
Status: CLOSED FIXED
Alias: None
Product: Portable OpenSSH
Classification: Unclassified
Component: Miscellaneous (show other bugs)
Version: 6.2p1
Hardware: Other Linux
: P5 normal
Assignee: Assigned to nobody
URL: http://bugs.debian.org/711162
Keywords:
Depends on:
Blocks: V_6_3
  Show dependency treegraph
 
Reported: 2013-06-05 19:49 AEST by Colin Watson
Modified: 2015-08-11 23:03 AEST (History)
1 user (show)

See Also:


Attachments
test =, not == (279 bytes, patch)
2013-06-05 19:51 AEST, Colin Watson
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Colin Watson 2013-06-05 19:49:20 AEST
In http://bugs.debian.org/711162, Andrey Rahmatullin reports a non-portable use of test:

  if [ $# == 0 ] ; then

This should be =, not ==.
Comment 1 Colin Watson 2013-06-05 19:51:10 AEST
Created attachment 2296 [details]
test =, not ==
Comment 2 Darren Tucker 2013-06-05 22:49:13 AEST
applied, thanks. it will be in 6.3p1.
Comment 3 Damien Miller 2015-08-11 23:03:20 AEST
Set all RESOLVED bugs to CLOSED with release of OpenSSH 7.1