From: "Bart Schaefer" <schaefer@candle.brasslantern.com>
To: zsh-workers@sunsite.dk
Subject: PATCH: Assorted fixes to 01grammar.ztst
Date: Fri, 23 Mar 2001 18:16:47 +0000 [thread overview]
Message-ID: <1010323181647.ZM23628@candle.brasslantern.com> (raw)
Index: Test/01grammar.ztst
===================================================================
--- Test/01grammar.ztst 2000/06/17 17:27:17 1.4
+++ Test/01grammar.ztst 2001/03/23 18:13:10
@@ -41,9 +41,7 @@
0:Basic subshell list with error
>false
-# Can someone convince me the following is really supposed to fail
-# without the semicolon present?
- { cd /NonExistentDirectory >&/dev/null; } || print false
+ { cd /NonExistentDirectory >&/dev/null } || print false
0:Basic current shell list with error
>false
@@ -235,17 +233,13 @@
# Tests for `Alternate Forms For Complex Commands'
#
-## I simply can't get these to work.
-## I suspect that the lists which are allowed here are only syntactically
-## special tests.
-# if true; { print true-1; } elif true; { print true-2; } else { false; }
-# if false; { print true-1; } elif true; { print true-2; } else { false; }
-# if false; { print true-1; } elif false; { print true-2; } else { false; }
-#0:Alternate `if' with braces
-## Are all those semicolons necessary? If not, what are the rules?
-#>true-1
-#>true-2
-#>false
+ if (true) { print true-1 } elif (true) { print true-2 } else { print false }
+ if (false) { print true-1 } elif (true) { print true-2 } else { print false }
+ if (false) { print true-1 } elif (false) { print true-2 } else { print false }
+0:Alternate `if' with braces
+>true-1
+>true-2
+>false
if true; print true
0:Short form of `if'
@@ -295,15 +289,25 @@
>Hip hip hooray
>Hip hip hooray
-## Why doesn't this one work here? It works from the command line
-## or with zsh -fc.
-# case bravo {
-# (alpha) print schmalpha
-# ;;
-# (bravo) print schmavo
-# ;;
-# (charlie) print schmarlie
-# ;;
-# }
-#0:`case' with braces
-#>schmavo
+# Why doesn't this one work here? It works from the command line
+# or with zsh -fc.
+ case bravo {
+ (alpha) print schmalpha
+ ;;
+ (bravo) print schmavo
+ ;;
+ (charlie) print schmarlie
+ ;;
+ }
+0:`case' with braces
+>schmavo
+
+ print 'This test hangs the shell when it fails...' >&8
+ name=0
+# The number 4375 here is chosen to produce more than 16384 bytes of output
+ while (( name < 4375 )); do
+ print -n $name
+ (( name++ ))
+ done < /dev/null | { read name; print done }
+0:Bug regression: `while' loop with redirection and pipeline
+>done
--
Bart Schaefer Brass Lantern Enterprises
http://www.well.com/user/barts http://www.brasslantern.com
Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net
reply other threads:[~2001-03-23 18:17 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1010323181647.ZM23628@candle.brasslantern.com \
--to=schaefer@candle.brasslantern.com \
--cc=zsh-workers@sunsite.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).