Bug 251823

Summary: x11/xfce4-terminal does not want to start a login shell
Product: Ports & Packages Reporter: Per Gunnarsson <per>
Component: Individual Port(s)Assignee: freebsd-xfce (Nobody) <xfce>
Status: Closed Feedback Timeout    
Severity: Affects Only Me CC: madpilot
Priority: --- Flags: madpilot: maintainer-feedback+
Version: Latest   
Hardware: amd64   
OS: Any   
Attachments:
Description Flags
shell configuration file,
none
bash_profile.
none
bashrc none

Description Per Gunnarsson 2020-12-13 21:03:20 UTC
Maybe there is some daisy chaining in my ~/.bashrc and my ~/.bash_profile, but they worked until recently.

Link to movie with the behavious:

https://mustafejen.se/~per/video/oddshell.mkv

Using bash -l changes nothing in xfce4-terminal, but a regular xterm seems to go back to what I consider normal after typing bash -l.
Comment 1 Guido Falsi freebsd_committer freebsd_triage 2020-12-15 17:21:45 UTC
This is a strange thing. Not easy to debug.

My first guess is you're doing some ansi/terminal sequence magic in you bash configuration that confuses terminals and in some way confuses xfce terminal more than xterm.

Anyway it does confuse xterm too, the "bash -l" trick is just a< workaround that happens to work there.

I'm not sure I can help you much, because I'm no terminal sequence expert and don't know much about bash peculiarities.

Could you share your bashrc and profile? Without looking at what they are doing it's difficult to guess what the problem is.

Also "working till recently" does not help much. bash has got a few updates recently too. It can't be ruled out an update to bash is the cause of the issue appearing.
Comment 2 Per Gunnarsson 2020-12-15 21:31:58 UTC
Created attachment 220593 [details]
shell configuration file,

my .profile
Comment 3 Per Gunnarsson 2020-12-15 21:32:55 UTC
Created attachment 220594 [details]
bash_profile.
Comment 4 Per Gunnarsson 2020-12-15 21:34:41 UTC
Created attachment 220595 [details]
bashrc
Comment 5 Per Gunnarsson 2020-12-15 21:39:45 UTC
(In reply to Guido Falsi from comment #1)

I removed a lot of things from my  ~/.bash_profile and ~/.bashrc, now things work as expected. Still I attach the unmodified bad examples.
Comment 6 Guido Falsi freebsd_committer freebsd_triage 2021-02-14 20:51:55 UTC
Can this issue be closed?

While there may be a bug crawling around, it could also be an error in these, relatively complicated, configuration files.

To really assert this as an upstream bug a simple use case would be required.
Comment 7 Guido Falsi freebsd_committer freebsd_triage 2021-06-03 15:43:15 UTC
issue cannot be reproduced or easily diagnosed, and there has been no feedback for months.