From ca0a29d671b3dd654302efa3d88045d342ad69aa Mon Sep 17 00:00:00 2001 From: Managor <42655600+Managor@users.noreply.github.com> Date: Sat, 16 Aug 2025 13:00:10 +0300 Subject: [PATCH] {: add placeholders (#17661) --- pages/common/{.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/pages/common/{.md b/pages/common/{.md index 0d11b22432..d8c351a932 100644 --- a/pages/common/{.md +++ b/pages/common/{.md @@ -5,31 +5,31 @@ - Isolate variable names: -`echo ${HOME}work` +`echo ${{{HOME}work}}` - Brace expand sequences: -`echo {1..3} {a..c}{dir1,dir2,dir3}` +`echo {{{1..3}}} {{{a..c}}}{{{dir1,dir2,dir3}}}` - Check if `variable` is set before returning text: -`echo ${variable:+variable is set and contains $variable}` +`echo ${{{variable:+variable is set and contains $variable}}}` - Set default values in case `variable` is unset: -`echo ${variable:-default}` +`echo ${{{variable:-default}}}` - Return `variable` length in characters: -`echo ${#variable}` +`echo ${{{#variable}}}` - Return a string slice: -`echo ${variable:3:7}` +`echo ${{{variable:3:7}}}` - Recursively expand a `variable`: -`echo ${!variable}` +`echo ${{{!variable}}}` - Group command output together: