head(1) is not portable (-n 1 not præ-POSIX/ancient, -1 not busybox)
⇒ use sed(1) bug spotted by wbx@
This commit is contained in:
parent
af94276ea7
commit
8e7abc48eb
4
check.t
4
check.t
@ -1,4 +1,4 @@
|
|||||||
# $MirOS: src/bin/mksh/check.t,v 1.722 2016/01/21 18:24:35 tg Exp $
|
# $MirOS: src/bin/mksh/check.t,v 1.723 2016/02/11 20:19:44 tg Exp $
|
||||||
# -*- mode: sh -*-
|
# -*- mode: sh -*-
|
||||||
#-
|
#-
|
||||||
# Copyright © 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
|
# Copyright © 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
|
||||||
@ -12183,7 +12183,7 @@ stdin:
|
|||||||
Copyright (C) 2002 Free Software Foundation, Inc.'
|
Copyright (C) 2002 Free Software Foundation, Inc.'
|
||||||
EOF
|
EOF
|
||||||
chmod +x bash
|
chmod +x bash
|
||||||
"$__progname" -xc 'foo=$(./bash --version 2>&1 | head -1); echo "=$foo="'
|
"$__progname" -xc 'foo=$(./bash --version 2>&1 | sed 1q); echo "=$foo="'
|
||||||
expected-stdout:
|
expected-stdout:
|
||||||
=GNU bash, version 2.05b.0(1)-release (i386-ecce-mirbsd10)=
|
=GNU bash, version 2.05b.0(1)-release (i386-ecce-mirbsd10)=
|
||||||
expected-stderr-pattern:
|
expected-stderr-pattern:
|
||||||
|
Loading…
Reference in New Issue
Block a user