Skip to content
Myr

Fix documentation for brace escapes

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Thayne McCombs · committed by David Peter · parent d9b69c8 · Browse files · 2 files+8 added−5 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+8 added−5 removed

  • other:+8 added−5 removed

2 files+8 added−5 removed

modified:doc/fd.1+6 added-4 removed
378 unmodified lines
379.IP {.}380path without file extension381.IP {/.}382basename without file extension383.IP {{}384literal '{'383.IP {{384literal '{' (an escape sequence)385.IP }}386literal '}' (an escape sequence)387.RE388389If no placeholder is present, an implicit "{}" at the end is assumed.390389If you need to include the literal text of one of the placeholders, you can use "{{}" to390escape the first "{". For example "{{}}" expands to "{}", and "{{}{{}}}" expands to "{{}".391Notice that you can use "{{" and "}}" to escape "{" and "}" respectively, which is especially392useful if you need to include the literal text of one of the above placeholders.393394Examples:395396 - find all *.zip files and unzip them:
95 unmodified lines
modified:src/cli.rs+2 added-1 removed
806 unmodified lines
807 '{/}': basename\n \808 '{//}': parent directory\n \809 '{.}': path without file extension\n \810 '{/.}': basename without file extension\n \811 '{{}': literal '{' (for escaping)\n\n\811 '{{': literal '{' (for escaping)\n \812 '}}': literal '}' (for escaping)\n\n\813 If no placeholder is present, an implicit \"{}\" at the end is assumed.\n\n\814 Examples:\n\n \815 - find all *.zip files and unzip them:\n\n \816 fd -e zip -x unzip\n\n \
56 unmodified lines