You are not logged in.

#1 2017-09-09 01:36:58

dominique71
Member
Registered: 2017-09-09
Posts: 2

[solved] 'shopt login_shell' inconsistency between terminal emulators

Hi all !

This is my first thread here. I get a strange issue with 'shopt login_shell'.

This is into a newly installed system running fvwm-crystal.

With rxvt-unicode:

$ shopt login_shell
login_shell    	on

With Xfce4-terminal:

$ shopt login_shell
login_shell    	off

Different config files:

$ cat .xinitrc
if [ -d /etc/X11/xinit/xinitrc.d ] ; then
  for f in /etc/X11/xinit/xinitrc.d/?*.sh ; do
    [ -x "$f" ] && . "$f"
  done
  unset f
fi

exec fvwm-crystal
$ cat .bash_profile
#
# ~/.bash_profile
#

[[ -f ~/.bashrc ]] && . ~/.bashrc
$ cat .bashrc
#
# ~/.bashrc
#

# If not running interactively, don't do anything
[[ $- != *i* ]] && return

alias ls='ls --color=auto'
PS1='[\u@\h \W]\$ '

And I just type "startx" in order to run fvwm-crystal.

What can I do in order to get off with both terminal emulators?

Last edited by dominique71 (2017-09-09 10:40:33)

Offline

#2 2017-09-09 01:46:58

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,545
Website

Re: [solved] 'shopt login_shell' inconsistency between terminal emulators

That option is off by default in urxvt.  You must have turned it on either via a command line parameter whenever / wherever you launch urxvt, or via Xresources.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#3 2017-09-09 10:39:54

dominique71
Member
Registered: 2017-09-09
Posts: 2

Re: [solved] 'shopt login_shell' inconsistency between terminal emulators

In .Xdefaults, it was several lines like

Rxvt*loginShell: true

I commented them and that issue is gone. Thank you!

Offline

Board footer

Powered by FluxBB