[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: scp protocol error on multiple file copy?
On Thu, 31 Oct 2019, John D. Baker wrote:
> I added the "-T" switch (disable strict filename checking) and that made
> it work.
> I'll need to check, but as I use 'ksh' as login shell it would be nice
> if ksh/bash filename-generation [ !(), @(), etc. ] could be used. Maybe
> it's only available in interactive shells?
I added the "-v" verbose switch to one of the failing command forms.
I used (ksh filename generation):
$ scp -v -T -p buildhost:"/path/to/@(sets/@([bem*|text.tgz)|kernel/netbsd-CUSTOM.gz)" .
On the remote, it invokes 'scp' with an undocumented "-f" (lowercase
debug1: Sending command: scp -v -p -f /path/to/@(sets/@([bem*|text.tgz)|kernel/netbsd-CUSTOM.gz)
passing it the path/fileglob given on the local host. That is what then
reports "No such file or directory." which is passed back to the local
Sink: \001scp: /path/to/@(sets/@([bem*|text.tgz)|kernel/netbsd-CUSTOM.gz): No such file or directory
scp: /path/to/@(sets/@([bem*|text.tgz)|kernel/netbsd-CUSTOM.gz): No such file or directory
Adding "-v" to my original multiple-path source file form shows that
it checks timestamps on the first matching file of the [bem]* glob and
extracts the matching name, but then complains when that isn't a literal
match for what was given on the command line.
|/"\ John D. Baker, KN5UKS NetBSD Darwin/MacOS X
|\ / jdbaker[snail]consolidated[flyspeck]net OpenBSD FreeBSD
| X No HTML/proprietary data in email. BSD just sits there and works!
|/ \ GPGkeyID: D703 4A7E 479F 63F8 D3F4 BD99 9572 8F23 E4AD 1645
Main Index |
Thread Index |