on GNU/Cygwin32 at least, “env” does not display its output sorted;
make sort(1) presence a conditional though
This commit is contained in:
parent
d8c3d6e9c1
commit
820df9fcfb
7
check.t
7
check.t
@ -1,4 +1,4 @@
|
||||
# $MirOS: src/bin/mksh/check.t,v 1.261 2009/03/17 13:56:46 tg Exp $
|
||||
# $MirOS: src/bin/mksh/check.t,v 1.262 2009/03/21 11:09:35 tg Exp $
|
||||
# $OpenBSD: bksl-nl.t,v 1.2 2001/01/28 23:04:56 niklas Exp $
|
||||
# $OpenBSD: history.t,v 1.5 2001/01/28 23:04:56 niklas Exp $
|
||||
# $OpenBSD: read.t,v 1.3 2003/03/10 03:48:16 david Exp $
|
||||
@ -4023,8 +4023,9 @@ description:
|
||||
Check to make sure exec doesn't change environment if a program
|
||||
isn't exec-ed
|
||||
stdin:
|
||||
env > bar1
|
||||
FOO=bar exec; env > bar2
|
||||
sortprog=$(whence -p sort) || sortprog=cat
|
||||
env | $sortprog >bar1
|
||||
FOO=bar exec; env | $sortprog >bar2
|
||||
cmp -s bar1 bar2
|
||||
---
|
||||
name: xxx-what-do-you-call-this-1
|
||||
|
Loading…
x
Reference in New Issue
Block a user