# HG changeset patch # User Rob Landley # Date 1259268809 21600 # Node ID 2ed667428dbd97cbdc4f0a2d7cef8c46bac94646 # Parent 5ffc758bf60aa9dafc9afdb8b7283eed5bf68c89 Fix path_search to actually use the pattern argument. diff -r 5ffc758bf60a -r 2ed667428dbd sources/functions.sh --- a/sources/functions.sh Thu Nov 26 02:37:36 2009 -0600 +++ b/sources/functions.sh Thu Nov 26 14:53:29 2009 -0600 @@ -693,14 +693,14 @@ path_search() { - # For each each $PATH element, loop through each file in that directory, # and create a symlink to the wrapper with that name. In the case of # duplicates, keep the first one. echo "$1" | sed 's/:/\n/g' | while read DIR do - find "$DIR" -maxdepth 1 -mindepth 1 | sed 's@.*/@@' | while read FILE + find "$DIR" -maxdepth 1 -mindepth 1 -name "$2" | sed 's@.*/@@' | \ + while read FILE do eval "$3"