Re: Need mentorship and support
De: "Himanshu Shekhar" <irm2015006@iiita.ac.in>
> The problem is about reading metacharacters. For example, username is
> "harry", password is "harry@123" , proxy server "10.101.12.1:8080".
> Thus, apt.conf would have text
> "http://harry:harry@123@10.101.12.1:8080".
>
> This leads to unwanted behaviour. Apt stops reading the password after
> the first @, but it should after the last one.
> How to resolve this?
I find your choice of words confusing. Firstly "@" is not a
"metacharacter", not for the shell anyway. Secondly, if an at
sign ends up in apt.conf, it means that your script successfully
"read" it, right ? So it's not a shell problem, it's an Apt
problem.
Things you could try :
- Editing apt.conf and manually replacing the first "@" by
"%40". Or maybe even "\@", "\\@", "\100", "\0100", "\x40",
that sort of thing.
- Seeing what RFC 3986 and Apt's documentation have to say on
the matter.
Reply to: