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 6F88D59CAF for ; Tue, 5 Apr 2016 12:53:00 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 05DF021C044; Tue, 5 Apr 2016 12:52:52 +0000 (UTC) Received: from smarthost03d.mail.zen.net.uk (smarthost03d.mail.zen.net.uk [212.23.1.23]) by pigeon.gentoo.org (Postfix) with ESMTP id ECDA821C02B for ; Tue, 5 Apr 2016 12:52:49 +0000 (UTC) Received: from [81.108.251.46] (helo=mail.digimed.co.uk) by smarthost03d.mail.zen.net.uk with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1anQTQ-0002os-UX for gentoo-user@lists.gentoo.org; Tue, 05 Apr 2016 12:52:48 +0000 Received: from digimed.co.uk (fenchurch.digimed.co.uk [192.168.1.6]) by mail.digimed.co.uk (Postfix) with ESMTPA id C240E3E531C for ; Tue, 5 Apr 2016 13:52:47 +0100 (BST) Date: Tue, 5 Apr 2016 13:52:36 +0100 From: Neil Bothwick To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] lftp -u user,pass(word Message-ID: <20160405135236.41ee6626@digimed.co.uk> In-Reply-To: <5703B2ED.5070009@gc-24.de> References: <5703B2ED.5070009@gc-24.de> Organization: Digital Media Production X-Mailer: Claws Mail 3.13.2-105-g3e2337 (GTK+ 2.24.30; x86_64-pc-linux-gnu) X-GPG-Fingerprint: 7260 0F33 97EC 2F1E 7667 FE37 BA6E 1A97 4375 1903 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 Content-Type: multipart/signed; micalg=pgp-sha1; boundary="Sig_/YywZ/BhUIn8dATdOZrM9XPI"; protocol="application/pgp-signature" X-Originating-smarthost03d-IP: [81.108.251.46] X-Archives-Salt: 8b1c74fe-d602-4e43-aa12-55ced43018da X-Archives-Hash: d0cbe0bd620a7d29ca9aedf1b0c4cd51 --Sig_/YywZ/BhUIn8dATdOZrM9XPI Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable 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? >=20 > 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. --=20 Neil Bothwick In plumbing, a straight flush is better than a full house. --Sig_/YywZ/BhUIn8dATdOZrM9XPI Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iEYEARECAAYFAlcDtRQACgkQum4al0N1GQMgNQCgtx/UsBD1mZ0hRZWUfbmQ9/57 HOoAoIftD0jddSIRrw5FyYhUc2NHJSzV =jnC+ -----END PGP SIGNATURE----- --Sig_/YywZ/BhUIn8dATdOZrM9XPI--