projects
/
platform
/
upstream
/
coreutils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ea7c77d
)
tests: init.sh: use "sed 1q" in place of "head -1"
author
Jim Meyering
<meyering@redhat.com>
Mon, 20 Jun 2011 08:01:43 +0000
(10:01 +0200)
committer
Jim Meyering
<meyering@redhat.com>
Mon, 20 Jun 2011 08:01:43 +0000
(10:01 +0200)
* tests/init.sh (warn_): Use "sed 1q" in place of "head -1".
The latter is officially obsolete but more portable than "head -n1".
Reported by Bernhard Voelker.
tests/init.sh
patch
|
blob
|
history
diff --git
a/tests/init.sh
b/tests/init.sh
index
5878179
..
460937d
100644
(file)
--- a/
tests/init.sh
+++ b/
tests/init.sh
@@
-84,7
+84,7
@@
warn_ ()
case $IFS in
' '*) printf '%s\n' "$*" >&2
test $stderr_fileno_ = 2 \
- || { printf '%s\n' "$*" |
head -1
>&$stderr_fileno_ ; } ;;
+ || { printf '%s\n' "$*" |
sed 1q
>&$stderr_fileno_ ; } ;;
*) (IFS=' '; warn_ "$@");;
esac
}