screen manpage has misleading bash example (patch incl)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
screen (Ubuntu) |
Fix Released
|
Low
|
Axel Beckert |
Bug Description
The screen(1) page in version 4.09.00 describes the 'shell' command/option ending with
[...] If the command begins with a '-' character, the shell
will be started as a login-shell. Typical shells do only
minimal initialization when not started as a login-shell.
E.g. Bash will not read your ~/.bashrc unless it is a login-shell.
This is incorrect and misleading. According to the bash(1) page, it only looks for ~/.bash_profile (and similar files) for a login shell, but looks for ~/.bashrc when "an interactive shell that is not a login shell is started".
Obviously minor priority, but should be trivial to fix since it's just an example filename.
--- screen-
+++ screen-
@@ -3308,7 +3308,7 @@
execute the program specified in $SHELL.
If the command begins with a '\-' character, the shell will be started as a
login-shell. Typical shells do only minimal initialization when not started as a login-shell.
-E.g. Bash will not read your \*Q~/.bashrc\*U unless it is a login-shell.
+E.g. Bash will not read your \*Q~/.bash_
.RE
.TP
.B "shelltitle \fItitle\fP"
ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: screen 4.9.0-1
ProcVersionSign
Uname: Linux 5.15.0-1017-aws x86_64
ApportVersion: 2.20.11-0ubuntu82.1
Architecture: amd64
CasperMD5CheckR
Date: Wed Aug 17 16:07:30 2022
Ec2AMI: ami-02306cf196e
Ec2AMIManifest: (unknown)
Ec2Availability
Ec2InstanceType: t2.micro
Ec2Kernel: unavailable
Ec2Ramdisk: unavailable
ProcEnviron:
TERM=xterm-
PATH=(custom, no user)
XDG_RUNTIME_
LANG=C.UTF-8
SHELL=/bin/bash
SourcePackage: screen
UpgradeStatus: No upgrade log present (probably fresh install)
Changed in screen (Ubuntu): | |
status: | Confirmed → In Progress |
Hello and thanks for this bug report. I agree with your conclusions and your patch, however given that the bug is very minor and that the screen package in Ubuntu is currently a sync from Debian I think the right thing to do is to fix the manpage in Debian or (even better) upstream. I believe the screen project lives here:
https:/ /savannah. gnu.org/ projects/ screen/
could you resubmit this bug report (and your patch) there, and link it from here? As an alternative, could you file a bug against the Debian screen package? See:
https:/ /bugs.debian. org/cgi- bin/pkgreport. cgi?pkg= screen; dist=unstable
Thanks!