meh, just don’t ever use ls(1) in a test; on some, it shows dotdirs
This commit is contained in:
parent
39682506ff
commit
a2042321ac
17
check.t
17
check.t
@ -1,4 +1,4 @@
|
||||
# $MirOS: src/bin/mksh/check.t,v 1.579 2012/12/28 04:01:17 tg Exp $
|
||||
# $MirOS: src/bin/mksh/check.t,v 1.580 2012/12/28 04:25:32 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 $
|
||||
@ -217,15 +217,14 @@ description:
|
||||
the time-limit clause (e.g. to 7) if this occurs.
|
||||
time-limit: 3
|
||||
stdin:
|
||||
echo -n >tf
|
||||
alias ls=ls
|
||||
ls
|
||||
print '#!'"$__progname"'\necho tf' >lq
|
||||
chmod +x lq
|
||||
PATH=$PWD:$PATH
|
||||
alias lq=lq
|
||||
lq
|
||||
echo = now
|
||||
i=`ls`
|
||||
print -r -- $(for x in "$i"; do
|
||||
[[ $x = @(.|..) ]] && continue
|
||||
print -r -- "$x"
|
||||
done)
|
||||
i=`lq`
|
||||
print -r -- $i
|
||||
echo = out
|
||||
exit 0
|
||||
expected-stdout:
|
||||
|
Loading…
Reference in New Issue
Block a user