Gentoo Archives: gentoo-user

From: Neil Bothwick <neil@××××××××××.uk>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] lftp -u user,pass(word
Date: Tue, 05 Apr 2016 12:53:00
Message-Id: 20160405135236.41ee6626@digimed.co.uk
In Reply to: [gentoo-user] lftp -u user,pass(word by hw
1 On Tue, 5 Apr 2016 14:43:25 +0200, hw wrote:
2
3 > how do you use lftp (to mirror a remote site)
4 > when the password you have contains a bracket?
5 >
6 > I'm trying 'lftp -u user,pass(word ftp.example.com', and
7 > there appears to be no way to escape characters in the
8 > password. Using single quotes also doesn't work, same
9 > as 'lftp 'ftp://user:pass(word@×××××××.com'.
10
11 Try lftp 'ftp://user:pass\(word@×××××××.com'
12 or lftp ftp://user:pass\\\(word@×××××××.com
13
14 The \ escapes the ( and the single quotes protect it fro the shell. In
15 the second way, you escape the \ as well.
16
17
18 --
19 Neil Bothwick
20
21 In plumbing, a straight flush is better than a full house.

Replies

Subject Author
Re: [gentoo-user] lftp -u user,pass(word hw <hw@×××××.de>