HomeSort by: relevance | last modified time | path
    Searched refs:dollar (Results 1 - 25 of 45) sorted by relevancy

1 2

  /src/usr.bin/make/unit-tests/
varname-dollar.exp 1 make: varname-dollar.mk:17: dollar is $.
2 make: varname-dollar.mk:19: dollar in braces is .
3 make: varname-dollar.mk:28: dollar is $.
4 make: varname-dollar.mk:30: dollar in braces is dollar.
varname-dollar.mk 1 # $NetBSD: varname-dollar.mk,v 1.4 2023/06/01 20:56:35 rillig Exp $
6 # If there really were a special variable named '$', the expressions ${${DOLLAR}}
9 # Using the dollar sign in variable names is tricky and not recommended.
12 DOLLAR= $$
16 # expect+1: dollar is $.
17 .info dollar is $$.
18 # expect+1: dollar in braces is .
19 .info dollar in braces is ${${DOLLAR}}.
23 ${DOLLAR}= dolla
    [all...]
dollar.mk 1 # $NetBSD: dollar.mk,v 1.4 2020/11/03 18:21:36 rillig Exp $
3 # Test the various places where a dollar sign can appear and
23 # The trailing dollar in the '1 dollar literal eol' test case accesses
31 $H 'Printing dollar from literals and variables'
33 $C 'To survive the parser, a dollar sign must be doubled.'
34 $T '1 dollar literal' '$'
35 $T '1 dollar literal eol' ''$
36 $T '2 dollar literal' '$$'
37 $T '4 dollar literal' '$$$$
    [all...]
dollar.exp 2 Printing dollar from literals and variables
4 To survive the parser, a dollar sign must be doubled.
5 1 dollar literal => <single-quote-var-value>
6 1 dollar literal eol => <>
7 2 dollar literal => <$>
8 4 dollar literal => <$$>
10 1 dollar default => <>
11 2 dollar default => <>
12 4 dollar default => <>
14 1 dollar variable => <
    [all...]
