reopen 364319 !
thanks

| > Package: base-files
| > Version: 3.1.12
| > Severity: normal
| > Tags: patch
| > 
| > When a ksh shell is invoked, it reads /etc/profile. However there is no
| > setting of PS1 for ksh shells, only for bash:
| 
| This is not true. The following code works when the shell is not bash:
|
| >      if [ "`id -u`" -eq 0 ]; then
| >        PS1='# '
| >      else
| >        PS1='$ '
| >      fi
| > A better /etc/profile for Debian's ksh, pdksh and mksh compatible
| > setting is presented below.
| 
| Sure, but that would make /etc/profile more bloated, which I consider
| a bad thing, not to mention there will never be a prompt shell to
| satisfy everybody.

It is incorreect to close a bug report by mere a opinion. 

There is clear bug in the base-files:

- It set's the BASH prompt to reasonable default
- BUT, It does not handle *ksh shells simlilarly at all

The one that you point point out above is code that is
used as a fallback to set PS1, when the shell (dash, posh ...)
does not support any good PS1 setting. 
 
| Thanks for the suggestion, but for a shell which is not the default
| shell, and it's not even installed by default, I think it is better
| that you change /etc/profile to suit your needs, which do not have to
| match everybody else's neeeds.

Ksh is widely recognized shell. 

The Debian base-files is installed to every system. With this logic
every people on earth who happens to download and install a *ksh shell
would need to much around with the /etc/profile, not to count that
that all are not necessarily administrators.

The system should have reasonable default right from installation.
Right now it is not the case for *ksh shella.

The change proposed is very small, efective and provides prompt that
serves the default setting better.

How can

    PS1='$ '

be any substitute for standard "de facto" prompt, that can show a path
name?

If there is default for bash, which people are accustomed to be seeing, 
I can't see how an argument "suit your needs, which do not have to
 match everybody else's neeeds" can hold water. 

The *ksh setting matches that of the current bash's setting.

I propose that this matter is discussed in more wider audience before
resolution and marking it to closed. Please suggest correct forum to
bring this issue forward if this change cannot be applied.

Jari


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to