Jeff King <peff@xxxxxxxx> writes: >> -cat >expect_cookies.txt <<EOF >> +cat <<EOF | sort >expect_cookies.txt > > This can be spelled: > > sort >expect_cookies.txt <<EOF > > can't it? Then we do not even incur the extra process. :) Yeah, true. Running cat only to feed a pipe with contents of a single file or the here-doc is an anti-pattern.