varmod-defined.exp 3 Var_Parse: ${8_DOLLARS} (eval-keep-dollar-and-undefined)
5 Var_Parse: ${VAR:D${8_DOLLARS}} (eval-keep-dollar-and-undefined)
6 Evaluating modifier ${VAR:D...} on value "$$$$$$$$" (eval-keep-dollar-and-undefined, regular)
7 Var_Parse: ${8_DOLLARS}} (eval-keep-dollar-and-undefined)
8 Result of ${VAR:D${8_DOLLARS}} is "$$$$$$$$" (eval-keep-dollar-and-undefined, regular)
10 Var_Parse: ${VAR:@var@${8_DOLLARS}@} (eval-keep-dollar-and-undefined)
11 Evaluating modifier ${VAR:@...} on value "$$$$$$$$" (eval-keep-dollar-and-undefined, regular)
19 Result of ${VAR:@var@${8_DOLLARS}@} is "$$$$" (eval-keep-dollar-and-undefined, regular)
varmod-sun-shell.exp 3 Var_Parse: ${echo word; ${:U(exit 13)}:L:sh} (eval-keep-dollar-and-undefined)
4 Evaluating modifier ${echo word; (exit 13):L} on value "" (eval-keep-dollar-and-undefined, undefined)
5 Result of ${echo word; (exit 13):L} is "echo word; (exit 13)" (eval-keep-dollar-and-undefined, defined)
6 Evaluating modifier ${echo word; (exit 13):s...} on value "echo word; (exit 13)" (eval-keep-dollar-and-undefined, defined)
9 Result of ${echo word; (exit 13):sh} is "word" (eval-keep-dollar-and-undefined, defined)
lint.exp 1 make: In the :@ modifier, the variable name "${:Ubar:S,b,v,}" must not contain a dollar
varmod-loop-varname.exp 1 make: varmod-loop-varname.mk:17: In the :@ modifier, the variable name "${:Ubar:S,b,v,}" must not contain a dollar
3 make: varmod-loop-varname.mk:87: In the :@ modifier, the variable name "v$" must not contain a dollar
5 make: varmod-loop-varname.mk:93: In the :@ modifier, the variable name "v$$" must not contain a dollar
7 make: varmod-loop-varname.mk:99: In the :@ modifier, the variable name "v$$$" must not contain a dollar
varmod-indirect.exp 16 Var_Parse: ${UNDEF} after (eval-keep-dollar-and-undefined)
19 Var_Parse: ${UNDEF:${:US,a,a,}} after (eval-keep-dollar-and-undefined)
21 Evaluating modifier ${UNDEF:S...} on value "" (eval-keep-dollar-and-undefined, undefined)
25 Result of ${UNDEF:S,a,a,} is "" (eval-keep-dollar-and-undefined, undefined)
28 Var_Parse: ${UNDEF:${:U}} after (eval-keep-dollar-and-undefined)
32 Var_Parse: ${UNDEF:${:UZ}} after (eval-keep-dollar-and-undefined)
34 Evaluating modifier ${UNDEF:Z} on value "" (eval-keep-dollar-and-undefined, undefined)
varmod-assign-shell.exp 3 Var_Parse: ${ASSIGNED::!=echo output; ${:U(exit 13)}} (eval-keep-dollar-and-undefined)
4 Evaluating modifier ${ASSIGNED::...} on value "previous" (eval-keep-dollar-and-undefined, regular)
8 Result of ${ASSIGNED::!=echo output; ${:U(exit 13)}} is "" (eval-keep-dollar-and-undefined, regular)
varmod-shell.exp 4 Var_Parse: ${:!echo word; ${:U(exit 13)}!} (eval-keep-dollar-and-undefined)
5 Evaluating modifier ${:!...} on value "" (eval-keep-dollar-and-undefined, undefined)
9 Result of ${:!echo word; ${:U(exit 13)}!} is "word" (eval-keep-dollar-and-undefined, defined)
varmod-quote-dollar.mk 1 # $NetBSD: varmod-quote-dollar.mk,v 1.4 2022/05/08 10:14:40 rillig Exp $
4 # and doubles dollar signs, to prevent them from being interpreted by a
varname-dot-suffixes.exp 7 Var_Parse: ${.SUFFIXES::=assign} (eval-keep-dollar-and-undefined)
8 Evaluating modifier ${.SUFFIXES::...} on value ".c .o .1 .err .tar.gz" (eval-keep-dollar-and-undefined, regular)
11 Result of ${.SUFFIXES::=assign} is "" (eval-keep-dollar-and-undefined, regular)
13 Var_Parse: ${preserve:L:_=.SUFFIXES} (eval-keep-dollar-and-undefined)
14 Evaluating modifier ${preserve:L} on value "" (eval-keep-dollar-and-undefined, undefined)
15 Result of ${preserve:L} is "preserve" (eval-keep-dollar-and-undefined, defined)
16 Evaluating modifier ${preserve:_...} on value "preserve" (eval-keep-dollar-and-undefined, defined)
18 Result of ${preserve:_=.SUFFIXES} is "preserve" (eval-keep-dollar-and-undefined, defined)
vardebug.exp 65 Var_Parse: ${DYN} (eval-keep-dollar-and-undefined)
66 Var_Parse: ${:U$@} $@ ${@} (eval-keep-dollar-and-undefined)
67 Evaluating modifier ${:U...} on value "" (eval-keep-dollar-and-undefined, undefined)
68 Var_Parse: $@} $@ ${@} (eval-keep-dollar-and-undefined)
69 Result of ${:U$@} is "$(.TARGET)" (eval-keep-dollar-and-undefined, defined)
70 Var_Parse: $@ ${@} (eval-keep-dollar-and-undefined)
71 Var_Parse: ${@} (eval-keep-dollar-and-undefined)
varmod-loop-varname.mk 16 # expect+1: In the :@ modifier, the variable name "${:Ubar:S,b,v,}" must not contain a dollar
82 # or two dollar signs, which were silently ignored.
83 # There's no point in allowing a dollar sign in that position.
86 # expect+1: In the :@ modifier, the variable name "v$" must not contain a dollar
92 # expect+1: In the :@ modifier, the variable name "v$$" must not contain a dollar
98 # expect+1: In the :@ modifier, the variable name "v$$$" must not contain a dollar
varmod-subst.mk 8 all: mod-subst-dollar
207 @echo ${:U1 2 3:S$2$two$:Q} dollar sign
258 # No matter how many dollar signs there are, they all get merged
259 # into a single dollar by the :S modifier.
264 # one of the "really stupid names", skips the first dollar, and parsing
265 # continues with the next character. This repeats for the other dollar
269 # simply copies the dollar to the result.
270 mod-subst-dollar:
280 # This generates no dollar at all:
282 # Here is an alternative way to generate dollar signs
    [all...]
