Version 1.13.1
When Remove All Comments, following line (from p10k.zsh):
(( $#branch > 32 )) && branch[13,-13]="…" # <-- this line
becomes:
The correct outcome should be:
(( $#branch > 32 )) && branch[13,-13]="…"
Additional information:
- In shell script(posix), if
# immediately followed by non-white-space, it may or may not not be comment.
- Complexity of shell script:
# Following line does not contain comment
cat file | grep -v -e ^# -e ^$
# Following line is partial comment
cat file | grep -v -e ^# -e ^$ ### This part is a comment
Version 1.13.1
When
Remove All Comments, following line (fromp10k.zsh):becomes:
The correct outcome should be:
Additional information:
#immediately followed by non-white-space, it may or may not not be comment.