Description of problem: When I start an interactive shell (bash, sh, csh, etc.), it starts up with the less command. To start doing anything, I need to enter 'q' to terminate less. I found where it happens, namely in the sh and bash files in /usr/share/Modules/init/, specifically where they execute the command eval `${_mlre}/usr/bin/tclsh /usr/share/Modules/libexec/modulecmd.tcl sh autoinit` I have commented this out in my version, which necessitated a couple of other fixes, and all seems well now. Version-Release number of selected component (if applicable): not sure. started happening in last week. How reproducible: Always happens. Steps to Reproduce: 1. I think you need to log into a windowing system. Can be plasma or gnome, X Windows or Wayland. 2. Start up a terminal. The problem appears. Type 'q' to get out of less, and then start a new shell, either with bash, sh, csh, etc. The new shell shows the same problem. Enter 'q' to get out of less in the new shell. 3. Actual results: Described above. Expected results: The shell should start up with a command prompt, not in the less command. Additional info: THe bug report localizes the cause.
This could hardly be a bug of bash itself. (In reply to Kevin Donovan from comment #0) > I found where it happens, namely in the sh and bash files in > /usr/share/Modules/init/, specifically where they execute the command > eval `${_mlre}/usr/bin/tclsh /usr/share/Modules/libexec/modulecmd.tcl sh > autoinit` > > I have commented this out in my version, which necessitated a couple of > other fixes, and all seems well now. /usr/share/Modules/libexec/modulecmd.tcl belongs to environment-modules, to which I am switching the component of this bug for further investigation...
I downgraded to the previous version of environment-modules in rawhide (from koji), and the problem went away.
Workaround is adding following line to .bashrc: export MODULES_PAGER=
Does the workaround stop the automatic paging of output from journalctl and systemctl? It's easy enough to just add a pipe to less for those, but it is convenient to have it done automatically.
Paging of output from journalctl and systemctl wasn't disabled for me with this workaround.
Thanks! I'll give it a try.
Ok, that worked fine.
Next bugfix release (v4.1.1) should fix this issue.
This bug appears to have been reported against 'rawhide' during the Fedora 28 development cycle. Changing version to '28'.
This ticket could be closed as version 4.1.1 is available in rawhide and ready for f28.