Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 24 Oct 2016 11:39:59 -0400
From:      Ernie Luzar <luzar722@gmail.com>
To:        Freebsd Questions <FreeBSD-questions@freebsd.org>
Subject:   csh history search
Message-ID:  <580E2B4F.4000003@gmail.com>

next in thread | raw e-mail | index | archive | help
Hello List;
Reading this section "History substitution" in csh(1) seems to indicate 
I can pull up a previous command from the history list.

Lets say that a while back I issued this command
ping -c 4 hometown.jones.domain.com

Now I would like to retrieve that domain name from the history list.

On the command line I enter  !?jon
The complete ping command is retrieved and automatically executed.

I don't want the found command automatically executed, I just want the 
found command inserted to the command line being visible so I can 
manually modify it before choosing to execute it.

I could not find any info in csh(1) about auto exec or how to stop it. 
Hoping someone who uses this csh function could help me out.

Thanks



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?580E2B4F.4000003>