Deleted all the files from /usr/lib/apache2/modules directory!

Cameron Hutchison lists at xdna.net
Sun Aug 8 23:06:58 UTC 2010


Cameron Hutchison <lists at xdna.net> writes:

>"Robert P. J. Day" <rpjday at crashcourse.ca> writes:

>>  on my current 10.04 system, i checked:

>>$ dpkg -S /usr/lib/apache2/modules/*
>>[...]

>This wont work if there are no files in /usr/lib/apache2/modules.

I realised one second after I hit send that I might be wrong. So I
tested it and confirmed I was wrong (mostly).

dpkg -S will expand wildcards, so if there are no files in
/usr/lib/apache2/modules, then /usr/lib/apache2/modules/* will be passed
literally to dpkg -S. That is, unless you have the "nullglob" shell
option set (bash), in which case the argument will be removed and dpkg
wont be happy.





More information about the ubuntu-users mailing list