Skip to content

Commit

Permalink
allow =() expansion
Browse files Browse the repository at this point in the history
  • Loading branch information
MenkeTechnologies committed Dec 10, 2021
1 parent 7e46505 commit f049d13
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions zpwrExpandApi.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,8 @@ function zpwrExpandParseWords(){
tmp=${1}
tmp=( ${(z)tmp} )

# change <( to ; for word splitting
tmp[-1]=${tmp[-1]:gs/\<\(/;/}
# change $( to ; for word splitting
tmp[-1]=${tmp[-1]:gs/\$\(/;/}
# change <(, =(, $( to ; for word splitting
tmp[-1]=${tmp[-1]//[\<\=\$]\(/;}
# change ` to ; for word splitting
tmp[-1]=${tmp[-1]:gs/\`/;/}
# allow expansion in ""
Expand Down

0 comments on commit f049d13

Please sign in to comment.