Gentoo Archives: gentoo-user

From: hw <hw@×××××.de>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] lftp -u user,pass(word
Date: Wed, 06 Apr 2016 08:15:49
Message-Id: 5704C5A2.8070302@gc-24.de
In Reply to: Re: [gentoo-user] lftp -u user,pass(word by "J. Roeleveld"
1 J. Roeleveld schrieb:
2 > On April 5, 2016 8:06:08 PM GMT+02:00, hw <hw@×××××.de> wrote:
3 >> Neil Bothwick schrieb:
4 >>> On Tue, 5 Apr 2016 14:43:25 +0200, hw wrote:
5 >>>
6 >>>> how do you use lftp (to mirror a remote site)
7 >>>> when the password you have contains a bracket?
8 >>>>
9 >>>> I'm trying 'lftp -u user,pass(word ftp.example.com', and
10 >>>> there appears to be no way to escape characters in the
11 >>>> password. Using single quotes also doesn't work, same
12 >>>> as 'lftp 'ftp://user:pass(word@×××××××.com'.
13 >>>
14 >>> Try lftp 'ftp://user:pass\(word@×××××××.com'
15 >>> or lftp ftp://user:pass\\\(word@×××××××.com
16 >>>
17 >>> The \ escapes the ( and the single quotes protect it fro the shell.
18 >> In
19 >>> the second way, you escape the \ as well.
20 >>
21 >> That's what I thought :) I already tried and it didn't
22 >> work.
23 >
24 > Have you tried:
25 > lftp -u "user,pass(word" ftp.example.com
26 > ?
27 >
28 > Maybe that works.
29
30 I tried that, too, no dice ...