[Bug 1530] ssh-copy-id: strip colon from end of hostname
bugzilla-daemon at bugzilla.mindrot.org
bugzilla-daemon at bugzilla.mindrot.org
Tue Aug 3 16:12:49 EST 2010
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.
More information about the openssh-bugs
mailing list