Gentoo Archives: gentoo-user

From: Joerg Schilling <Joerg.Schilling@××××××××××××××××.de>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] [A bit off-topic] Bash alias and &
Date: Mon, 13 Jun 2016 09:49:35
Message-Id: 575e819b.YsaGn3pcd06IMuAm%Joerg.Schilling@fokus.fraunhofer.de
In Reply to: [gentoo-user] [A bit off-topic] Bash alias and & by Andrew Lowe
1 Andrew Lowe <agl@×××××××.au> wrote:
2
3 > The first thing that comes to mind is an alias. Just off the top of my
4 > head I tried:
5 >
6 > alias "npp=npp %1 &"
7 >
8 > npp being the editor, but that didn't work. Is an alias the best/easiest
9 > way to do this and if so, what would the syntax be, or is there a better
10 > way?
11
12 Looks like something that will not work as %1 is not understood except by the
13 jobcontrol commands.
14
15 It may be an attempt to write a parameterizable alias....
16
17 AFAIK, bash does not support parameterized macros.
18
19 Jörg
20
21 --
22 EMail:joerg@××××××.net (home) Jörg Schilling D-13353 Berlin
23 joerg.schilling@××××××××××××××××.de (work) Blog: http://schily.blogspot.com/
24 URL: http://cdrecord.org/private/ http://sourceforge.net/projects/schilytools/files/'

Replies

Subject Author
Re: [gentoo-user] [A bit off-topic] Bash alias and & Adam Carter <adamcarter3@×××××.com>