Bug#397073: konsole: not reading ~/.bashrc
On Mon November 13 2006 17:27, Clint Adams wrote:
> > > An interactive shell is one started without non-option
> > > arguments and without the -c option whose standard input and
> > > error are both connected to terminals (as determined by
> > > isatty(3)), or one started with the -i option. PS1 is set and $-
> > > includes i if bash is interactive, allowing a shell script or a
> > > startup file to test this state.
> >
> > Perhaps the underlying bug is that konsole is not properly
> > identifying itself as a terminal.
>
> The underlying bug is either that you want konsole to exec 'bash -i
> -c whatever' or that you expect bash to behave differently can it
> does.
That is not correct; Konsole is for interactive use so -i should not be
necessary. Furthermore...
help:/konsole/sessions.html, point 4. clearly states:
"Enter a command just as you normally would if you opened a new shell
and were going to issue that command."
However, that is not what is happening as the attached diff of GIT
started from a Konsole commandline and as a KonsoleApplication shows.
help:/konsole/menubar.html has a note which says...
"See the file README.linux.console in the Konsole source package for
detailed information on how the Linux® console differs from a typical
UNIX® console."
...and help:/konsole/introduction.html contains...
"Konsole is what is known as an X terminal emulator, often referred to
as a terminal or a shell. It gives you the equivalent of an
old-fashioned text screen on your desktop, but one which can easily
share the screen with your graphical applications."
...yet there is nothing in README.linux.console which indicates such a
significant departure from standard x-terminal behaviour, and the
README simply states: "Konsole is an X terminal emulation."
Clearly, it would be a bug if bash was used on an "old-fashioned text
screen" and it didn't read .bashrc... so why is it OK for Konsole to
not make sure bash is started in a like manner?
- Bruce
--- env.cmdline 2006-11-13 17:43:57.691322496 -0700
+++ env.session 2006-11-13 17:43:28.446396194 -0700
@@ -1,22 +1,18 @@
-LESSOPEN=| /usr/bin/lesspipe %s
KDE_FULL_SESSION=true
-MINICOM=-c on
GS_LIB=/home/bsass/.fonts
DM_CONTROL=/var/run/xdmctl
GIT_SHELL=/bin/bash
LANGUAGE=en_CA:en_US:en_GB:en
-KONSOLE_DCOP_SESSION=DCOPRef(konsole-28686,session-1)
+KONSOLE_DCOP_SESSION=DCOPRef(konsole-28686,session-2)
USER=bsass
-GIT_EDITOR=jed
+GIT_EDITOR=sensible-editor
SSH_AGENT_PID=1821
SHLVL=1
HOME=/home/bsass
XDM_MANAGED=/var/run/xdmctl/xdmctl-:0,maysd,mayfn,sched,rsvd,method=classic
DESKTOP_SESSION=kde
-PAGER=less
GTK_RC_FILES=/etc/gtk/gtkrc:/home/bsass/.gtkrc:/home/bsass/.kde/share/config/gtkrc
DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-K3fvdVLN8B,guid=673558459f7175b0e4354a51639d5400
-VISUAL=kate
COLORTERM=
LOGNAME=bsass
_=/usr/bin/gitfm
@@ -30,15 +26,11 @@
XCURSOR_THEME=Chameleon-DarkSkyBlue-Regular
KONSOLE_DCOP=DCOPRef(konsole-28686,konsole)
DISPLAY=:0.0
-LS_COLORS=no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:su=37;41:sg=30;43:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.gz=01;31:*.bz2=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.avi=01;35:*.fli=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.flac=01;35:*.mp3=01;35:*.mpc=01;35:*.ogg=01;35:*.wav=01;35:
SSH_AUTH_SOCK=/tmp/ssh-jsYQNr1776/agent.1776
GIT_VMSTAT=free
SHELL=/bin/bash
-LESSCLOSE=/usr/bin/lesspipe %s %s
KDE_MULTIHEAD=false
-GIT_PAGER=less
-PWD=/home/bsass
-PRINTER=lj5n
+GIT_PAGER=sensible-pager
+PWD=/usr/src/kdebase-3.5.5a.dfsg.1/konsole
LINES=49
GIT_RMAIL=mail
-EDITOR=jed
Reply to: