Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 20 Feb 2011 17:28:58 +0000 (UTC)
From:      Jilles Tjoelker <jilles@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r218891 - head/tools/regression/bin/sh/parser
Message-ID:  <201102201728.p1KHSwRa039355@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jilles
Date: Sun Feb 20 17:28:58 2011
New Revision: 218891
URL: http://svn.freebsd.org/changeset/base/218891

Log:
  sh: Add some tests for omitting whitespace whereever possible.

Added:
  head/tools/regression/bin/sh/parser/no-space1.0   (contents, props changed)
  head/tools/regression/bin/sh/parser/no-space2.0   (contents, props changed)

Added: head/tools/regression/bin/sh/parser/no-space1.0
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/tools/regression/bin/sh/parser/no-space1.0	Sun Feb 20 17:28:58 2011	(r218891)
@@ -0,0 +1,18 @@
+# $FreeBSD$
+
+# These are ugly but are required to work.
+
+set -e
+
+while(false)do(:)done
+if(false)then(:)fi
+if(false)then(:)else(:)fi
+(:&&:)||:
+until(:)do(:)done
+case x in(x);;*)exit 1;(:)esac
+case x in(x);;*)exit 1;;esac
+for i do(:)done
+{(:)}
+f(){(:)}
+:|:
+(:)|(:)

Added: head/tools/regression/bin/sh/parser/no-space2.0
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/tools/regression/bin/sh/parser/no-space2.0	Sun Feb 20 17:28:58 2011	(r218891)
@@ -0,0 +1,7 @@
+# $FreeBSD$
+
+# This conflicts with ksh extended patterns but occurs in the wild.
+
+set -e
+
+!(false)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201102201728.p1KHSwRa039355>