1 2 3 4 5 6 7 8 9 10 11 12
#!/bin/sh -x set -e touch foo chmod +x foo mkdir .snap/s find .snap/s/foo -executable | grep foo rmdir .snap/s rm foo echo OK