summaryrefslogtreecommitdiff
path: root/checks/006.command_li
diff options
context:
space:
mode:
authorSam Thursfield <sam.thursfield@codethink.co.uk>2012-12-21 14:22:22 +0000
committerSam Thursfield <Sam Thursfield>2013-01-03 11:32:53 +0000
commitc2693d6d08db26825688ddca5de6eb8a4b7cde4a (patch)
tree10611dcf065b1893421b83a9de53cf6feb83a048 /checks/006.command_li
parent861325a84f231a2a2da307b53ef5ff527d67e876 (diff)
downloadm4-c2693d6d08db26825688ddca5de6eb8a4b7cde4a.tar.gz
Commit files from tarball
Diffstat (limited to 'checks/006.command_li')
-rw-r--r--checks/006.command_li20
1 files changed, 20 insertions, 0 deletions
diff --git a/checks/006.command_li b/checks/006.command_li
new file mode 100644
index 00000000..84966c2c
--- /dev/null
+++ b/checks/006.command_li
@@ -0,0 +1,20 @@
+dnl @ ../doc/m4.texinfo:980: Origin of test
+dnl @ expected status: 0
+dnl @ extra options:
+dnl @ Copyright (C) 2006, 2007, 2008, 2009 Free Software
+dnl @ Foundation, Inc.
+dnl @ This file is free software; the Free Software Foundation
+dnl @ gives unlimited permission to copy and/or distribute it
+dnl @ with or without modifications, as long as this notice
+dnl @ is preserved.
+ifdef(`__unix__', ,
+ `errprint(` skipping: syscmd does not have unix semantics
+')m4exit(`77')')dnl
+changequote(`[', `]')dnl
+syscmd([echo 'esyscmd(echo hi >&2 && echo err"print(bye
+)d"nl)dnl' > tmp.m4 \
+ && ']__program__[' tmp.m4 <&- >&- \
+ && rm tmp.m4])sysval
+dnl @error{}hi
+dnl @error{}bye
+dnl @result{}0