Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 20 Oct 2005 12:23:03 -0500
From:      Will Maier <willmaier@ml1.net>
To:        freebsd-questions@freebsd.org
Subject:   Re: sftp and escape characters
Message-ID:  <20051020172303.GW3679@localdomain>
In-Reply-To: <op.syyew7tsh6fndz@ross.inet>
References:  <op.syxlq0w9h6fndz@ross.inet> <ba5e78ea0510200021x5e599e7aj651d9aa1be0c84d1@mail.gmail.com> <op.syxooagzh6fndz@ross.inet> <ba5e78ea0510200522i555d2737x79b1de068d07ff80@mail.gmail.com> <op.syyew7tsh6fndz@ross.inet>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Oct 20, 2005 at 10:01:45AM -0700, ross wrote:
> my prompt copy and pasted.

> sftp> put "/mnt/pammy/music/Nadasurf-\ Popular.mp3" /files/upload
> Bad escaped character ' '
> sftp> put '/mnt/pammy/music/Nadasurf-\ Popular.mp3' /files/upload
> Bad escaped character ' '

If you're putting the filename in quotes, you don't need to escape
the space (hence the 'Bad escape' error).

~ % touch "this is a test"
~ % sftp $SERVER
Connecting to merk...
sftp> put this\ is\ a\ test
File "this\\" not found.
sftp> put "this is a test"
Uploading this is a test to /home/$USER/this is a test
this is a test                         100%    0     0.0KB/s   00:00
sftp>

-- 

o--------------------------{ Will Maier }--------------------------o
| jabber:..wcmaier@jabber.ccc.de | email:..........wcmaier@ml1.net |
| \.........wcmaier@cae.wisc.edu | \..........wcmaier@cae.wisc.edu |
*------------------[ BSD Unix: Live Free or Die ]------------------*




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