zsh-workers
 help / color / mirror / code / Atom feed
* Re: Possible ZSH bug involving piping ls to less (MSYS2 & Cygwin)
@ 2021-01-27  2:44 agkozak
  2021-01-27 10:14 ` Jun T
  0 siblings, 1 reply; 6+ messages in thread
From: agkozak @ 2021-01-27  2:44 UTC (permalink / raw)
  To: zsh-workers; +Cc: 'Jun T'

I'm pretty sure it's been happening intermittently for quite a while, but I
couldn't say for sure when it started. Sorry.

I found a discussion on GitHub of a similar problem where git was being
piped to tig:

    https://github.com/jonas/tig/issues/951

They seem to think they know exactly when the problem started, but I can't
confirm that.

The workaround of using a subshell seems to help, i.e.

    ls --color | (less -R)


Alex

-----Original Message-----
From: Jun T <takimoto-j@kba.biglobe.ne.jp> 
Sent: Monday, January 25, 2021 5:50 PM
To: zsh-workers@zsh.org
Cc: Alexandros Kozak <agkozak@gmail.com>
Subject: Re: Possible ZSH bug involving piping ls to less (MSYS2 & Cygwin)


> 2021/01/19 4:08, agkozak@gmail.com wrote:
> 
> Using zsh v5.8 on both MSYS2 and Cygwin and a plain vanilla shell (no
> dotfiles):
> 
> If I run
> 
>    ls --color | less -R
> 
> frequently I get
> 
>    zsh: done                    ls --color |
>    zsh: suspended (tty output)  less -R
> 
> On rare occasions I can get this to happen with a simple
> 
>    ls | less
> 
> but using the --color option seems to make it happen considerably more 
> often. It happens quite frequently on MSYS2; it is harder to reproduce 
> on Cygwin, but it does happen.

Yes, it happens quite frequently on MSYS2.

Has this been happening for a long time, or started to happen rather
recently?
(my experience on MSYS2 is quite limited)



^ permalink raw reply	[flat|nested] 6+ messages in thread
* Possible ZSH bug involving piping ls to less (MSYS2 & Cygwin)
@ 2021-01-18 19:08 agkozak
  2021-01-26  1:49 ` Jun T
  2022-09-13  8:49 ` Jun T
  0 siblings, 2 replies; 6+ messages in thread
From: agkozak @ 2021-01-18 19:08 UTC (permalink / raw)
  To: zsh-workers

Using zsh v5.8 on both MSYS2 and Cygwin and a plain vanilla shell (no
dotfiles):

If I run

    ls --color | less -R

frequently I get

    zsh: done                    ls --color |
    zsh: suspended (tty output)  less -R

On rare occasions I can get this to happen with a simple

    ls | less

but using the --color option seems to make it happen considerably more
often. It happens quite frequently on MSYS2; it is harder to reproduce on
Cygwin, but it does happen. This problem doesn't happen in bash. I don't
know the origin of the problem, but I suspect list members will have
insight.

Alex 



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2022-09-13  8:55 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-27  2:44 Possible ZSH bug involving piping ls to less (MSYS2 & Cygwin) agkozak
2021-01-27 10:14 ` Jun T
2021-01-28 10:42   ` Jun T
  -- strict thread matches above, loose matches on Subject: below --
2021-01-18 19:08 agkozak
2021-01-26  1:49 ` Jun T
2022-09-13  8:49 ` Jun T

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).