Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 20 Oct 2005 00:34:48 -0700
From:      ross <ross_@telus.net>
To:        Daniel <jahilliya@gmail.com>
Cc:        "freebsd-questions@freebsd.org" <freebsd-questions@freebsd.org>
Subject:   Re: sftp and escape characters
Message-ID:  <op.syxooagzh6fndz@ross.inet>
In-Reply-To: <ba5e78ea0510200021x5e599e7aj651d9aa1be0c84d1@mail.gmail.com>
References:  <op.syxlq0w9h6fndz@ross.inet> <ba5e78ea0510200021x5e599e7aj651d9aa1be0c84d1@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
I tried that already and got the error

Bad escaped character ' '
On Thu, 20 Oct 2005 00:21:39 -0700, Daniel <jahilliya@gmail.com> wrote:
> On 10/20/05, ross <ross_@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/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?op.syxooagzh6fndz>