From: Bart Van Assche Date: Sun, 15 May 2011 17:07:47 +0000 (+0000) Subject: gdbserver_tests/make_local_links: made invocation of "head" POSIX-compliant since... X-Git-Tag: svn/VALGRIND_3_7_0~478 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1a2eb84398709c899f21716990a22bbeb761c913;p=thirdparty%2Fvalgrind.git gdbserver_tests/make_local_links: made invocation of "head" POSIX-compliant since on some distros only the POSIX-compliant invocation is accepted. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11759 --- diff --git a/gdbserver_tests/make_local_links b/gdbserver_tests/make_local_links index 7ed9a73fde..c1355cad3d 100755 --- a/gdbserver_tests/make_local_links +++ b/gdbserver_tests/make_local_links @@ -14,7 +14,7 @@ if [ -x "$1" ] then ln -f -s "$1" gdbserver_tests/gdb # Try to extract the gdb version. - VERSIONLINE=`gdbserver_tests/gdb --version | head -1` + VERSIONLINE=`gdbserver_tests/gdb --version | head -n 1` VERSION=`echo $VERSIONLINE | sed -e 's/[^0-9\.]//g' -e 's/\./ /g'`