public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Nico Verrijdt <nicoverrijdt@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] [A bit off-topic] Bash alias and &
Date: Sun, 12 Jun 2016 16:33:05 +0200	[thread overview]
Message-ID: <CA+uX=Hbgm7EmPj=w1bkjokVQNDqCkKbghaz-uHq-7DEMMnvrdA@mail.gmail.com> (raw)
In-Reply-To: <55ce9d76-0d0e-7529-38b4-950496cf9eb4@wht.com.au>

[-- Attachment #1: Type: text/plain, Size: 930 bytes --]

Hi Andrew,

2016-06-12 16:26 GMT+02:00 Andrew Lowe <agl@wht.com.au>:

> Hi all,
>         A bit off topic here, but there are plenty of people who seem to
> know their shells back to front so here goes.
>
>         I have set up a Win32 based development environment,
> bash/cc/ls/etc/etc, for 1st year Engineering students who have to learn C
> on a command line. It's fine for me to remember to put the & at the end of
> the command when I fire up the editor but for them, it's major angst.
>
>         The first thing that comes to mind is an alias. Just off the top
> of my head I tried:
>
>         alias "npp=npp %1 &"
>

Shouldn't this be: alias npp="npp %1 &"  ?


> npp being the editor, but that didn't work. Is an alias the best/easiest
> way to do this and if so, what would the syntax be, or is there a better
> way?
>
>         Any thoughts, greatly appreciated,
>
>                 Andrew
>
>
Hope this helps,
Nico

[-- Attachment #2: Type: text/html, Size: 1546 bytes --]

  reply	other threads:[~2016-06-12 14:33 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-06-12 14:26 [gentoo-user] [A bit off-topic] Bash alias and & Andrew Lowe
2016-06-12 14:33 ` Nico Verrijdt [this message]
2016-06-12 14:43   ` Alan McKinnon
2016-06-12 15:07     ` Andrew Lowe
2016-06-12 15:54       ` [SOLVED]Re: " Andrew Lowe
2016-06-12 19:06         ` [gentoo-user] Re: [SOLVED]Re: " Jonathan Callen
2016-06-13  6:59           ` [gentoo-user] " Andrew Lowe
2016-06-12 17:04       ` [gentoo-user] " Peter Humphrey
2016-06-12 18:07         ` Mick
2016-06-13  8:56           ` Peter Humphrey
2016-06-13  9:49 ` Joerg Schilling
2016-06-14  5:04   ` Adam Carter

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='CA+uX=Hbgm7EmPj=w1bkjokVQNDqCkKbghaz-uHq-7DEMMnvrdA@mail.gmail.com' \
    --to=nicoverrijdt@gmail.com \
    --cc=gentoo-user@lists.gentoo.org \
    /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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox