On line 312 in etc-update from portage-2.0.47-r8, there is missing double quotes surrounding the ${pager} variable. So setting pager= to something with arguments in /etc/etc-update.conf, and running etc-update gets you the warning: "/usr/sbin/etc-update: line 312: [: too many arguments" Reproducible: Always Steps to Reproduce: 1. in /etc/etc-update.conf, set pager="less -q -E" 2. run etc-update
Created attachment 9400 [details, diff] puts double quotes around ${pager} check in etc-update
Hi, I don't have any experience with adding new bugs, so I put it here (it's only minor and in the same file) :-) On line 368 of /usr/sbin/etc-update there is: pager=""P That should be: pager="" Now it gives problems in dialog-mode when diff'ing an interactively merged configfile with the update. Greets, wouter
Hi, If you remove the "P" you get a broken pipe-error. I guess the pager was set to "" so it would not interfere with dialog. What you get now is something like (line 305): echo blablabla | which of course causes a broken pipe. greetz, wouter
Fxied for >=48_pre7