From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24136 invoked by alias); 15 Oct 2014 01:09:35 -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: 19260 Received: (qmail 24839 invoked from network); 15 Oct 2014 01:09:34 -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:cc:content-type; bh=rSV5XQBYEqWb1M1Uu1ZBPjQWsHKUW8IO/R7WC7ZSnOY=; b=PH7d+ZlsZRXqJFW8koDWlPhtCn5GzJlr3zWWWIGierCpFIpLuBixpGBendaAyAmKoL HecxIEmUNHtqk7aLtuvTqYI7HPARyz+ZAy11aPr5X9bwrDVJLt1egndabka5OcVNrdT/ mBvkLMHsvhJQfWhQKprIG8IklxUBKjHNapMwA5rw9SbKunnErscUZcjtqaZxh93wx7yq AcAZ4YaJlWOf0WqrCv+whfe6o+9nJvT5XvCMjdJeUEk7O72UhT6/iRLTURmzDPdrog6q YX9c1G4/kyEZ6X8vGlYVKZofZZfS1W3IKvwZY0/sGkIFI25w80EY+UFF9vk/b2ccyNsH KrmA== X-Gm-Message-State: ALoCoQl+4U2wDXN/ogHYO5i3uk5J9j1r+kRQqHgM7sfX1WTMg/K8Tn+jJo27A4PqTnCu90byghe3 MIME-Version: 1.0 X-Received: by 10.112.73.35 with SMTP id i3mr8838804lbv.75.1413335367898; Tue, 14 Oct 2014 18:09:27 -0700 (PDT) In-Reply-To: <543DC7B8.7000306@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> <543DA2E0.8020000@eastlink.ca> <543DC7B8.7000306@eastlink.ca> Date: Tue, 14 Oct 2014 18:09:27 -0700 Message-ID: Subject: Re: combining .histfiles From: Kurtis Rader To: Ray Andrews Cc: Bart Schaefer , Zsh Users Content-Type: multipart/alternative; boundary=001a11c340ee8d6f0605056bc83d --001a11c340ee8d6f0605056bc83d Content-Type: text/plain; charset=UTF-8 For the benefit of anyone lurking on this thread who is confused why those funky looking lines are syntactically legal (which probably doesn't include Ray or Bart)... If you look carefully you'll see the format of the histfile is colon timestamp semicolon command The leading colon is the null command which does nothing with its args and returns a zero (success) exit status. The semicolon separates it from the "real" command. So entering something like : 1234:5 ; echo hello is the same as just typing echo hello The colon command is mostly useful when you want the side effects from parsing the rest of the args without running a command. On Tue, Oct 14, 2014 at 6:02 PM, Ray Andrews wrote: > On 10/14/2014 04:55 PM, Bart Schaefer wrote: > >> >> On Oct 14, 2014 3:24 PM, "Ray Andrews" > rayandrews@eastlink.ca>> wrote: >> > >> > I could stop the command on each line individually, but not the >> .histfile *itself*. Is there some way to >> > to break out of it? >> >> As I said, Ctrl+c should do it. I just now manufactured a file with a >> few hundred "cp largefile /dev/null" commands, read it with "." and was >> able to end it with Ctrl+c before it made it all the way through. >> >> Hmmm, it didn't work here, I hit Ctrl+c a dozen times, it didn't break > out. I'll try to figure out why. > >> On the other hand, you are the first person I've ever heard of make this >> particular mistake. :-) :-/ >> > Well then never mind. You can be sure I'll never do it again, that is for > sure! What with the file format, all those leading numbers, it didn't look > executable so the worst thing is that it was such a huge shock. Never > more. But it does make me question what *isn't* executable. > > -- Kurtis Rader Caretaker of the exceptional canines Junior and Hank --001a11c340ee8d6f0605056bc83d--