Skip to content

Commit

Permalink
handbook: update
Browse files Browse the repository at this point in the history
  • Loading branch information
psprint committed Feb 3, 2020
1 parent 15d12a0 commit 1ad9e6a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Zsh-Native-Scripting-Handbook.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ queried for character-replacement. You can substitute a text variable too, just
skip `[@]` and parentheses in assignment.

[#ternary-expressions-1]
### Ternary expressions with `\+,-,:+,:-` substitutions
### Ternary expressions with `+,-,:+,:-` substitutions

[source,none]
----
Expand Down Expand Up @@ -414,8 +414,10 @@ That are `4` forks. The code can be replaced according to this guide:
----
local -a lines_list
lines_list=( ${(f)"$(git help -a)"} )
lines_list=( ${(M)${(s: :)${(M)lines_list:# [a-z]*}}:#$mysub} )
lines_list=( ${(M)${(s: :)${(M)lines_list:# [a-z]*}}:#$mysub} )
if (( ${#lines_list} > 0 )); then
fi
----

The result is just `1` fork.
Expand Down

0 comments on commit 1ad9e6a

Please sign in to comment.