mirror of
https://github.com/sheumann/hush.git
synced 2024-08-15 02:29:00 +00:00
5b7589eb27
function old new delta expand_variables 2203 2217 +14
49 lines
744 B
Plaintext
Executable File
49 lines
744 B
Plaintext
Executable File
unset var
|
|
|
|
echo Empty:${var#}
|
|
echo Empty:${var##}
|
|
echo Empty:${var#*}
|
|
echo Empty:${var##*}
|
|
echo Empty:${var%}
|
|
echo Empty:${var%%}
|
|
echo Empty:${var%*}
|
|
echo Empty:${var%%*}
|
|
|
|
var=
|
|
|
|
echo Empty:${var#}
|
|
echo Empty:${var##}
|
|
echo Empty:${var#*}
|
|
echo Empty:${var##*}
|
|
echo Empty:${var%}
|
|
echo Empty:${var%%}
|
|
echo Empty:${var%*}
|
|
echo Empty:${var%%*}
|
|
|
|
var=ababcdcd
|
|
|
|
echo ${var#ab}
|
|
echo ${var##ab}
|
|
echo ${var#a*b}
|
|
echo ${var##a*b}
|
|
echo ${var#?}
|
|
echo ${var##?}
|
|
echo ${var#*}
|
|
echo Empty:${var##*}
|
|
echo ${var#}}_tail
|
|
# UNFIXED BUG: echo ${var#\}}_tail
|
|
|
|
echo ${var%cd}
|
|
echo ${var%%cd}
|
|
echo ${var%c*d}
|
|
echo ${var%%c*d}
|
|
echo ${var%?}
|
|
echo ${var%%?}
|
|
echo ${var%*}
|
|
echo Empty:${var%%*}
|
|
echo ${var#}}_tail
|
|
# UNFIXED BUG: echo ${var#\}}_tail
|
|
echo ${var%\\*}
|
|
|
|
echo end
|