bugzilla-daemon at bugzilla.mindrot.org
2008-Oct-09 11:59 UTC
[Bug 1530] New: ssh-copy-id: strip colon from end of hostname
https://bugzilla.mindrot.org/show_bug.cgi?id=1530 Summary: ssh-copy-id: strip colon from end of hostname Product: Portable OpenSSH Version: 5.1p1 Platform: Other URL: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=22617 2 OS/Version: Linux Status: NEW Severity: trivial Priority: P2 Component: Miscellaneous AssignedTo: unassigned-bugs at mindrot.org ReportedBy: cjwatson at debian.org Created an attachment (id=1573) --> (http://bugzilla.mindrot.org/attachment.cgi?id=1573) strip colon from end of hostname When using ssh-copy-id, people often suffix the hostname with a colon, by subconscious analogy with scp. It would be nice to make this silently work. The attached patch does this. -- Configure bugmail: https://bugzilla.mindrot.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching the assignee of the bug.
bugzilla-daemon at bugzilla.mindrot.org
2008-Dec-07 22:57 UTC
[Bug 1530] ssh-copy-id: strip colon from end of hostname
https://bugzilla.mindrot.org/show_bug.cgi?id=1530 Damien Miller <djm at mindrot.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |djm at mindrot.org --- Comment #1 from Damien Miller <djm at mindrot.org> 2008-12-08 09:57:22 --- Is the substitution "${1%:}" supported in the standard Bourne shell? -- Configure bugmail: https://bugzilla.mindrot.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching the assignee of the bug. You are watching someone on the CC list of the bug.
bugzilla-daemon at bugzilla.mindrot.org
2008-Dec-07 23:37 UTC
[Bug 1530] ssh-copy-id: strip colon from end of hostname
https://bugzilla.mindrot.org/show_bug.cgi?id=1530 --- Comment #2 from Colin Watson <cjwatson at debian.org> 2008-12-08 10:37:22 --- It's not a bashism at any rate, being in POSIX (http://www.opengroup.org/onlinepubs/009695399/utilities/xcu_chap02.html#tag_02_06_02). I suspect that it is unfortunately not portable to Solaris' anaemic shell. I usually program to POSIX shell where I can, but if ssh-copy-id needs to work on Solaris then I concede that that might be a problem and that it'll need to use command substitution and sed instead. -- Configure bugmail: https://bugzilla.mindrot.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching the assignee of the bug. You are watching someone on the CC list of the bug.
bugzilla-daemon at bugzilla.mindrot.org
2010-Apr-26 10:14 UTC
[Bug 1530] ssh-copy-id: strip colon from end of hostname
https://bugzilla.mindrot.org/show_bug.cgi?id=1530 Damien Miller <djm at mindrot.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Blocks| |1708 -- Configure bugmail: https://bugzilla.mindrot.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching the assignee of the bug. You are watching someone on the CC list of the bug.
bugzilla-daemon at bugzilla.mindrot.org
2010-Aug-03 06:12 UTC
[Bug 1530] ssh-copy-id: strip colon from end of hostname
https://bugzilla.mindrot.org/show_bug.cgi?id=1530 Darren Tucker <dtucker at zip.com.au> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |dtucker at zip.com.au --- Comment #3 from Darren Tucker <dtucker at zip.com.au> --- You're right, solaris' /bin/sh doesn't support it: # a=foo: # echo ${a%:} bad substitution # uname -rs SunOS 5.8 This, although uglier, works: host=`echo $1 | sed 's/:$//':` -- Configure bugmail: https://bugzilla.mindrot.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching the assignee of the bug. You are watching someone on the CC list of the bug.
bugzilla-daemon at bugzilla.mindrot.org
2010-Aug-03 06:21 UTC
[Bug 1530] ssh-copy-id: strip colon from end of hostname
https://bugzilla.mindrot.org/show_bug.cgi?id=1530 --- Comment #4 from Darren Tucker <dtucker at zip.com.au> --- Created attachment 1909 --> https://bugzilla.mindrot.org/attachment.cgi?id=1909 openssh-ssh-copy-id.patch Strip trailing colon from hostname. -- Configure bugmail: https://bugzilla.mindrot.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching the assignee of the bug. You are watching someone on the CC list of the bug.
bugzilla-daemon at bugzilla.mindrot.org
2010-Aug-03 06:22 UTC
[Bug 1530] ssh-copy-id: strip colon from end of hostname
https://bugzilla.mindrot.org/show_bug.cgi?id=1530 --- Comment #5 from Darren Tucker <dtucker at zip.com.au> --- BTW solaris' /bin/sh doesn't do tilde expansion either, so it'll not work as a target right now. -- Configure bugmail: https://bugzilla.mindrot.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching the assignee of the bug. You are watching someone on the CC list of the bug.
bugzilla-daemon at bugzilla.mindrot.org
2010-Aug-10 02:49 UTC
[Bug 1530] ssh-copy-id: strip colon from end of hostname
https://bugzilla.mindrot.org/show_bug.cgi?id=1530 Damien Miller <djm at mindrot.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #1909| |ok+ Flags| | -- Configure bugmail: https://bugzilla.mindrot.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching the assignee of the bug. You are watching someone on the CC list of the bug.
bugzilla-daemon at bugzilla.mindrot.org
2010-Aug-10 03:37 UTC
[Bug 1530] ssh-copy-id: strip colon from end of hostname
https://bugzilla.mindrot.org/show_bug.cgi?id=1530 Darren Tucker <dtucker at zip.com.au> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #6 from Darren Tucker <dtucker at zip.com.au> --- applied, will be in the 5.6p1 release. Thanks. -- Configure bugmail: https://bugzilla.mindrot.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching the assignee of the bug. You are watching someone on the CC list of the bug.
bugzilla-daemon at bugzilla.mindrot.org
2010-Aug-27 00:28 UTC
[Bug 1530] ssh-copy-id: strip colon from end of hostname
https://bugzilla.mindrot.org/show_bug.cgi?id=1530 Darren Tucker <dtucker at zip.com.au> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED --- Comment #7 from Darren Tucker <dtucker at zip.com.au> --- With the release of OpenSSH 5.6p1 this bug is now considered closed. If you have further problems please reopen or file a new bug as appropriate. -- Configure bugmail: https://bugzilla.mindrot.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching the assignee of the bug. You are watching someone on the CC list of the bug.