From owner-freebsd-questions@FreeBSD.ORG Thu Oct 20 07:21:40 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 DABA716A420 for ; Thu, 20 Oct 2005 07:21:40 +0000 (GMT) (envelope-from jahilliya@gmail.com) Received: from qproxy.gmail.com (qproxy.gmail.com [72.14.204.200]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6BA4943D5A for ; Thu, 20 Oct 2005 07:21:40 +0000 (GMT) (envelope-from jahilliya@gmail.com) Received: by qproxy.gmail.com with SMTP id o12so275541qba for ; Thu, 20 Oct 2005 00:21:39 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=EKka6VNa4O4viv6co1AT9a03O6rUSPMjcgW46QjEjdJUK8Fq7rk7cEQG1aDy6RW8OgW7UYb+h/fWQGWMnQgzJqANRPxhXtV28552z1wnSXvbSwCec+wf5mFMCXyuOcLkR6zJvz2AbZIr3nsrgjH7SvAhymMGHdVboXJT+P5PsxU= Received: by 10.65.38.14 with SMTP id q14mr1209217qbj; Thu, 20 Oct 2005 00:21:39 -0700 (PDT) Received: by 10.64.181.3 with HTTP; Thu, 20 Oct 2005 00:21:39 -0700 (PDT) Message-ID: Date: Thu, 20 Oct 2005 15:21:39 +0800 From: Daniel To: ross In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: 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:21:41 -0000 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 craz= y > 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"