Just wrap the `pwd` in quotes to escape spaces. It’s just literally wrapping the output of pwd in a string “”.
$ > scp `pwd`/my_file.png foo # reads pwd spaces as argument separator $ > scp "`pwd`"/my_file.png foo
Just wrap the `pwd` in quotes to escape spaces. It’s just literally wrapping the output of pwd in a string “”.
$ > scp `pwd`/my_file.png foo # reads pwd spaces as argument separator $ > scp "`pwd`"/my_file.png foo
Pingback: Make $PWD or `pwd` handle spaces without crashing and burning | Code-a-thon