Add a test for the :tl & :tu modifiers.

This commit is contained in:
David E. O'Brien 2012-06-12 23:16:00 +00:00
parent 364e72457f
commit cca63ae56b
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=236977
11 changed files with 35 additions and 0 deletions

View File

@ -0,0 +1,15 @@
# $FreeBSD$
#
# Test the t modifier.
#
# below is missing '
ASCII= !"\#$$%&()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~
test1:
@echo '${ASCII}'
test2:
@echo '${ASCII:tl}'
test3:
@echo '${ASCII:tu}'

View File

@ -0,0 +1 @@
!"#$%&()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~

View File

@ -0,0 +1 @@
!"#$%&()*+,-./0123456789:;<=>?@abcdefghijklmnopqrstuvwxyz[\]^_`abcdefghijklmnopqrstuvwxyz{|}~

View File

@ -0,0 +1 @@
!"#$%&()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`ABCDEFGHIJKLMNOPQRSTUVWXYZ{|}~

View File

@ -0,0 +1,14 @@
#!/bin/sh
# $FreeBSD$
cd `dirname $0`
. ../../common.sh
# Description
DESC="Variable expansion with t modifiers"
# Run
TEST_N=3
eval_cmd $*