zsh sometimes doesn't show stdout
When I have a command that generates a lot into stdout zsh recently (last 6 months AFAIR) stopped showing the output.
e.g.
when I do a:
for i in `seq 2000`; do echo AAA; done
I don't get any output, and even when I press new line (enter) the cursor doesn't move, but the requests are going out.
When I reduce the number in seq
:
for i in `seq 20`; do echo AAA; done
I do get output.
When I run both commands in bash I get output in each case.
What happened to zsh? Did it start to buffer the stdout somehow? Or is it seq
fault somehow?
zsh version: debian/5.6.2-3
My .zshrc is quite long, but it worked in one version and in another it started behaving so strangely. Is there an option for buffering or something?
UPDATE:
I've narrowed it down to following entry in my zshrc:
case $TERM in
*xterm*|rxvt|(dt|k|E|a)term)
preexec () {
print -Pn "e]2;$1a"
}
;;
screen*)
preexec () {
print -Pn "e"$1e134"
}
;;
esac
linux bash zsh
add a comment |
When I have a command that generates a lot into stdout zsh recently (last 6 months AFAIR) stopped showing the output.
e.g.
when I do a:
for i in `seq 2000`; do echo AAA; done
I don't get any output, and even when I press new line (enter) the cursor doesn't move, but the requests are going out.
When I reduce the number in seq
:
for i in `seq 20`; do echo AAA; done
I do get output.
When I run both commands in bash I get output in each case.
What happened to zsh? Did it start to buffer the stdout somehow? Or is it seq
fault somehow?
zsh version: debian/5.6.2-3
My .zshrc is quite long, but it worked in one version and in another it started behaving so strangely. Is there an option for buffering or something?
UPDATE:
I've narrowed it down to following entry in my zshrc:
case $TERM in
*xterm*|rxvt|(dt|k|E|a)term)
preexec () {
print -Pn "e]2;$1a"
}
;;
screen*)
preexec () {
print -Pn "e"$1e134"
}
;;
esac
linux bash zsh
I have no problems with zsh 5.6.2; please include details about your version (echo $ZSH_PATCHLEVEL
) and try without loading your personal config (zsh -f
).
– mpy
Dec 13 '18 at 17:07
@mpy Thanks, I added my version and without my personal config it works. What can be causing such strange behavior?
– Krzysztof Krasoń
Dec 13 '18 at 22:01
Unfortunately, also with the code you posted (to change title of terminal / screen to currently running program), I cannot reproduce the behavior you describe. I even went up to 2000000 without problems.
– mpy
Dec 16 '18 at 15:55
add a comment |
When I have a command that generates a lot into stdout zsh recently (last 6 months AFAIR) stopped showing the output.
e.g.
when I do a:
for i in `seq 2000`; do echo AAA; done
I don't get any output, and even when I press new line (enter) the cursor doesn't move, but the requests are going out.
When I reduce the number in seq
:
for i in `seq 20`; do echo AAA; done
I do get output.
When I run both commands in bash I get output in each case.
What happened to zsh? Did it start to buffer the stdout somehow? Or is it seq
fault somehow?
zsh version: debian/5.6.2-3
My .zshrc is quite long, but it worked in one version and in another it started behaving so strangely. Is there an option for buffering or something?
UPDATE:
I've narrowed it down to following entry in my zshrc:
case $TERM in
*xterm*|rxvt|(dt|k|E|a)term)
preexec () {
print -Pn "e]2;$1a"
}
;;
screen*)
preexec () {
print -Pn "e"$1e134"
}
;;
esac
linux bash zsh
When I have a command that generates a lot into stdout zsh recently (last 6 months AFAIR) stopped showing the output.
e.g.
when I do a:
for i in `seq 2000`; do echo AAA; done
I don't get any output, and even when I press new line (enter) the cursor doesn't move, but the requests are going out.
When I reduce the number in seq
:
for i in `seq 20`; do echo AAA; done
I do get output.
When I run both commands in bash I get output in each case.
What happened to zsh? Did it start to buffer the stdout somehow? Or is it seq
fault somehow?
zsh version: debian/5.6.2-3
My .zshrc is quite long, but it worked in one version and in another it started behaving so strangely. Is there an option for buffering or something?
UPDATE:
I've narrowed it down to following entry in my zshrc:
case $TERM in
*xterm*|rxvt|(dt|k|E|a)term)
preexec () {
print -Pn "e]2;$1a"
}
;;
screen*)
preexec () {
print -Pn "e"$1e134"
}
;;
esac
linux bash zsh
linux bash zsh
edited Dec 14 '18 at 13:54
asked Dec 13 '18 at 14:25
Krzysztof Krasoń
1563
1563
I have no problems with zsh 5.6.2; please include details about your version (echo $ZSH_PATCHLEVEL
) and try without loading your personal config (zsh -f
).
– mpy
Dec 13 '18 at 17:07
@mpy Thanks, I added my version and without my personal config it works. What can be causing such strange behavior?
– Krzysztof Krasoń
Dec 13 '18 at 22:01
Unfortunately, also with the code you posted (to change title of terminal / screen to currently running program), I cannot reproduce the behavior you describe. I even went up to 2000000 without problems.
– mpy
Dec 16 '18 at 15:55
add a comment |
I have no problems with zsh 5.6.2; please include details about your version (echo $ZSH_PATCHLEVEL
) and try without loading your personal config (zsh -f
).
– mpy
Dec 13 '18 at 17:07
@mpy Thanks, I added my version and without my personal config it works. What can be causing such strange behavior?
– Krzysztof Krasoń
Dec 13 '18 at 22:01
Unfortunately, also with the code you posted (to change title of terminal / screen to currently running program), I cannot reproduce the behavior you describe. I even went up to 2000000 without problems.
– mpy
Dec 16 '18 at 15:55
I have no problems with zsh 5.6.2; please include details about your version (
echo $ZSH_PATCHLEVEL
) and try without loading your personal config (zsh -f
).– mpy
Dec 13 '18 at 17:07
I have no problems with zsh 5.6.2; please include details about your version (
echo $ZSH_PATCHLEVEL
) and try without loading your personal config (zsh -f
).– mpy
Dec 13 '18 at 17:07
@mpy Thanks, I added my version and without my personal config it works. What can be causing such strange behavior?
– Krzysztof Krasoń
Dec 13 '18 at 22:01
@mpy Thanks, I added my version and without my personal config it works. What can be causing such strange behavior?
– Krzysztof Krasoń
Dec 13 '18 at 22:01
Unfortunately, also with the code you posted (to change title of terminal / screen to currently running program), I cannot reproduce the behavior you describe. I even went up to 2000000 without problems.
– mpy
Dec 16 '18 at 15:55
Unfortunately, also with the code you posted (to change title of terminal / screen to currently running program), I cannot reproduce the behavior you describe. I even went up to 2000000 without problems.
– mpy
Dec 16 '18 at 15:55
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1383310%2fzsh-sometimes-doesnt-show-stdout%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Super User!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1383310%2fzsh-sometimes-doesnt-show-stdout%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
I have no problems with zsh 5.6.2; please include details about your version (
echo $ZSH_PATCHLEVEL
) and try without loading your personal config (zsh -f
).– mpy
Dec 13 '18 at 17:07
@mpy Thanks, I added my version and without my personal config it works. What can be causing such strange behavior?
– Krzysztof Krasoń
Dec 13 '18 at 22:01
Unfortunately, also with the code you posted (to change title of terminal / screen to currently running program), I cannot reproduce the behavior you describe. I even went up to 2000000 without problems.
– mpy
Dec 16 '18 at 15:55