From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16560 invoked from network); 20 Jul 1997 16:00:41 -0000 Received: from euclid.skiles.gatech.edu (list@130.207.146.50) by ns1.primenet.com.au with SMTP; 20 Jul 1997 16:00:41 -0000 Received: (from list@localhost) by euclid.skiles.gatech.edu (8.7.3/8.7.3) id LAA04629; Sun, 20 Jul 1997 11:41:11 -0400 (EDT) Resent-Date: Sun, 20 Jul 1997 11:40:44 -0400 (EDT) Message-ID: <19970720114142.29384@panix.com> Date: Sun, 20 Jul 1997 11:41:42 -0400 From: Russell Hoover To: Zsh-users Subject: Re: Can I put a newline in an alias? References: <19970719215133.24332@panix.com> <970719210256.ZM1345@candle.brasslantern.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.74 In-Reply-To: <970719210256.ZM1345@candle.brasslantern.com>; from Bart Schaefer on Sat 07/19/97 at 09:02 PM -0700 X-Loop: rusty@panix.com Resent-Message-ID: <"0QtFJ3.0.m71.x5Zqp"@euclid> Resent-From: zsh-users@math.gatech.edu X-Mailing-List: archive/latest/957 X-Loop: zsh-users@math.gatech.edu X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu On Sat 07/19/97 at 09:02 PM -0700, Bart Schaefer wrote: > zsh% alias this_has_a_newline='echo this > quote> echo has a newline' > zsh% this_has_a_newline > this > has a newline Thanks. This works fine -- all I wanted was to be able to do something like hit 'c ' to clear the screen and have a filenames-only listing of the current dir at the top of the screen. > Same thing should work for any control sequence; just put it in quotes. I was wondering more about what chars you'd use within an alias to represent 'control-' > Notice that in the sample above the newline was taken as a command > separator. That's probably not what you mean, but since you didn't > say why you want to include a newline or control ... Well, it serves the purpose. If there's a better way, I'd be glad to hear that, too. -- // rusty@panix.com // Intelligent people laugh quickly and smile slowly. -- Malcolm de Chazal Sens-Plastique