Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: [BUG] String equal when compared, processed differently via //



Trying to find any workaround to this (and nothing worked, e.g.:

gitout=( "${(@f)"$( "${gitcmd[@]}" )"}" "${(@f)"$( "${gitcmd[@]}" )"}" )
gitout=( "${gitout[@]//...  ---> gitout=( "${(@)gitout[1,-1]//...
gitout=( "Test" "${gitout[@]}" )
adding (#s) and (#e) to pattern
Using (@f) without quotes

)

I stumbled upon using (I:2:) that helps:

gitout=( "${(I:2:)gitout[@]//(#b)([^$'\1']#)$'\1'([^$'\2']#)$'\2'([^$'\3']#)$'\3'([^$'\4']#)$'\4'(*)/${match[1]}
${(q-)match[2]}} >${match[3]}< ${(q-)match[4]} ${match[5]}" )

Attached source with this. (I:1:) doesn't help.

Now I get the desired output:

e6d9a0eA stub for uizcm, with binding (^O^U) (HEAD -> master)4 hours
agoSebastian Gniazdowski
feb4624myctags: Message about recompilation request (origin/master)4
hours agoSebastian Gniazdowski

e6d9a0eA stub for uizcm, with binding (^O^U) (HEAD -> master)4 hours
agoSebastian Gniazdowski
feb4624myctags: Message about recompilation request (origin/master)4
hours agoSebastian Gniazdowski > (origin/master)< '4 hours ago'
Sebastian Gniazdowski

(Instead of:

e6d9a0eA stub for uizcm, with binding (^O^U) (HEAD -> master)4 hours
agoSebastian Gniazdowski
feb4624myctags: Message about recompilation request (origin/master)4
hours agoSebastian Gniazdowski

e6d9a0e 'A stub for uizcm, with binding (^O^U)'
feb4624 'myctags: Message about recompilation request' >
(origin/master)< '4 hours ago' Sebastian Gniazdowski
)

Best regards,
Sebastian Gniazdowski

Attachment: minimal4.zsh
Description: Binary data



Messages sorted by: Reverse Date, Date, Thread, Author