When trying to find a package that owns a directory it is natural to use tab completion, however, a trailing slash will not match propertly. eg. qpkg -f /usr/share/pixmaps/ This simple patch will just strip off a trailing slash. --- /usr/bin/qpkg Thu Aug 8 01:21:17 2002 +++ ./qpkg Sun Aug 25 00:12:27 2002 @@ -113,7 +113,8 @@ usage=y break fi - arg=$a + # kill a trailing slash + arg=${a%/} ;; esac It may be tab dammaged via paste, but its pretty obvious. If there are any legitmate trailing slashes on some options arguments, it should be moved to the -f processing area. Also, Im not enough of an sh guy to figure out how to kill an arbitrary ammount of trailing slashes, which would be technically better. Paul
This is Brandon's domain.
right right...fixing