Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Very weird shell & sysread behavior
- X-seq: zsh-workers 43730
- From: Sebastian Gniazdowski <sgniazdowski@xxxxxxxxx>
- To: Zsh hackers list <zsh-workers@xxxxxxx>
- Subject: Very weird shell & sysread behavior
- Date: Sat, 27 Oct 2018 22:35:16 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to :content-transfer-encoding; bh=Rpahfbbh/gS4UALUvrDX8wazvOaBUk5Z5haBkwrCNSo=; b=e8RxZN2H53nOm2ikMxLgnM5fTE7hjQUqvxWtIuiChUxnDyOZqJHoASMvAiSl5eORTO Eo+lQ732E27cJEjOp/wQVQteipzunJSh5DSI6kUDlxStafbDI/uXtoEQ6AGHqmKLlNqD E/57zbBP1QoYhqsSuzjkx+iw3mLLczk6lyinV3KXqTd4lypP4p+zILjtH/bFYCpp9TDF IufgRNP7iU1r4jFcCqtbGrsg9LHYU6+Jt8TDQRbK7M+DxuIcndNdvevdG1e8Cp//d9KI R7kePksExRrKNCvoRAf6MZTcHqjEwwBmkCTcOnpg3tB0kV/Te58RyZzq9hvri/k8tRIV +FcA==
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- List-unsubscribe: <mailto:zsh-workers-unsubscribe@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
Hello,
the screenshot says it all:
http://psprint.blinkenshell.org/weird.png
In the while loop, $__tmp[-1] returns correct data.
After the loop, $__tmp[-1] nor $__tmp[@] contain any data.
More: when I provide the data (on the writing end) in following way:
print -r -- "${(q)ZTSMAP[colsearch_pattern]}"$'\0'
print -nr -- "${(j::)${__zts_hcw_found[@]/(#e)/--${num}-del--}}"
Then the issue occurs. But when I'll do it in following way:
print -nr --
"${(q)ZTSMAP[colsearch_pattern]}"$'\0'"${(j::)${__zts_hcw_found[@]/(#e)/--${num}-del--}}"
I.e. through write of a single string – then the after-loop $__tmp
references contain correct data. What's going on?
--
Sebastian Gniazdowski
News: https://twitter.com/ZdharmaI
IRC: https://kiwiirc.com/client/chat.freenode.net:+6697/#zplugin
Blog: http://zdharma.org
Messages sorted by:
Reverse Date,
Date,
Thread,
Author