Thank you for your reply, Roberth > The default prompt is `$ ' for non-root users, `# ' for root. > If ksh is invoked by root and PS1 does not contain a `#' > character, the default value will be used even if PS1 already > exists in the environment.
But isn't PS1 supposed to alter the (default) prompt? It does so for non-root users (even if the new PS1 doesn't contain '$'), and also in other POSIX-compliant shells.