From owner-svn-src-head@freebsd.org Sun Oct 29 20:20:01 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 1C64DE4B77C for ; Sun, 29 Oct 2017 20:20:01 +0000 (UTC) (envelope-from lists@eitanadler.com) Received: from mail-yw0-x231.google.com (mail-yw0-x231.google.com [IPv6:2607:f8b0:4002:c05::231]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id C72F4653BC for ; Sun, 29 Oct 2017 20:20:00 +0000 (UTC) (envelope-from lists@eitanadler.com) Received: by mail-yw0-x231.google.com with SMTP id l32so9795459ywh.13 for ; Sun, 29 Oct 2017 13:20:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=eitanadler.com; s=0xdeadbeef; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-transfer-encoding; bh=5zCHL8zzhe4LYtiyt2W9s6mTPYDiUlV2W6PZgx3EqcI=; b=ghBbPmdetV/CITxpPdyTLzs2f6XsQkSIq/P7Asy7hNuyN+NPte8cMD9EufJXQV6SWC YrbconY81t5ZWRDycd9Mjlrg7NoR6CIWN+99cLIIcIdrry7KfvgrOTxRlMACQsLgZhlC hExO+Vmvw/oR/WTa5S6afA8xSd6LkHKYJa31g= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd-org.20150623.gappssmtp.com; s=20150623; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-transfer-encoding; bh=5zCHL8zzhe4LYtiyt2W9s6mTPYDiUlV2W6PZgx3EqcI=; b=VUhdbkxgNYS+qvwxaBjSG06bVfvzFnElbaAuD4ktGxMV+HHjES1n81dWstuu8Bxxgc 3bHOI6iHmLiPtAUAgfMEM3jWvUq+UFnCEjeIuVb69XsgLzv1Y2VhcPzag7SlWbpSnNWl OWMWSmr63TRv+wfKJ7KmGe76tYe1htiUir16rR46QYS3aNASYJ8T3m3IYGn0Vst/oeAc kuprsH60uameKwPz1EJeScRql+uPDiTmF3/n0yro5y/MVW1mWy9O71WUTS7Tu8Kld7Wt 6nfJH9EM4nE69OkvZC76SDrTgAqeYwf5KU9Hpk6dodGC9WmomLsktih2ON0sPyYzfngh BC/w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc:content-transfer-encoding; bh=5zCHL8zzhe4LYtiyt2W9s6mTPYDiUlV2W6PZgx3EqcI=; b=bReF7sjyFFz5LFfSwzCcWesQKSNIUTLn8JMdFwQmjLPaRnaedk6crs7ugCo8rwDVC6 H8UmEMPvewVS+UpnjVrjugZsXGauj14r8AkXSMrqF0TgkWwlqK36BRUq/plq3rBthOKQ oBH+UFQaQo9ylGLU7i1JE75P2ZeP4BbZKY+1Pa/sXUGzOHVpRijYxUWZbnUs9F6fxnXL FyQPw+E8gWNA6DtPtWfn/r1HafLwdu+TUGS6+SIxsrVv2pMa6fNO/l96a5mu8/+Y56Aw +I7Gk7igN7lt71bVkd0F74v9lQBZej4A1Yo6lAPq4ZQb812SV9EFaD6rUQygeTQ4OMDz NNuA== X-Gm-Message-State: AMCzsaVgmaN6fiKxl6fVm3FuDbnODrKAxQm7V29e/XSMhb7iTAAWy0WX wePBYrgjSVzU4gVlhEGszL4aeC1xsJul5bFfxgl+Zg== X-Google-Smtp-Source: ABhQp+TOtycOYeyquUQlKzdcm6KCWFnwAcC4nuFntoG4ho66O6D+hzgGsvBvhwMM67DdrQHNiEzepQAGo/la+cj3c+k= X-Received: by 10.129.77.137 with SMTP id a131mr4926810ywb.107.1509308399733; Sun, 29 Oct 2017 13:19:59 -0700 (PDT) MIME-Version: 1.0 Sender: lists@eitanadler.com Received: by 10.37.56.66 with HTTP; Sun, 29 Oct 2017 13:19:29 -0700 (PDT) In-Reply-To: References: <201710291851.v9TIpM0I073542@slippy.cwsent.com> From: Eitan Adler Date: Sun, 29 Oct 2017 13:19:29 -0700 X-Google-Sender-Auth: 895GLt7SzAlZrPaFrlJ7LHoVtac Message-ID: Subject: Re: svn commit: r325092 - head/usr.bin/fortune/datfiles To: Devin Teske Cc: Cy Schubert , Warner Losh , Ed Maste , "src-committers@freebsd.org" , "svn-src-all@freebsd.org" , "svn-src-head@freebsd.org" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 29 Oct 2017 20:20:01 -0000 On 29 October 2017 at 12:47, Devin Teske wrote: >>>> >>>> I doubt many people use /bin/sh as an interactive shell, but the tip >>>> ought not lead those who do astray Will fix. >>> >>> Yes. /bin/sh on FreeBSD doesn't grok it, though bash and some other she= lls >>> available as ports do. I think that the old text was a bit better. < snip lots of great advice> Lets add new tips to fortune! > I=E2=80=99ve still had to use rehash on several occasions for it to detec= t new apps, so remove that reference might be a mistake After r234823 I expect this to only occur if you install a new binary, with the same as an existing hashed binary, earlier in the PATH. Have you found this not to be the case? --=20 Eitan Adler Source, Ports, Doc committer Bugmeister, Ports Security teams On 29 October 2017 at 12:47, Devin Teske wrote: > >> On Oct 29, 2017, at 11:51 AM, Cy Schubert wro= te: >> >> In message > om> >> , Warner Losh writes: >>> --94eb2c114c9a7c3c21055cb3566c >>> Content-Type: text/plain; charset=3D"UTF-8" >>> >>>>> On Sun, Oct 29, 2017 at 8:26 AM, Ed Maste wrote: >>>>> >>>>> On 29 October 2017 at 00:53, Eitan Adler wrote: >>>>> Author: eadler >>>>> Date: Sun Oct 29 04:53:33 2017 >>>>> New Revision: 325092 >>>>> URL: https://svnweb.freebsd.org/changeset/base/325092 >>>>> >>>>> Log: >>>>> Modernize freebsd-tips a bit >>>> ... >>>>> % >>>>> Want to run the same command again? >>>>> -In tcsh you can type "!!". >>>>> +Type "!!". >>>>> % >>>> >>>> $ !! >>>> sh: !!: not found >>>> >>>> I doubt many people use /bin/sh as an interactive shell, but the tip >>>> ought not lead those who do astray >>> >>> Yes. /bin/sh on FreeBSD doesn't grok it, though bash and some other she= lls >>> available as ports do. I think that the old text was a bit better. >> >> Or better yet, ctrl-r in bash and zsh, or up-arrow in tcsh. > > Since we are responding to emaste's astute observation with random person= al favorites when it comes to history actions in an interactive shell... > > How about Esc-P and Esc-N? > > Never used it, you say? Few people do. > > Try this: > > Esc-P > (a colon appears) > (type a portion of the event you are looking for and press ENTER) > Found it? Good. > Didn't find it? Esc-P then ENTER to repeat search further back. > Keep typing Esc-P, ENTER until you find it. > Oh, you went too far? Esc-N, ENTER to search forward from the last matche= d event. > > Sometimes I show this to co-workers and they shake their head and go back= to Ctrl-R. > > Ctrl-R is ok, but doesn't enable an Esc-N-like functionality by default. = But if you execute (or put in your shell profile) "stty -ixon" then you can= use Ctrl-S to reverse the search order during a Ctrl-R search. > > For example: > > Ctrl-r > (a prompt appears) > (type some text; don't hit ENTER) > Ctrl-r until you find the one you want > Went too far? > Ctrl-s to switch from reverse-search to forward-search > Ctrl-s until you find one you want > > Just thought I would share this random info. > > As for the fortune statement... > > I agree with emaste, "Type !!" is misleading. Old statement of "in tcsh y= ou can type !!" was fine because tcsh is the only shell in base that suppor= ts that feature. However, possible alternatives to "Type !!" could be: > > Try "!!" (works in many shells but not all). > > NB: Trying to make a future-proof statement so the fortune datfile doesn'= t have to be onerously maintained. > -- > Devin --=20 Eitan Adler Source, Ports, Doc committer Bugmeister, Ports Security teams