php-select apache2 diesn't work properly when started in directory which contains files named with only one letter. It fails to upper-case the php version which is inserted into /etc/conf.d/apache2, resulting in apache configuration that doesn't include php5. Reproducible: Always Steps to Reproduce: 1. touch 'a' 2. php-select apache2 php5 Actual Results: APACHE2_OPTS in /etc/conf.d/apache2 was modified to contain -D php5 (lower case) Expected Results: APACHE2_OPTS should contain -D PHP5 (upper case) I believe the reason for this error is that /usr/share/php-select/libapache.sh uses tr [a-z] [A-Z] instead of tr '[a-z]' '[A-Z]' for upper-casing (and vice-versa for lower-casing). [a-z] is a shell glob that matches one letter file names, so it should be quoted.
The square brackets in the tr commands are in fact unnecessary: tr a-z A-Z would work as well.
*** This bug has been marked as a duplicate of bug 123383 ***
(In reply to comment #2) > > *** This bug has been marked as a duplicate of bug 123383 *** Bug 123383 is closed as WONTFIX because of: > With apache-1 gone, fixing this bug is rather pointless. Closing, the > fuctionality will be removed eventually. But, as you can see, it also affects apache2.
jakub, I don't see a reason why we should not fix this, especially since quite some people seem to be affected. Still any objections, if yes, which?
(In reply to comment #4) > jakub, I don't see a reason why we should not fix this, especially since quite > some people seem to be affected. Still any objections, if yes, which? I've attached a patch to Bug 209535 Comment #10 one month ago and received exactly zero response about whether it helps or not, and I absolutely can't reproduce this issue, quoting or not.
*** This bug has been marked as a duplicate of bug 209535 ***