remove use of "tail -n 1" and "tail -1"
commit200ccee49e0e7a109d14b96d3fecbed2b75f50fa
authorJeff King <peff@peff.net>
Wed, 12 Mar 2008 21:34:34 +0000 (12 17:34 -0400)
committerJeff King <peff@peff.net>
Thu, 13 Mar 2008 12:19:01 +0000 (13 08:19 -0400)
treed2f322cd0b2947e63cef6e2eb21ef796db53e07c
parent7cd72b65126fa031fed4d5cde9317d5504ebf9a7
remove use of "tail -n 1" and "tail -1"

The "-n" syntax is not supported by System V versions of
tail (which prefer "tail -1"). Unfortunately "tail -1" is
not actually POSIX.  We had some of both forms in our
scripts.

Since neither form works everywhere, this patch replaces
both with the equivalent sed invocation:

  sed -ne '$p'

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-am.sh
git-rebase--interactive.sh
t/t3404-rebase-interactive.sh
t/t5302-pack-index.sh
t/t6030-bisect-porcelain.sh
t/t7600-merge.sh
t/t9400-git-cvsserver-server.sh