summary refs log tree commit diff
path: root/bin/cash/tests/builtins/lineno.0
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2019-01-10 18:48:02 -0500
committerJune McEnroe <june@causal.agency>2019-01-10 18:48:02 -0500
commit308a14f85158f1545000499a64bc170d688a0db9 (patch)
treedfba0e2c80cbde1c38c814a4c84ce4d2c6d9c09f /bin/cash/tests/builtins/lineno.0
parentRemove character NETHACKOPTIONS (diff)
downloadsrc-308a14f85158f1545000499a64bc170d688a0db9.tar.gz
src-308a14f85158f1545000499a64bc170d688a0db9.zip
Import /usr/src/bin/sh from FreeBSD 12.0-RELEASE
Diffstat (limited to '')
-rw-r--r--bin/cash/tests/builtins/lineno.016
-rw-r--r--bin/cash/tests/builtins/lineno.0.stdout9
2 files changed, 25 insertions, 0 deletions
diff --git a/bin/cash/tests/builtins/lineno.0 b/bin/cash/tests/builtins/lineno.0
new file mode 100644
index 00000000..d70fdf12
--- /dev/null
+++ b/bin/cash/tests/builtins/lineno.0
@@ -0,0 +1,16 @@
+# $FreeBSD: releng/12.0/bin/sh/tests/builtins/lineno.0 179023 2008-05-15 19:58:44Z stefanf $
+echo $LINENO
+echo $LINENO
+
+f() {	
+	echo $LINENO
+	echo $LINENO
+}
+
+f
+
+echo ${LINENO:-foo}
+echo ${LINENO=foo}
+echo ${LINENO:+foo}
+echo ${LINENO+foo}
+echo ${#LINENO}
diff --git a/bin/cash/tests/builtins/lineno.0.stdout b/bin/cash/tests/builtins/lineno.0.stdout
new file mode 100644
index 00000000..82583a93
--- /dev/null
+++ b/bin/cash/tests/builtins/lineno.0.stdout
@@ -0,0 +1,9 @@
+2
+3
+2
+3
+12
+13
+foo
+foo
+2
it/bin/scheme.c?id=28af8cb55a04973f1be6d5de16177f77a3ab7518&follow=1'>Lighten dark whiteJune McEnroe 2019-07-25Add png.3 man pageJune McEnroe 2019-07-25Use scheme to style HTMLsJune McEnroe 2019-07-25Don't match comments in strings in makeJune McEnroe 2019-07-25Generate index.html with links from bin.7June McEnroe 2019-07-24Warn when date has changedJune McEnroe 2019-07-24Add whenJune McEnroe 2019-07-24Remove histedit from bitJune McEnroe