From: Tony Finch <dot@dotat.at>
To: "Michael Kjörling" <michael@kjorling.se>
Cc: tuhs@minnie.tuhs.org
Subject: Re: [TUHS] Origins of shell prompt suffixes % $ > #
Date: Tue, 7 Aug 2018 11:45:37 +0100 [thread overview]
Message-ID: <alpine.DEB.2.20.1808071137420.3596@grey.csi.cam.ac.uk> (raw)
In-Reply-To: <20180807080256.lgqaevcah2a7sn2t@h-174-65.A328.priv.bahnhof.se>
[-- Attachment #1: Type: text/plain, Size: 864 bytes --]
Michael Kjörling <michael@kjorling.se> wrote:
>
> I suspect I must stand corrected on this. Turns out that at least GNU
> bash 4.4.12(1) seems to not like a `;` at the beginning of the command
> line.
This is a consequence of the POSIX shell grammar, which doesn't allow
empty commands.
http://pubs.opengroup.org/onlinepubs/9699919799.2013edition/utilities/V3_chap02.html#tag_18_10
The prompt I have used since about 1997 (and I can't remember where I got
it from - somewhere on Usenet, probably) in its most distilled form is
:;
although in practice I have a load of extra fluff for username, hostname,
CWD, etc. usw.
Tony.
--
f.anthony.n.finch <dot@dotat.at> http://dotat.at/
Fair Isle, Faeroes: South or southwest 4 or 5, occasionally 6 for a time.
Slight or moderate, occasionally rough for a time. Showers. Moderate or good.
next prev parent reply other threads:[~2018-08-07 11:01 UTC|newest]
Thread overview: 32+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-08-06 20:53 Brian Zick
2018-08-06 21:16 ` ron
2018-08-06 21:33 ` Henry Bent
2018-08-07 1:10 ` George Michaelson
2018-08-07 1:12 ` ron
2018-08-07 1:10 ` ron
2018-08-07 6:54 ` Michael Kjörling
2018-08-07 8:02 ` Michael Kjörling
2018-08-07 8:23 ` Dave Horsfall
2018-08-07 8:37 ` KatolaZ
2018-08-07 10:45 ` Tony Finch [this message]
2018-08-07 17:35 ` Lyndon Nerenberg
2018-08-08 14:38 ` Nemo
2018-08-08 14:51 ` Clem Cole
2018-08-07 11:24 ` Pete Turnbull
2018-08-08 19:55 ` Derek Fawcus
2018-08-07 7:31 ` Kurt H Maier
2018-08-07 7:50 ` arnold
2018-08-07 7:57 ` Bakul Shah
2018-08-07 15:15 ` Brian Zick
2018-08-07 15:52 ` John P. Linderman
2018-08-07 18:09 ` Cág
2018-08-07 18:51 ` arnold
2018-08-07 19:00 ` Cág
2018-08-07 19:06 ` Brian Zick
2018-08-07 12:34 Doug McIlroy
2018-08-08 15:20 Noel Chiappa
2018-08-08 16:01 ` Gilles Gravier
2018-08-08 20:29 ` ron
2018-08-08 20:30 ` Clem Cole
2018-08-08 20:51 ` Warner Losh
2018-08-09 2:50 ` William Corcoran
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=alpine.DEB.2.20.1808071137420.3596@grey.csi.cam.ac.uk \
--to=dot@dotat.at \
--cc=michael@kjorling.se \
--cc=tuhs@minnie.tuhs.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;
as well as URLs for NNTP newsgroup(s).