The Unix Heritage Society mailing list
 help / color / mirror / Atom feed
* Re: [TUHS] Origins of shell prompt suffixes % $ > #
@ 2018-08-08 15:20 Noel Chiappa
  2018-08-08 16:01 ` Gilles Gravier
  0 siblings, 1 reply; 32+ messages in thread
From: Noel Chiappa @ 2018-08-08 15:20 UTC (permalink / raw)
  To: tuhs; +Cc: jnc

    > From: Nemo

    > I will, no doubt, be flayed on this list but I tend to use "=>".

Hey, if it works for you, go for it.

After the Nth time I got confused as to exactly which machine I was
typing to, I hacked the shell on my V6 Unix to read its prompt from
".profile". (Very clean, only one added line of code in the existing
code.)

	Noel

^ permalink raw reply	[flat|nested] 32+ messages in thread
* Re: [TUHS] Origins of shell prompt suffixes % $ > #
@ 2018-08-07 12:34 Doug McIlroy
  0 siblings, 0 replies; 32+ messages in thread
From: Doug McIlroy @ 2018-08-07 12:34 UTC (permalink / raw)
  To: tuhs

> The Bourne shell (V7) had setable PS1 (start of command) and PS2 (continuation prompts)

When PS2 came on the scene, Bob Morris noticed that it most often appeared
because of a missing close quote. Therefore he set PS2="hit interrupt".

^ permalink raw reply	[flat|nested] 32+ messages in thread
* [TUHS] Origins of shell prompt suffixes % $ > #
@ 2018-08-06 20:53 Brian Zick
  2018-08-06 21:16 ` ron
                   ` (2 more replies)
  0 siblings, 3 replies; 32+ messages in thread
From: Brian Zick @ 2018-08-06 20:53 UTC (permalink / raw)
  To: tuhs

Hi,

I usually just lurk on this list, but I've been curious lately about the origin of the symbols at the end of various interactive prompts.

ksh (etc), bash, sh use $ for non-root, and # for root

csh, tcsh and zsh use % for non-root and # for root

fish and things like mysql, ftp, and interactive shells for a lot of scripting languages use >

rc uses ;

Where do these different conventions originate?

B

^ permalink raw reply	[flat|nested] 32+ messages in thread

end of thread, other threads:[~2018-08-09  3:06 UTC | newest]

Thread overview: 32+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-08-08 15:20 [TUHS] Origins of shell prompt suffixes % $ > # 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
  -- strict thread matches above, loose matches on Subject: below --
2018-08-07 12:34 Doug McIlroy
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
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

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).