> MY_FILES=$(notdir $(wildcard somedir/*.ext)) I agree that this algorithm can work. But it does not fit to my imaginations for efficient data processing.
If the desired directory on which a file filter should be applied could be selected before, the file names would not contain references to this directory and another function call is therefore unnecessary to remove it from the returned list elements. The difference can eventually better seen by an approach like the following. ~/Projekte> ls Bau/*txt Bau/MOTD.txt ~/Projekte> cd Bau && ls *txt MOTD.txt I would like to achieve the second list result without using the command “cd” before. Regards, Markus _______________________________________________ Bug-make mailing list Bug-make@gnu.org https://lists.gnu.org/mailman/listinfo/bug-make