Skip to content

Commit f636d25

Browse files
Beat Bolligitster
authored andcommitted
t/t5*: avoid redundant uses of cat
Signed-off-by: Beat Bolli <[email protected]> Acked-by: Taylor Blau <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 237ce76 commit f636d25

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

t/t5100-mailinfo.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ test_expect_success 'respect NULs' '
7070
7171
git mailsplit -d3 -o. "$DATA/nul-plain" &&
7272
test_cmp "$DATA/nul-plain" 001 &&
73-
(cat 001 | git mailinfo msg patch) &&
73+
git mailinfo msg patch <001 &&
7474
test_line_count = 4 patch
7575
7676
'

t/t5317-pack-objects-filter-objects.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -455,7 +455,7 @@ test_expect_success 'setup r1 - delete loose blobs' '
455455
test_parse_ls_files_stage_oids <ls_files_result |
456456
sort >expected &&
457457
458-
for id in `cat expected | sed "s|..|&/|"`
458+
for id in `sed "s|..|&/|" expected`
459459
do
460460
rm r1/.git/objects/$id || return 1
461461
done

t/t5534-push-signed.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ test_expect_success GPGSM 'fail without key and heed user.signingkey x509' '
303303
EOF
304304
sed -n -e "s/^nonce /NONCE=/p" -e "/^$/q" dst/push-cert
305305
) >expect.in &&
306-
key=$(cat "${GNUPGHOME}/trustlist.txt" | cut -d" " -f1 | tr -d ":") &&
306+
key=$(cut -d" " -f1 <"${GNUPGHOME}/trustlist.txt" | tr -d ":") &&
307307
sed -e "s/^KEY=/KEY=${key}/" expect.in >expect &&
308308
309309
noop=$(git rev-parse noop) &&

0 commit comments

Comments
 (0)