Mailing List Archive

[Bug 1530] ssh-copy-id: strip colon from end of hostname
https://bugzilla.mindrot.org/show_bug.cgi?id=1530


Damien Miller <djm@mindrot.org> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |djm@mindrot.org




--- Comment #1 from Damien Miller <djm@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.
_______________________________________________
openssh-bugs mailing list
openssh-bugs@mindrot.org
https://lists.mindrot.org/mailman/listinfo/openssh-bugs
[Bug 1530] ssh-copy-id: strip colon from end of hostname [ In reply to ]
https://bugzilla.mindrot.org/show_bug.cgi?id=1530





--- Comment #2 from Colin Watson <cjwatson@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.
_______________________________________________
openssh-bugs mailing list
openssh-bugs@mindrot.org
https://lists.mindrot.org/mailman/listinfo/openssh-bugs