t/t5*: avoid redundant uses of cat

Signed-off-by: Beat Bolli <dev+git@drbeat.li>
Acked-by: Taylor Blau <me@ttaylorr.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
maint
Beat Bolli 2024-03-15 20:46:07 +01:00 committed by Junio C Hamano
parent 237ce762ef
commit f636d25dc4
3 changed files with 3 additions and 3 deletions

View File

@ -70,7 +70,7 @@ test_expect_success 'respect NULs' '


git mailsplit -d3 -o. "$DATA/nul-plain" && git mailsplit -d3 -o. "$DATA/nul-plain" &&
test_cmp "$DATA/nul-plain" 001 && test_cmp "$DATA/nul-plain" 001 &&
(cat 001 | git mailinfo msg patch) && git mailinfo msg patch <001 &&
test_line_count = 4 patch test_line_count = 4 patch


' '

View File

@ -455,7 +455,7 @@ test_expect_success 'setup r1 - delete loose blobs' '
test_parse_ls_files_stage_oids <ls_files_result | test_parse_ls_files_stage_oids <ls_files_result |
sort >expected && sort >expected &&


for id in `cat expected | sed "s|..|&/|"` for id in `sed "s|..|&/|" expected`
do do
rm r1/.git/objects/$id || return 1 rm r1/.git/objects/$id || return 1
done done

View File

@ -303,7 +303,7 @@ test_expect_success GPGSM 'fail without key and heed user.signingkey x509' '
EOF EOF
sed -n -e "s/^nonce /NONCE=/p" -e "/^$/q" dst/push-cert sed -n -e "s/^nonce /NONCE=/p" -e "/^$/q" dst/push-cert
) >expect.in && ) >expect.in &&
key=$(cat "${GNUPGHOME}/trustlist.txt" | cut -d" " -f1 | tr -d ":") && key=$(cut -d" " -f1 <"${GNUPGHOME}/trustlist.txt" | tr -d ":") &&
sed -e "s/^KEY=/KEY=${key}/" expect.in >expect && sed -e "s/^KEY=/KEY=${key}/" expect.in >expect &&


noop=$(git rev-parse noop) && noop=$(git rev-parse noop) &&