Summary: | konsole doesn't honor PS1 shell variable in non-bash shells | ||
---|---|---|---|
Product: | [Applications] konsole | Reporter: | sombragris |
Component: | general | Assignee: | Konsole Developer <konsole-devel> |
Status: | RESOLVED WORKSFORME | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Slackware | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
sombragris
2004-01-27 13:51:34 UTC
Konsoel as a terminal emulator has nothing to do with a shell prompt or your shell initialization problems. I respectfully request you to consider this bug as valid. I understand this should be a konsole-related bug since this behavior was not present in KDE 3.1x. It only appeared in 3.2 as far as I can tell. That, and only that, was the reason why I reported this as a Konsole bug. Thanks, Eduardo Sánchez Asunción, Paraguay, South America Member of the KDE-ES Spanish translation team You must have changed something in your shell configuration, (perhaps you are not using a 'login' shell?) but whether you get your prompt from PS1 or you get $ has nothing to do with konsole. Konsole just prints out what the shell program outputs. as explained by the second one now Sorry to bother you again with this issue. I have new information. In short: Konsole appears to ignore system-wide settings, honoring only settings made in the user's home directory. How to reproduce: 1. I made a fresh install of slackware 9.1 with the stock kde 3.1.4 in a test system. I created some user accounts. After that, I modified the systemwide /etc/profile file to change the default *bash* prompt to PS1='[\u: \w] \$ ' and konsole recognized the change. Now every prompt for every user was accepted. 2. After that I upgraded to KDE 3.2rc1 and now konsole no logner honors the PS1 variable even in bash. The only way to provide a customized shell prompt is to write something in the home directory of each user. AFAIK there's no way to provide system-wide settings. I can provide screenshots if requested. Thanks, Eduardo in ~/bashrc insert: export PS1="[\u@\h \w]\$ " this work fine! ;-) Sergio, thanks for your pointer. Please keep in mind the paragraph marked as #2 in my previous posting... I knew it. This is not the issue at hand here. What I am reporting here is that there used to be a certain behavior in konsole, which is no longer the case. Konsole used to honor $PS1 as a *system-wide* default in /etc/profile. Now it doesn't. regards, Eduardo How do you start konsole? I usually start it from the mini CLI, typing 'konsole'. Regards, Eduardo Try "konsole --ls". Stephan, thanks! this solves the issue for all practical purposes. I will create an alias for konsole that says 'konsole --ls'. Now, I wonder if this was the default behavior in versions previous to 3.2 and now it was changed to a cmdline switch? Anyway, thank you very much for the help regarding this issue! Eduardo |