[TUHS] Origins of shell prompt suffixes % $ > #

Derek Fawcus dfawcus+lists-tuhs at employees.org
Thu Aug 9 05:55:26 AEST 2018


On Tue, Aug 07, 2018 at 08:02:56AM +0000, Michael Kjörling 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.

I can't recall where I got this from, but I tend to use the following
on bourne style shells; bash (and others) seem happy with it for copy/paste:

h=copper$; tty
/dev/pts/0
h=copper$; h=copper$; tty
/dev/pts/0

h=copper#; tty
/dev/pts/0
h=copper#; h=copper#; tty
/dev/pts/0

'copper' being the hostname, $/# as per usual.

DF



More information about the TUHS mailing list