mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-23 11:18:54 +00:00
Test the expansion of $LINENO.
This commit is contained in:
parent
b71085aacf
commit
bf7c82844c
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=179023
16
tools/regression/bin/sh/builtins/lineno.0
Normal file
16
tools/regression/bin/sh/builtins/lineno.0
Normal file
@ -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}
|
9
tools/regression/bin/sh/builtins/lineno.0.stdout
Normal file
9
tools/regression/bin/sh/builtins/lineno.0.stdout
Normal file
@ -0,0 +1,9 @@
|
||||
2
|
||||
3
|
||||
2
|
||||
3
|
||||
12
|
||||
13
|
||||
foo
|
||||
foo
|
||||
2
|
Loading…
Reference in New Issue
Block a user