diff options
| author | Stefan Farfeleder <stefanf@FreeBSD.org> | 2008-05-15 19:58:44 +0000 |
|---|---|---|
| committer | Stefan Farfeleder <stefanf@FreeBSD.org> | 2008-05-15 19:58:44 +0000 |
| commit | bf7c82844cf12bbea6a73e321d267e3c4f10447b (patch) | |
| tree | ba7d888e1c9854ff9cefb8723001cfef14d993fd /tools | |
| parent | b71085aacf405e824dfbbb10dddb092b3bd9d332 (diff) | |
Notes
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/regression/bin/sh/builtins/lineno.0 | 16 | ||||
| -rw-r--r-- | tools/regression/bin/sh/builtins/lineno.0.stdout | 9 |
2 files changed, 25 insertions, 0 deletions
diff --git a/tools/regression/bin/sh/builtins/lineno.0 b/tools/regression/bin/sh/builtins/lineno.0 new file mode 100644 index 000000000000..c9311f82d253 --- /dev/null +++ b/tools/regression/bin/sh/builtins/lineno.0 @@ -0,0 +1,16 @@ +# $FreeBSD$ +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/tools/regression/bin/sh/builtins/lineno.0.stdout b/tools/regression/bin/sh/builtins/lineno.0.stdout new file mode 100644 index 000000000000..82583a93c82e --- /dev/null +++ b/tools/regression/bin/sh/builtins/lineno.0.stdout @@ -0,0 +1,9 @@ +2 +3 +2 +3 +12 +13 +foo +foo +2 |
