From a2042321acee798c570935a3a1d1332402b2c17d Mon Sep 17 00:00:00 2001 From: tg Date: Fri, 28 Dec 2012 04:25:32 +0000 Subject: [PATCH] =?UTF-8?q?meh,=20just=20don=E2=80=99t=20ever=20use=20ls(1?= =?UTF-8?q?)=20in=20a=20test;=20on=20some,=20it=20shows=20dotdirs?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- check.t | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/check.t b/check.t index 1621702..709d463 100644 --- a/check.t +++ b/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: