From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5355 invoked from network); 20 Jul 1997 04:27:37 -0000 Received: from euclid.skiles.gatech.edu (list@130.207.146.50) by ns1.primenet.com.au with SMTP; 20 Jul 1997 04:27:37 -0000 Received: (from list@localhost) by euclid.skiles.gatech.edu (8.7.3/8.7.3) id AAA01512; Sun, 20 Jul 1997 00:03:32 -0400 (EDT) Resent-Date: Sun, 20 Jul 1997 00:03:15 -0400 (EDT) From: "Bart Schaefer" Message-Id: <970719210256.ZM1345@candle.brasslantern.com> Date: Sat, 19 Jul 1997 21:02:56 -0700 In-Reply-To: <19970719215133.24332@panix.com> Comments: In reply to Russell Hoover "Can I put a newline in an alias?" (Jul 19, 9:51pm) References: <19970719215133.24332@panix.com> X-Mailer: Z-Mail (4.0b.820 20aug96) To: Russell Hoover , Zsh-users Subject: Re: Can I put a newline in an alias? MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Resent-Message-ID: <"1Ntpf.0.6N.2uOqp"@euclid> Resent-From: zsh-users@math.gatech.edu X-Mailing-List: archive/latest/956 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 Jul 19, 9:51pm, Russell Hoover wrote: } Subject: Can I put a newline in an alias? } } This is a pretty basic question, but i tried using \n and ^M to put a } newline, or carraige return, into an alias, and neither worked. } } How is this done? Or is it? Also how can i put a 'control-whatever' } sequence into an alias? zsh% alias this_has_a_newline='echo this quote> echo has a newline' zsh% this_has_a_newline this has a newline Same thing should work for any control sequence; just put it in quotes. 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 ... -- Bart Schaefer Brass Lantern Enterprises http://www.well.com/user/barts http://www.brasslantern.com