From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5739 invoked by alias); 14 Oct 2014 22:04:56 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 19256 Received: (qmail 20722 invoked from network); 14 Oct 2014 22:04:54 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,HTML_MESSAGE, RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=OqQBhdwPgnxTdCmIiR3vjkqgv+p8WGqIJZgGMdjEgb0=; b=Onm9BcsF0pfJpoWh1r0MQRu7l45Ma/Z3/M/n6M95mrxWJCURfNrGjJjAGOLc9URihD ZaI28U3B4ahBPZ8aAf2TMxJLp5xX5yxxpJHp61IWlhUawxhNptBpRSmQfV4TKM9pDJqL af8xY9lFKCkZmd2CQ2n4fs3hhzC9Btk8FEtwq+Hn4DzA+0QoVMeubS4Xg6any8S0pMFn 6TBNQRIoGJ7n4MxyucJzwPPyWWHvp9NhTTVctwM75wzGaTlin3bbGK2oi00k8WLMRxuY OYSjp9erhNmlxp3Q1ggd3mQtUS+yiNpslQaM6q9eZ6W1XhFVpeIZv9mnZHBf5LmzMH3y t1MQ== X-Gm-Message-State: ALoCoQklUYev4N4Jw/VG1aPngjp2vQwQG/nLgPcJh22mXSSgP3VIbVsMpodZCBYw0IHOThmgVNot MIME-Version: 1.0 X-Received: by 10.140.42.134 with SMTP id c6mr12542478qga.7.1413324288826; Tue, 14 Oct 2014 15:04:48 -0700 (PDT) In-Reply-To: <543D5B45.1000808@eastlink.ca> References: <54397CC0.9070206@eastlink.ca> <141011131053.ZM28143@torch.brasslantern.com> <5439A54A.9060304@eastlink.ca> <141011150111.ZM28417@torch.brasslantern.com> <5439CB82.3070401@eastlink.ca> <87h9z7dc91.fsf@lwm.klanderman.net> <543C4C85.2060807@eastlink.ca> <543D5B45.1000808@eastlink.ca> Date: Tue, 14 Oct 2014 15:04:48 -0700 Message-ID: Subject: Re: combining .histfiles From: Bart Schaefer To: Zsh Users Content-Type: multipart/alternative; boundary=001a1139bf0c303a34050569347a --001a1139bf0c303a34050569347a Content-Type: text/plain; charset=UTF-8 On Oct 14, 2014 10:19 AM, "Ray Andrews" 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. --001a1139bf0c303a34050569347a--