1
0
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:
Stefan Farfeleder 2008-05-15 19:58:44 +00:00
parent b71085aacf
commit bf7c82844c
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=179023
2 changed files with 25 additions and 0 deletions

View 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}

View File

@ -0,0 +1,9 @@
2
3
2
3
12
13
foo
foo
2