Deleted Added
full compact
legacy_test.sh (145620) legacy_test.sh (146822)
1#!/bin/sh
2
1#!/bin/sh
2
3# $FreeBSD: head/tools/regression/usr.bin/make/variables/t0/test.t 145620 2005-04-28 13:20:48Z harti $
3# $FreeBSD: head/tools/regression/usr.bin/make/variables/t0/test.t 146822 2005-05-31 14:13:07Z harti $
4
5cd `dirname $0`
6. ../../common.sh
7
4
5cd `dirname $0`
6. ../../common.sh
7
8setup_test()
9{
10 cat > ${WORK_DIR}/Makefile << "_EOF_"
11A = 0
12AV = 1
13all:
14 echo $A
15 echo ${AV}
16 echo ${A}
17 # The following are soo broken why no syntax error?
18 echo $(
19 echo $)
20 echo ${
21 echo ${A
22 echo ${A)
23 echo ${A){
24 echo ${AV
25 echo ${AV)
26 echo ${AV){
27 echo ${AV{
28 echo ${A{
29 echo $}
30_EOF_
31}
8# Description
9DESC="Variable expansion."
32
10
33desc_test()
34{
35 echo "Variable expansion."
36}
37
38eval_cmd $1
11eval_cmd $*