Debian Bug report logs -
#711162
ssh-copy-id "unexpected operator" error
Toggle useless messages
Report forwarded
to debian-bugs-dist@lists.debian.org, Debian OpenSSH Maintainers <debian-ssh@lists.debian.org>:
Bug#711162; Package openssh-client.
(Wed, 05 Jun 2013 06:57:06 GMT) (full text, mbox, link).
Acknowledgement sent
to Andrey Rahmatullin <wrar@wrar.name>:
New Bug report received and forwarded. Copy sent to Debian OpenSSH Maintainers <debian-ssh@lists.debian.org>.
(Wed, 05 Jun 2013 06:57:06 GMT) (full text, mbox, link).
Message #5 received at submit@bugs.debian.org (full text, mbox, reply):
Package: openssh-client
Version: 1:6.2p2-3
Severity: normal
When running ssh-copy-id with or without arguments I get a shell error:
/usr/bin/ssh-copy-id: 168: [: 0: unexpected operator
The script continues working after this though. The offending code: "[ $# == 0
]". There is also "[ $# != 1 ]" in the next code block. POSIX test(1) doesn't
know "==" and applies "!=" only to strings. Numbers should be compared with -eq
and -ne.
-- System Information:
Debian Release: jessie/sid
APT prefers testing
APT policy: (990, 'testing'), (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 3.8-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=ru_RU.UTF-8, LC_CTYPE=ru_RU.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages openssh-client depends on:
ii adduser 3.113+nmu3
ii dpkg 1.16.10
ii libc6 2.17-3
ii libedit2 2.11-20080614-5
ii libgssapi-krb5-2 1.10.1+dfsg-5
ii libselinux1 2.1.13-2
ii libssl1.0.0 1.0.1e-3
ii passwd 1:4.1.5.1-1
ii zlib1g 1:1.2.8.dfsg-1
Versions of packages openssh-client recommends:
ii xauth 1:1.0.7-1
Versions of packages openssh-client suggests:
pn keychain <none>
pn libpam-ssh <none>
pn monkeysphere <none>
ii openssh-blacklist 0.4.1+nmu1
ii openssh-blacklist-extra 0.4.1+nmu1
pn ssh-askpass <none>
-- no debconf information
Information forwarded
to debian-bugs-dist@lists.debian.org, Debian OpenSSH Maintainers <debian-ssh@lists.debian.org>:
Bug#711162; Package openssh-client.
(Wed, 05 Jun 2013 09:57:07 GMT) (full text, mbox, link).
Acknowledgement sent
to Colin Watson <cjwatson@debian.org>:
Extra info received and forwarded to list. Copy sent to Debian OpenSSH Maintainers <debian-ssh@lists.debian.org>.
(Wed, 05 Jun 2013 09:57:07 GMT) (full text, mbox, link).
Message #10 received at 711162@bugs.debian.org (full text, mbox, reply):
Control: forwarded -1 https://bugzilla.mindrot.org/show_bug.cgi?id=2117
Control: tag -1 pending
On Wed, Jun 05, 2013 at 12:52:06PM +0600, Andrey Rahmatullin wrote:
> When running ssh-copy-id with or without arguments I get a shell error:
>
> /usr/bin/ssh-copy-id: 168: [: 0: unexpected operator
>
> The script continues working after this though. The offending code: "[ $# == 0
> ]". There is also "[ $# != 1 ]" in the next code block. POSIX test(1) doesn't
> know "==" and applies "!=" only to strings. Numbers should be compared with -eq
> and -ne.
Actually it's fine to do equality comparisons on numbers with = and !=,
just not (portably) with ==. For purposes as simple as this, numbers
can be treated as strings.
I have forwarded your comment upstream, and fixed the non-portability
for my next upload.
Thanks,
--
Colin Watson [cjwatson@debian.org]
Added tag(s) pending.
Request was from Colin Watson <cjwatson@debian.org>
to 711162-submit@bugs.debian.org.
(Wed, 05 Jun 2013 09:57:08 GMT) (full text, mbox, link).
Reply sent
to Colin Watson <cjwatson@debian.org>:
You have taken responsibility.
(Thu, 06 Jun 2013 16:51:17 GMT) (full text, mbox, link).
Notification sent
to Andrey Rahmatullin <wrar@wrar.name>:
Bug acknowledged by developer.
(Thu, 06 Jun 2013 16:51:17 GMT) (full text, mbox, link).
Message #19 received at 711162-close@bugs.debian.org (full text, mbox, reply):
Source: openssh
Source-Version: 1:6.2p2-4
We believe that the bug you reported is fixed in the latest version of
openssh, which is due to be installed in the Debian FTP archive.
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to 711162@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Colin Watson <cjwatson@debian.org> (supplier of updated openssh package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Format: 1.8
Date: Thu, 06 Jun 2013 17:06:31 +0100
Source: openssh
Binary: openssh-client openssh-server ssh ssh-krb5 ssh-askpass-gnome openssh-client-udeb openssh-server-udeb
Architecture: source i386 all
Version: 1:6.2p2-4
Distribution: unstable
Urgency: low
Maintainer: Debian OpenSSH Maintainers <debian-ssh@lists.debian.org>
Changed-By: Colin Watson <cjwatson@debian.org>
Description:
openssh-client - secure shell (SSH) client, for secure access to remote machines
openssh-client-udeb - secure shell client for the Debian installer (udeb)
openssh-server - secure shell (SSH) server, for secure access from remote machines
openssh-server-udeb - secure shell server for the Debian installer (udeb)
ssh - secure shell client and server (metapackage)
ssh-askpass-gnome - interactive X program to prompt users for a passphrase for ssh-ad
ssh-krb5 - secure shell client and server (transitional package)
Closes: 687436 711159 711162 711364
Changes:
openssh (1:6.2p2-4) unstable; urgency=low
.
* Fix non-portable shell in ssh-copy-id (closes: #711162).
* Rebuild against debhelper 9.20130604 with fixed dependencies for
invoke-rc.d and Upstart jobs (closes: #711159, #711364).
* Set SELinux context on private host keys as well as public host keys
(closes: #687436).
Checksums-Sha1:
aaca0477e3027c6e3776a98812b997042a7bba5a 2571 openssh_6.2p2-4.dsc
2b49022325fd38b14b45deba342e9528fdfb7b66 170459 openssh_6.2p2-4.debian.tar.gz
1bc0cfff3ad9fc3c6c4f63503c38884f6f5ba12c 590584 openssh-client_6.2p2-4_i386.deb
fbe792f3a1b4bba4d295eca52df560d5e734b7ae 261040 openssh-server_6.2p2-4_i386.deb
f040772486740b4772913e1d124f4af1e9bc7e9b 1064 ssh_6.2p2-4_all.deb
f2119d51eb783e2975be3621321372cb2d523f56 103350 ssh-krb5_6.2p2-4_all.deb
1d145419b0f2876c3b0778f3878993352f46dfd9 111118 ssh-askpass-gnome_6.2p2-4_i386.deb
07c3c7b52659c860f1e8a7b5a3bc025963c797ae 183094 openssh-client-udeb_6.2p2-4_i386.udeb
b06028bd71af66b7c15fbec2306dc776862b9eac 208320 openssh-server-udeb_6.2p2-4_i386.udeb
Checksums-Sha256:
f59f2f2d5b594343190963b0efc2758418918771aa57503e45cd194166db40fa 2571 openssh_6.2p2-4.dsc
b06d97f576388a470dcbea3ad6763b009031048b8e94ef19635dd0a8a66299de 170459 openssh_6.2p2-4.debian.tar.gz
8f8ccab755a7df2b81bb51403e91dcff4625762cca321411b2b0b9c2bff6364c 590584 openssh-client_6.2p2-4_i386.deb
e21fa29626721a320dfc5e3de8741e2bc5cee4a206454df1458f089c6fc7db16 261040 openssh-server_6.2p2-4_i386.deb
3b3cd6c2926b1f93284df520bc37ba5ae64c261688153ad77aa669da6da29a2d 1064 ssh_6.2p2-4_all.deb
3c8b18dd4fc93a44ffbe8785e707cfb9ed7de9734424832cc1becf0ffb72b2eb 103350 ssh-krb5_6.2p2-4_all.deb
e10ba647a0c5f7957ca505ee8f3b05d0f18a1001df78f6782173dbdbec681595 111118 ssh-askpass-gnome_6.2p2-4_i386.deb
4db3f56e8c2a6b0c98159faa9f03917c73f8db3e320d6fab8f998daf3f532495 183094 openssh-client-udeb_6.2p2-4_i386.udeb
3402fed72f80fd20130d1e9acd735380a41a8f08cde390312860969495017132 208320 openssh-server-udeb_6.2p2-4_i386.udeb
Files:
f922cf27da8966bec814050e692078a5 2571 net standard openssh_6.2p2-4.dsc
95bb55d9805eb6c97124604bc8cc9b00 170459 net standard openssh_6.2p2-4.debian.tar.gz
1481fc9a2897d3c93386be255c552d65 590584 net standard openssh-client_6.2p2-4_i386.deb
94222561b4c011dc79716ddbce96b6cf 261040 net optional openssh-server_6.2p2-4_i386.deb
dab0cb7d12427e14b2bed6b3e2094e9f 1064 net extra ssh_6.2p2-4_all.deb
8175911e459bf83009a9859f6ce4a115 103350 oldlibs extra ssh-krb5_6.2p2-4_all.deb
c533ddd85273ec64a9700a34c1ee553a 111118 gnome optional ssh-askpass-gnome_6.2p2-4_i386.deb
e31c209cf35f413160ee484e70e6225c 183094 debian-installer optional openssh-client-udeb_6.2p2-4_i386.udeb
e0db3cbd186a426301652035704a24e9 208320 debian-installer optional openssh-server-udeb_6.2p2-4_i386.udeb
Package-Type: udeb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Colin Watson <cjwatson@debian.org> -- Debian developer
iQIVAwUBUbC49Dk1h9l9hlALAQhBPxAAuwiG809DXLQ/YmhDnUWpThSpSMorMu0B
ii0ZmLKF9Tw802IAOE33psEMxqpa86/Rm5Ki/KZUCl4MP6wwmOOrJvBN29DJ91AZ
J7PDIbRWUDjcTLcU7g6Z9OXXgdUfbBOR1e28J9LX+Im5KraSqaUzF3XVbojIinSR
ww7v7sdeGbhZCPoY/lTV465dTi5IPEi5nCmLliZZV3QOwGpXazgDQcRnJn3khTx9
7Azv7VuvOTa/VUfYaYRUxRqOky9tX+CpCgKrGKWzd0gszJdGEPtcwhc6Xku9WlDl
ngsZPD2jEpYpTSvAo70m3aTgLBMohNRv9xElmGBx6UsRUHEn4lzymLJozChFkDJq
goi3W7b2V+aNPfEWvKVAUL6vAhfXVOb/LRhDbwq3zliWQY38mNw1Xj5imh9AY6G2
2qFd6U6plgioKwtESOvecN6wR6DW3qGp/9mnkHCm61ysSmoc/A+lujHxDvTWHx+W
ejF0d5mJsmbikDHQrRERDrqI6IjRZEIOMEqUgiMXTxA9jjw9GT19/Y9A/ZBgfXGP
ByqwAAA7aval7bCxE1l6ToWJ8vAT1tFuo1gADkVK3vXTfS6ScE5ksRV1iIP7AAu9
kzf+VbTNN41qvqx+LOa0gz/idyw4vQvekpPCGmECfSrAyCmKgiv0uwkoBRGDL25B
eq9c3CnIWDg=
=Jeu/
-----END PGP SIGNATURE-----
Bug archived.
Request was from Debbugs Internal Request <owner@bugs.debian.org>
to internal_control@bugs.debian.org.
(Mon, 15 Jul 2013 07:32:09 GMT) (full text, mbox, link).
Send a report that this bug log contains spam.
Debian bug tracking system administrator <owner@bugs.debian.org>.
Last modified:
Sat Mar 25 18:43:32 2023;
Machine Name:
buxtehude
Debian Bug tracking system
Debbugs is free software and licensed under the terms of the GNU
Public License version 2. The current version can be obtained
from https://bugs.debian.org/debbugs-source/.
Copyright © 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson,
2005-2017 Don Armstrong, and many other contributors.