zsh-users
 help / color / mirror / code / Atom feed
From: "Jérémie Roquet" <arkanosis@gmail.com>
To: Zsh Users <zsh-users@zsh.org>
Subject: Unable to interrupt slow filename generation
Date: Mon, 15 Oct 2012 11:53:08 +0200	[thread overview]
Message-ID: <CAFOazANLoP6DaGNEvgO65ERSgcD4RAyU_OvocyVVcfwXQQGJyQ@mail.gmail.com> (raw)

Hi everyone,

When I use filename generation, for example, something like this:

$ echo **/*<tab>

or:

$ echo **/*<enter>

I'm expecting that hitting ctrl+c will interrupt the very slow
filename generation, and it looks like it's indeed the case.

However, when I use the “estring” glob qualifier, I'm unable to
interrupt filename generation. Eg:

$ echo *(e:sleep 10:)

If I hit ctrl+c, it interrupts the “sleep” process, but not filename
generation. I have to interrupt that process once per generated
filename — but most of the time there are too much files to do this.
The only “solution” I've found to stop this kind of filename
generation is to kill the shell, which is not satisfactory either, as
you could have guessed.

Does anyone know 1) if this is the expected behaviour 2) if so, if
this is desirable and 3) if so, if there is a way to give up this kind
of filename generation without losing the shell¹?

Thanks in advance, best regards,

¹ Actually, I've found that ctrl+z + kill all the shell child
processes + fg sort of works, but that's a bit cumbersome.

-- 
Jérémie


                 reply	other threads:[~2012-10-15  9:53 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAFOazANLoP6DaGNEvgO65ERSgcD4RAyU_OvocyVVcfwXQQGJyQ@mail.gmail.com \
    --to=arkanosis@gmail.com \
    --cc=zsh-users@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).