varmod-loop.mk 25 all: mod-loop-dollar
36 # Demonstrate that it is possible to generate dollar signs using the
42 mod-loop-dollar:
96 # VARE_EVAL_KEEP_DOLLAR_AND_UNDEFINED, which means that some dollar signs are
97 # preserved, but not all. The dollar signs in the top-level expression and in
100 # The modifier :@var@ does not preserve the dollar signs though, no
207 all: varmod-loop-literal-dollar
208 varmod-loop-literal-dollar: .PHONY
229 # expect: : dollar=end
230 : ${:U1:@i@ dollar=\$ end@
    [all...]
var-op-shell.mk 80 # The 8 dollar signs end up as 4 dollar signs when expanded. The shell sees
81 # the command "echo '$$$$'". The 4 dollar signs are stored in OUTPUT, and
82 # when that variable is expanded, they expand to 2 dollar signs.
varmod.exp 1 make: varmod.mk:111: To escape a dollar, use \$, not $$, at "$$:L} != """
3 make: varmod.mk:117: Dollar followed by nothing
16 make: varmod.mk:165: Dollar followed by nothing
18 make: varmod.mk:171: Dollar followed by nothing
20 make: varmod.mk:171: Dollar followed by nothing
22 make: varmod.mk:181: Dollar followed by nothing
26 make: varmod.mk:202: Dollar followed by nothing
36 make: varmod.mk:222: Dollar followed by nothing
38 make: varmod.mk:226: Dollar followed by nothing
dep-var.mk 14 # Using a double dollar in order to circumvent immediate expression expansion
30 # "${INDIRECT_1}". At this point, the dollar is just an ordinary character,
46 # For exactly this reason, it is not recommended to use dollar signs in
cond-func-exists.mk 21 # neither the backslash nor the dollar sign act as escape character.
varname-dot-shell.exp 3 Var_Parse: ${.SHELL} (eval-keep-dollar-and-undefined)
varmod-subst.exp 14 1 two 3 dollar sign
52 mod-subst-dollar:$1:
53 mod-subst-dollar:$2:
54 mod-subst-dollar:$3:
55 mod-subst-dollar:$4:
56 mod-subst-dollar:$5:
57 mod-subst-dollar:$6:
58 mod-subst-dollar:$7:
59 mod-subst-dollar:$8:
60 mod-subst-dollar:$40
    [all...]
var-eval-short.exp 1 make: var-eval-short.mk:45: In the :@ modifier, the variable name "${FAIL}" must not contain a dollar
directive-for-escape.mk 40 # was adventurous enough to use literal dollar signs in the values of a .for
141 # A single trailing dollar doesn't happen in practice.
142 # The dollar sign is correctly passed through to the body of the .for loop.
144 # dollar sign is kept as-is.
196 .for $ in dollar

Completed in 18 milliseconds

1 2