Skip to content

Commit eb3d97d

Browse files
committed
minor
1 parent 6b4fafd commit eb3d97d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

whatlib.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ _ancient_longopt_handler(){
3434
# robustness note: many end-quote replacments should test for the existance of the pattern first,
3535
# and return 42 if patt not present.
3636
# 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.
3738
shsplit(){
3839
_shsplit_out=()
3940
shopt -s extglob
@@ -74,6 +75,8 @@ shsplit(){
7475
_shsplit_dquote
7576
if ((_shsplit_bash_moquote == 2)); then
7677
# re-escape. dirty, right?
78+
# only do this when you fscking trust the input.
79+
# no, I will not escape \$ and \` for you.
7780
dquote_ret=${dquote_ret//\\/\\\\}
7881
dquote_ret=${dquote_ret//\"/\\\"}
7982
eval 'dquote_ret=$"'"$dquote_ret\""

0 commit comments

Comments
 (0)