From owner-freebsd-questions@FreeBSD.ORG Thu Oct 20 07:34:52 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F312116A41F for ; Thu, 20 Oct 2005 07:34:51 +0000 (GMT) (envelope-from ross_@telus.net) Received: from priv-edtnes27.telusplanet.net (outbound04.telus.net [199.185.220.223]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8328C43D5A for ; Thu, 20 Oct 2005 07:34:51 +0000 (GMT) (envelope-from ross_@telus.net) Received: from ross.inet ([205.250.255.161]) by priv-edtnes27.telusplanet.net (InterMail vM.6.01.04.04 201-2131-118-104-20050224) with ESMTP id <20051020073450.DJOW11666.priv-edtnes27.telusplanet.net@ross.inet>; Thu, 20 Oct 2005 01:34:50 -0600 To: Daniel References: Message-ID: Date: Thu, 20 Oct 2005 00:34:48 -0700 From: ross Content-Type: text/plain; format=flowed; delsp=yes; charset=us-ascii MIME-Version: 1.0 Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Opera M2/8.50 (FreeBSD, build 1358) Cc: "freebsd-questions@freebsd.org" Subject: Re: sftp and escape characters X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 Oct 2005 07:34:52 -0000 I tried that already and got the error Bad escaped character ' ' On Thu, 20 Oct 2005 00:21:39 -0700, Daniel wrote: > On 10/20/05, ross 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/