tags 885414 - help thanks Vincent Lefevre wrote:
'^[a-zA-Z0-9_][a-zA-Z0-9._-]*\.sh$'
Hi. I confirm that this is appropriate for what we distribute: wget -q -O - http://deb.debian.org/debian/dists/unstable/main/Contents-amd64.gz | gzip -d | awk '/etc\/profile.d/ { print $1 }' yields: etc/profile.d/PackageKit.sh etc/profile.d/apps-bin-path.sh etc/profile.d/flatpak.sh etc/profile.d/gawk.csh etc/profile.d/gawk.sh etc/profile.d/guix.sh etc/profile.d/lammps.csh etc/profile.d/lammps.sh etc/profile.d/lmod.sh etc/profile.d/maliit-framework.sh etc/profile.d/modules.sh etc/profile.d/safe-rm.sh etc/profile.d/sendfile etc/profile.d/sumo.csh etc/profile.d/sumo.sh etc/profile.d/sxmo_init.sh etc/profile.d/toolbox.sh etc/profile.d/vte-2.91.sh etc/profile.d/vte.csh The regexp covers that but not the *.csh ones (now as expected) and not sendfile, but that's a bug in sendfile. Thanks.