sftp and escape characters

ross ross_ at telus.net
Thu Oct 20 00:34:52 PDT 2005


I tried that already and got the error

Bad escaped character ' '
On Thu, 20 Oct 2005 00:21:39 -0700, Daniel <jahilliya at gmail.com> wrote:
> On 10/20/05, ross <ross_ at telus.net> wrote:
>> Recently, I wanted to upload a file to my friend using sftp. The problem
>> is that the file had a space in the file name and the standard escape
>> character of \ didn't seem to work. Is there a way around this? Am I  
>> crazy
>> and doing it wrong? for reference, the line I entered in the sftp  
>> prompt is
>>
>> sftp> put /mnt/pammy/music/Nadasurf-\ Popular.mp3 /files/upload
>> File "/mnt/pammy/music/Nadasurf-\\" not found.
>
> Try enclosing the path+filename fully in single or double quotes.
>
> ie. '/mnt/pammy/music/Nadasurf-\ Popular.mp3' or
> "/mnt/pammy/music/Nadasurf-\ Popular.mp3"



-- 
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/


More information about the freebsd-questions mailing list