Skip to content

Commit 34305d6

Browse files
committed
table
1 parent a4a8c4b commit 34305d6

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

sqlexpand.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ However, if the next thing is a letter or number you can include the name in cur
1616

1717
Immediately before the variable name (and inside `{...}` if present) can be a number of prefixes.
1818

19-
|---|-------|
19+
|Prefix|Meaning|
20+
|------|-------|
2021
|`?`| Used in some special cases, such as testing if a variable exists.|
2122
|`@`| Consider the expanded value as a filename and read the value from that file.|
2223
|`-`| Replace all `'`, `"` or `` ` `` with `_` (underscore).|
@@ -32,7 +33,8 @@ Only use `$%variable` with great care, and ensure any construction of the variab
3233

3334
Instead of the variable name itself there are some special variables. Some of these match a prefix, and so these work where not followed by a letter or underscore (use `{...}` if needed, e.g. `xx${@}xx`).
3435

35-
|---|-------|
36+
|Variable|Meaning|
37+
|--------|-------|
3638
|`$variable`| If the variable name itself starts with a $ then the variable contains a variable name. E.g. If variable `X` contains `A` then `${$X}` is the same as `$A`.|
3739
|`$`| Generate the parent PID (deprecated)|
3840
|`@`| Generate a timestamp of current directory|
@@ -48,7 +50,8 @@ Immediately after the variable name (and inside `{...}` if present) can be an in
4850

4951
Immediately after the variable name (and inside `{...}`, and after `[...]`, if present) can be a number of suffixes.
5052

51-
|---|-------|
53+
|Suffix|Meaning|
54+
|------|-------|
5255
|`:h'| Head of path, removes all after last slash.|
5356
|`:t'| Tail of path, only from after last slash (unchanged if no slash).|
5457
|`:e'| Extension. Everything after final dot if after last slash. Blank if no dot after last slash.|

0 commit comments

Comments
 (0)