Bug 1431

Summary: ssh-copy-id -i .ssh/*.pub hostname is noisy
Product: Portable OpenSSH Reporter: Mikel Ward <mikel>
Component: MiscellaneousAssignee: Assigned to nobody <unassigned-bugs>
Status: CLOSED FIXED    
Severity: minor CC: djm
Priority: P2    
Version: 4.7p1   
Hardware: Other   
OS: Linux   
Bug Depends on:    
Bug Blocks: 1353    
Attachments:
Description Flags
redirect expr's output to /dev/null none

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.