zsh-users
 help / color / mirror / code / Atom feed
From: "Bart Schaefer" <schaefer@brasslantern.com>
To: Russell Hoover <rusty@panix.com>, Zsh-users <zsh-users@math.gatech.edu>
Subject: Re: Can I put a newline in an alias?
Date: Sat, 19 Jul 1997 21:02:56 -0700	[thread overview]
Message-ID: <970719210256.ZM1345@candle.brasslantern.com> (raw)
In-Reply-To: <19970719215133.24332@panix.com>

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


  reply	other threads:[~1997-07-20  4:27 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-07-20  1:51 Russell Hoover
1997-07-20  4:02 ` Bart Schaefer [this message]
1997-07-20 15:41   ` Russell Hoover
1997-07-20 17:07     ` Bart Schaefer
1997-07-22 20:42       ` Russell Hoover
1997-07-22 22:39         ` Bart Schaefer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=970719210256.ZM1345@candle.brasslantern.com \
    --to=schaefer@brasslantern.com \
    --cc=rusty@panix.com \
    --cc=zsh-users@math.gatech.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).