From 10e85cbeb51d7fa3d8c8506ef0e2ba3f936fc716 Mon Sep 17 00:00:00 2001 From: Sebastian Carlos Date: Sat, 25 Nov 2023 16:07:42 +0100 Subject: [PATCH] Use argv[0] (the first file name) instead of 'c' as the prefix for the cashed binary --- c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/c b/c index 556df58..747f263 100755 --- a/c +++ b/c @@ -153,7 +153,7 @@ for f in "${comp[@]}"; do done # hash everything into one unique identifier, for caching purposes -id="c$("$hash_func" <<< "$prehash" | cut -d' ' -f1)" +id="${fname##*/}.hash_$("$hash_func" <<< "$prehash" | cut -d' ' -f1)" tmpdir="$tmproot/$id.src" binname="$tmproot/$id.bin"