1

Escaping quotes for scp

view story
linux-howto

http://unix.stackexchange.com – I needed to write a that behaves correctly with nasty (spaces, braces, etc..) filenames. scp -rv "$1" shiny:/Volumes/Seagate3To/\"$1\" This function works, but I don't understand why the quotes need escaping in the second argument of scp. (HowTos)