From 3d5ec0a535e521fe7d7e6139bd87412569a8d81a Mon Sep 17 00:00:00 2001 From: Johannes Sixt Date: Thu, 27 Oct 2005 19:58:13 +0000 Subject: [PATCH] Avoid head -1, it is depricated usage. --- configure.in.mid | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configure.in.mid b/configure.in.mid index 531732b..7fdc1da 100644 --- a/configure.in.mid +++ b/configure.in.mid @@ -92,8 +92,8 @@ if test -n "$PS_COMMAND"; then PS_COMMAND="$PS_COMMAND -eo pid,ppid,uid,vsz,etime,time,args" if $PS_COMMAND > /dev/null 2>&1; then - # works in principle; check output - set x `$PS_COMMAND | head -1` + # works in principle; check output: extract first line, but avoid 'head -1' + set x `$PS_COMMAND | (read firstline; echo "$firstline")` if test "$*" = "x PID PPID UID VSZ ELAPSED TIME COMMAND"; then : # fine else -- 2.11.4.GIT