zsh-users
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: Zsh Users <zsh-users@zsh.org>
Subject: Re: combining .histfiles
Date: Tue, 14 Oct 2014 15:04:48 -0700	[thread overview]
Message-ID: <CAH+w=7baN4Eg51-BZBbCxLBEYZuUo-aprGNnpsRhT2ffTkhHmw@mail.gmail.com> (raw)
In-Reply-To: <543D5B45.1000808@eastlink.ca>

[-- Attachment #1: Type: text/plain, Size: 1057 bytes --]

On Oct 14, 2014 10:19 AM, "Ray Andrews" <rayandrews@eastlink.ca> wrote:
>
> .histfiles files merged fine, all good, except that somewhere along the
line I managed to do this:
>
>     . ~/.histfile
>
> and it merrily started executing everything in my history.

Yes, history files have historically (ahem) been kept in a format that is
readable as shell command input.  I suspect this may date from early csh
implementations that reloaded the history by disabling command execution
and then running the file through the parser.

> Nothing would stop it until I
> jumped under my desk and pulled out the computer's plug.

Hmm, I don't know any reason why a regular interrupt (Ctrl+c) would not
stop "." execution, regardless of whether the script is a history file or
any other script, as long as the commands being executed are themselves
interruptible.

You mentioned a "slow copy" ... I've found that if an external command is
in disk wait state it may not respond to interrupts.  Sometimes a Ctrl+z
will suspend such a job even when Ctrl+c won't kill it.

  reply	other threads:[~2014-10-14 22:04 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-11 18:53 zsh 5.0.7 Ray Andrews
2014-10-11 20:10 ` Bart Schaefer
2014-10-11 21:46   ` Ray Andrews
2014-10-11 21:56     ` Axel Beckert
2014-10-11 22:43       ` Ray Andrews
2014-10-11 22:01     ` Bart Schaefer
2014-10-12  0:29       ` Ray Andrews
2014-10-13 19:02         ` Greg Klanderman
2014-10-13 22:04           ` Ray Andrews
2014-10-13 22:58             ` Greg Klanderman
2014-10-14  1:17               ` Ray Andrews
2014-10-14 20:12                 ` Greg Klanderman
2014-10-14 20:33                   ` Ray Andrews
2014-10-14 17:20             ` combining .histfiles Ray Andrews
2014-10-14 22:04               ` Bart Schaefer [this message]
2014-10-14 22:25                 ` Ray Andrews
2014-10-14 23:55                   ` Bart Schaefer
2014-10-15  1:02                     ` Ray Andrews
2014-10-15  1:09                       ` Kurtis Rader
2014-10-15  1:25                         ` Ray Andrews
2014-10-23  2:58             ` c++ comments Ray Andrews
2014-10-23  4:41               ` Bart Schaefer

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='CAH+w=7baN4Eg51-BZBbCxLBEYZuUo-aprGNnpsRhT2ffTkhHmw@mail.gmail.com' \
    --to=schaefer@brasslantern.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).