We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6b4fafd commit eb3d97dCopy full SHA for eb3d97d
whatlib.sh
@@ -34,6 +34,7 @@ _ancient_longopt_handler(){
34
# robustness note: many end-quote replacments should test for the existance of the pattern first,
35
# and return 42 if patt not present.
36
# fixme: backslash even-odd not checked in patterns! this is fatal.
37
+# You will need to have an extra var to hold ${tmp##[!\\]} and count.
38
shsplit(){
39
_shsplit_out=()
40
shopt -s extglob
@@ -74,6 +75,8 @@ shsplit(){
74
75
_shsplit_dquote
76
if ((_shsplit_bash_moquote == 2)); then
77
# re-escape. dirty, right?
78
+ # only do this when you fscking trust the input.
79
+ # no, I will not escape \$ and \` for you.
80
dquote_ret=${dquote_ret//\\/\\\\}
81
dquote_ret=${dquote_ret//\"/\\\"}
82
eval 'dquote_ret=$"'"$dquote_ret\""
0 commit comments