Skip to content

Commit ca0a29d

Browse files
authored
{: add placeholders (#17661)
1 parent 4cd2019 commit ca0a29d

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

pages/common/{.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,31 +5,31 @@
55
66
- Isolate variable names:
77

8-
`echo ${HOME}work`
8+
`echo ${{{HOME}work}}`
99

1010
- Brace expand sequences:
1111

12-
`echo {1..3} {a..c}{dir1,dir2,dir3}`
12+
`echo {{{1..3}}} {{{a..c}}}{{{dir1,dir2,dir3}}}`
1313

1414
- Check if `variable` is set before returning text:
1515

16-
`echo ${variable:+variable is set and contains $variable}`
16+
`echo ${{{variable:+variable is set and contains $variable}}}`
1717

1818
- Set default values in case `variable` is unset:
1919

20-
`echo ${variable:-default}`
20+
`echo ${{{variable:-default}}}`
2121

2222
- Return `variable` length in characters:
2323

24-
`echo ${#variable}`
24+
`echo ${{{#variable}}}`
2525

2626
- Return a string slice:
2727

28-
`echo ${variable:3:7}`
28+
`echo ${{{variable:3:7}}}`
2929

3030
- Recursively expand a `variable`:
3131

32-
`echo ${!variable}`
32+
`echo ${{{!variable}}}`
3333

3434
- Group command output together:
3535

0 commit comments

Comments
 (0)