Re: How do you set $PS1 on /bin/ksh

2020-01-24 Thread Andreas Kusalananda Kähäri
On Fri, Jan 24, 2020 at 07:05:29PM +, Ottavio Caruso wrote: > On Fri, 24 Jan 2020 at 18:57, Robert Elz wrote: > > > > There are a zillion different things called ksh, I'm not > > sure which version OpenBSD have as ksh > > Strangely enough, both OSes report exactly the same version: > > KSH_V

Re: How do you set $PS1 on /bin/ksh

2020-01-24 Thread Ottavio Caruso
On Fri, 24 Jan 2020 at 16:34, Kamil Rytarowski wrote: > > On 24.01.2020 14:19, Ottavio Caruso wrote: > > Hi, > > > > [hoping my post doesn't arrive duplicated or triplicated] > > > > How do you set the prompt in ksh? The man page doesn't seem to help. > > OpenBSD ksh has a different manpage. Compa

Re: How do you set $PS1 on /bin/ksh

2020-01-24 Thread Ottavio Caruso
On Fri, 24 Jan 2020 at 18:57, Robert Elz wrote: > > There are a zillion different things called ksh, I'm not > sure which version OpenBSD have as ksh Strangely enough, both OSes report exactly the same version: KSH_VERSION='@(#)PD KSH v5.2.14 99/07/13.2' -- Ottavio Caruso

Re: How do you set $PS1 on /bin/ksh

2020-01-24 Thread Robert Elz
Date:Fri, 24 Jan 2020 13:19:39 + From:Ottavio Caruso Message-ID: | How do you set the prompt in ksh? The same way one would set it in any other Bourne shell (more or less) compatible shell, PS1='whatever' | The man page doesn't seem to help. It looks reas

Re: How do you set $PS1 on /bin/ksh

2020-01-24 Thread Kamil Rytarowski
On 24.01.2020 14:19, Ottavio Caruso wrote: > Hi, > > [hoping my post doesn't arrive duplicated or triplicated] > > How do you set the prompt in ksh? The man page doesn't seem to help. > OpenBSD ksh has a different manpage. Compare: > https://man.openbsd.org/ksh.1#PS1 > and > https://netbsd.gw.com

Re: How do you set $PS1 on /bin/ksh

2020-01-24 Thread Steffen Nurpmeso
Ottavio Caruso wrote in : |Hi, | |[hoping my post doesn't arrive duplicated or triplicated] | |How do you set the prompt in ksh? The man page doesn't seem to help. |OpenBSD ksh has a different manpage. Compare: |https://man.openbsd.org/ksh.1#PS1 |and |https://netbsd.gw.com/cgi-bin/man-cgi?

Re: How do you set $PS1 on /bin/ksh

2020-01-24 Thread Pedro Pinho
Here's mine, # .shrc file for sh(1). ll(){ ls -l ${1+"$@"}; } case "$-" in *i*) if /bin/test -z "${HOST}"; then HOST="$(hostname)" fi PS1="${USER}@${HOST%%.*} $PS1" set -o emacs ;; esac Den fre 24 jan. 2020 17:30Ottavio Caruso skrev: > Hi, > > [hoping my post doesn't arrive duplicated or tripli

How do you set $PS1 on /bin/ksh

2020-01-24 Thread Ottavio Caruso
Hi, [hoping my post doesn't arrive duplicated or triplicated] How do you set the prompt in ksh? The man page doesn't seem to help. OpenBSD ksh has a different manpage. Compare: https://man.openbsd.org/ksh.1#PS1 and https://netbsd.gw.com/cgi-bin/man-cgi?ksh For example: PS1="\u@\h:\w\$ " is not