From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 42A7E59CAF for ; Tue, 5 Apr 2016 18:06:22 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 877FE21C03B; Tue, 5 Apr 2016 18:06:12 +0000 (UTC) Received: from sunflo-mx.v.h.gc-24.de (gc-24.de [46.227.95.21]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 7115521C01E for ; Tue, 5 Apr 2016 18:06:10 +0000 (UTC) Received: from hw.v.h.gc-24.de ([192.168.220.17]) by sunflo-mx.v.h.gc-24.de with esmtp (Exim 4.84) (envelope-from ) id 1anVMe-0007wH-9l for gentoo-user@lists.gentoo.org; Tue, 05 Apr 2016 20:06:08 +0200 Subject: Re: [gentoo-user] lftp -u user,pass(word To: gentoo-user@lists.gentoo.org References: <5703B2ED.5070009@gc-24.de> <20160405135236.41ee6626@digimed.co.uk> From: hw Message-ID: <5703FE90.5010404@gc-24.de> Date: Tue, 5 Apr 2016 20:06:08 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:43.0) Gecko/20100101 Firefox/43.0 SeaMonkey/2.40 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 In-Reply-To: <20160405135236.41ee6626@digimed.co.uk> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Archives-Salt: 8a6dcff3-114f-4708-95bf-1e096eb74bd8 X-Archives-Hash: 373bee74fc0cea0c8601346c48d59c47 Neil Bothwick schrieb: > On Tue, 5 Apr 2016 14:43:25 +0200, hw wrote: > >> how do you use lftp (to mirror a remote site) >> when the password you have contains a bracket? >> >> I'm trying 'lftp -u user,pass(word ftp.example.com', and >> there appears to be no way to escape characters in the >> password. Using single quotes also doesn't work, same >> as 'lftp 'ftp://user:pass(word@example.com'. > > Try lftp 'ftp://user:pass\(word@example.com' > or lftp ftp://user:pass\\\(word@example.com > > The \ escapes the ( and the single quotes protect it fro the shell. In > the second way, you escape the \ as well. That's what I thought :) I already tried and it didn't work.