Makefile'de "$$ {x %% *}" ifadesini gördüm, bu da "$ {x %% *}" anlamına geliyor. Neden bu şekilde yazılmıştır?
determine_sum = \
sum=; \
for x in sha1sum sha1 shasum 'openssl dgst -sha1'; do \
if type "$${x%% *}" >/dev/null 2>/dev/null; then sum=$$x; break; fi; \
done; \
if [ -z "$$sum" ]; then echo 1>&2 "Unable to find a SHA1 utility"; exit 2; fi
checksums.dat: FORCE
$(determine_sum); \
$$sum *.org
Ayrıca nasıl Google ${x%% *}
arama ?
Google "bash man page" – Barmar
Google "nasıl google bash ifadesi" :) "Tüm CS sorunları, başka bir dolaylılık seviyesiyle çözülebilir" –