Subject: bin/31107: scp can't handle remote file names with '(' in them
To: None <gnats-admin@netbsd.org, netbsd-bugs@netbsd.org>
From: None <dillo@NetBSD.org>
List: netbsd-bugs
Date: 08/31/2005 09:20:00
>Number: 31107
>Category: bin
>Synopsis: scp can't handle remote file names with '(' in them
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: bin-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Aug 31 09:20:00 +0000 2005
>Originator: Dieter Baron
>Release: NetBSD 2.0.2
>Environment:
System: NetBSD wintermute 2.0.2 NetBSD 2.0.2 (WINTERMUTE) #0: Mon May 16 12:15:09 MEST 2005 root@wintermute:/usr/src/sys/arch/i386/compile/WINTERMUTE i386
Architecture: i386
Machine: i386
>Description:
Trying to copy a file with '(' in it's name from a remote host fails:
$ scp gateway:\(* .
bash: -c: line 0: syntax error near unexpected token `('
bash: -c: line 0: `scp -f (*'
quoting the '\' helps:
$ scp gateway:\\\(* .
(foo) 26% 712KB 29.3KB/s 01:06 ETA
but this should not be necessary (and is not documented as required either).
>How-To-Repeat:
scp localhost:\(* .
>Fix:
correctly quote the file name passed to scp on the remote end.
>Unformatted: