Skip to content

Commit a4a8c4b

Browse files
committed
Table
1 parent a598af5 commit a4a8c4b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

sqlexpand.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ 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+
|---|-------|
1920
|`?`| Used in some special cases, such as testing if a variable exists.|
2021
|`@`| Consider the expanded value as a filename and read the value from that file.|
2122
|`-`| Replace all `'`, `"` or `` ` `` with `_` (underscore).|
@@ -31,6 +32,7 @@ Only use `$%variable` with great care, and ensure any construction of the variab
3132

3233
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`).
3334

35+
|---|-------|
3436
|`$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`.|
3537
|`$`| Generate the parent PID (deprecated)|
3638
|`@`| Generate a timestamp of current directory|
@@ -46,6 +48,7 @@ Immediately after the variable name (and inside `{...}` if present) can be an in
4648

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

51+
|---|-------|
4952
|`:h'| Head of path, removes all after last slash.|
5053
|`:t'| Tail of path, only from after last slash (unchanged if no slash).|
5154
|`:e'| Extension. Everything after final dot if after last slash. Blank if no dot after last slash.|

0 commit comments

Comments
 (0)