run the following command: mirrorselect -a -D Watch your screen fill with garbage! now run it again without the -D, notice it works and updates your make.conf correctly? Reproducible: Always Steps to Reproduce: 1. given above 2. 3. Actual Results: raw binary data dumped to screen with no formatting or control escaping. Expected Results: redirect the downloaded data to /dev/null or to a file on the file system.
I want to second this. I expect some people will attempt to use -D and also >> to their make.conf file and end up filling the file with garbage. ^N and ^O are control codes which cause character set changing on the display, making it impossible to read the text. When I used -D, those codes appeared in the garbage displayed, resulting in unreadable hostnames when it finished. Also consider what can happen with the escape character, depending on what follows it.
this works fine for me. what version of mirrorselect?
I show version 0.84. Observe (piped through LESS to observe first few lines before garbage appears): mars root # mirrorselect -a -D 2>&1 | less Downloading a list of mirrors... Removing IPV6 Only Servers... Downloading 100k segments from 150 server(s) Testing: http://gentoo.osuosl.org/^M[0%]^M# $<E4><FE><A4>^Yl<C9>$<A7>1] mars root # mirrorselect -v Mirrorselect version: 0.84
this was fixed in 0.86. this has now been pushed into stable
just tested new version. Does seem to work. mirrorselect -a -D -s5 does not show any garbage.
closing bug. thanks for verifying.