mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-25 17:20:25 +02:00
28528: Rearrange zleparse to lexflags
Add (z+n+)
This commit is contained in:
parent
5858e79f4d
commit
eab4f9a83c
10 changed files with 112 additions and 69 deletions
|
|
@ -462,6 +462,17 @@
|
|||
>with
|
||||
>comment
|
||||
|
||||
line=$'echo one\necho two # with a comment\necho three'
|
||||
print -l ${(z+nc+)line}
|
||||
0:Treating zplit newlines as ordinary whitespace
|
||||
>echo
|
||||
>one
|
||||
>echo
|
||||
>two
|
||||
># with a comment
|
||||
>echo
|
||||
>three
|
||||
|
||||
psvar=(dog)
|
||||
setopt promptsubst
|
||||
foo='It shouldn'\''t $(happen) to a %1v.'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue