Bug 1431 - ssh-copy-id -i .ssh/*.pub hostname is noisy
Summary: ssh-copy-id -i .ssh/*.pub hostname is noisy
Status: CLOSED FIXED
Alias: None
Product: Portable OpenSSH
Classification: Unclassified
Component: Miscellaneous (show other bugs)
Version: 4.7p1
Hardware: Other Linux
: P2 minor
Assignee: Assigned to nobody
URL:
Keywords:
Depends on:
Blocks: V_4_8
  Show dependency treegraph
 
Reported: 2008-01-17 16:40 AEDT by Mikel Ward
Modified: 2008-03-31 15:23 AEDT (History)
1 user (show)

See Also:


Attachments
redirect expr's output to /dev/null (373 bytes, patch)
2008-01-17 16:40 AEDT, Mikel Ward
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Mikel Ward 2008-01-17 16:40:33 AEDT
Created attachment 1443 [details]
redirect expr's output to /dev/null

If you run ssh-copy-id with the -i option and specify a file name ending in .pub, it prints a number before doing anything.

This is because the expr call on line 14 prints the number of characters matched.

The output of expr should be redirected to /dev/null.

Current in 4.7p1 on Fedora.
Comment 1 Damien Miller 2008-01-20 05:52:45 AEDT
patch applied - thanks!
Comment 2 Damien Miller 2008-03-31 15:23:44 AEDT
Fix shipped in 4.9/4.9p1 release.