GNU bug report logs -
#45357
[PATCH] * lisp/man.el (Man-getpage-in-background): always use shell-file-name
Previous Next
Reported by: Nika Otiashvili <nikaoto <at> gmail.com>
Date: Mon, 21 Dec 2020 20:42:02 UTC
Severity: normal
Tags: notabug, patch
Done: Michael Albinus <michael.albinus <at> gmx.de>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 45357 in the body.
You can then email your comments to 45357 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#45357
; Package
emacs
.
(Mon, 21 Dec 2020 20:42:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Nika Otiashvili <nikaoto <at> gmail.com>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Mon, 21 Dec 2020 20:42:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Hello,
First time sending a patch to bug-gnu-emacs, not sure if this is the
correct format.
Please indicate any errors I made in my formatting of the email or the
attached patch file.
Regards,
Nika Otiashvili
[0001-lisp-man.el-Man-getpage-in-background-always-use-she.patch (text/x-patch, attachment)]
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#45357
; Package
emacs
.
(Tue, 22 Dec 2020 15:15:01 GMT)
Full text and
rfc822 format available.
Message #8 received at 45357 <at> debbugs.gnu.org (full text, mbox):
> From: Nika Otiashvili <nikaoto <at> gmail.com>
> Date: Mon, 21 Dec 2020 23:24:13 +0400
>
> First time sending a patch to bug-gnu-emacs, not sure if this is the
> correct format.
> Please indicate any errors I made in my formatting of the email or the
> attached patch file.
In terms of formatting the patch, I see no problems with your
submission.
My problem is more a conceptual one: it is not trivial to replace
/bin/sh with any other shell, because they work differently. The
command in question builds a complex shell command to run, and it
isn't obvious that any user shell will be able to run it.
OTOH, every Posix system I know about does have /bin/sh, so I'm
curious what kind of system did you see where /bin/sh is absent.
And finally, I don't think I understand the issue with .bashrc etc.:
if you launch /bin/sh, it is not supposed to process these init files,
they are processed by bash, zsh, and other shells.
Could you please elaborate on the specific problems you had and tell
more about your system configuration where you bumped into these
problems?
Thanks.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#45357
; Package
emacs
.
(Tue, 22 Dec 2020 18:51:02 GMT)
Full text and
rfc822 format available.
Message #11 received at 45357 <at> debbugs.gnu.org (full text, mbox):
Eli Zaretskii <eliz <at> gnu.org> writes:
Hi,
> My problem is more a conceptual one: it is not trivial to replace
> /bin/sh with any other shell, because they work differently. The
> command in question builds a complex shell command to run, and it
> isn't obvious that any user shell will be able to run it.
That's true. But we could require that shell-file-name points to a Posix
shell, if used in man.el.
Btw, if we were to change man.el, I'd rather propose to use
start-process-shell-command, instead of composing the command manually.
> Could you please elaborate on the specific problems you had and tell
> more about your system configuration where you bumped into these
> problems?
This question still stands, yes.
> Thanks.
Best regards, Michael.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#45357
; Package
emacs
.
(Wed, 23 Dec 2020 00:57:02 GMT)
Full text and
rfc822 format available.
Message #14 received at 45357 <at> debbugs.gnu.org (full text, mbox):
Hello,
Thanks for looking at the patch, Eli.
Regarding the rc files, it seems there was an error on my part.
I have (setq shell-command-switch "-cl") in my .emacs. The "-l" flag
runs sh as a login shell, thus it loads my .profile. From there I source my
.bashrc. Since I have bashisms in my .bashrc, sh simply sees them
as syntax errors and exits. I should have inserted a check of $0 inside my
.profile to prevent this.
> OTOH, every Posix system I know about does have /bin/sh, so I'm
> curious what kind of system did you see where /bin/sh is absent.
Initially, I thought Windows users wouldn't have /bin/sh, but the cygwin
and windows-nt checks I removed accounted for that and used
shell-file-name instead of sh.
So, I've concluded that the first two reasons described in my patch
are irrelevant and the last one is indeed very weak. I believe my
patch would not benefit anyone and it only solves a specific problem I
had with my
configuration.
Regards,
Nika Otiashvili
On Tue, Dec 22, 2020 at 10:50 PM Michael Albinus <michael.albinus <at> gmx.de> wrote:
>
> Eli Zaretskii <eliz <at> gnu.org> writes:
>
> Hi,
>
> > My problem is more a conceptual one: it is not trivial to replace
> > /bin/sh with any other shell, because they work differently. The
> > command in question builds a complex shell command to run, and it
> > isn't obvious that any user shell will be able to run it.
>
> That's true. But we could require that shell-file-name points to a Posix
> shell, if used in man.el.
>
> Btw, if we were to change man.el, I'd rather propose to use
> start-process-shell-command, instead of composing the command manually.
>
> > Could you please elaborate on the specific problems you had and tell
> > more about your system configuration where you bumped into these
> > problems?
>
> This question still stands, yes.
>
> > Thanks.
>
> Best regards, Michael.
Added tag(s) notabug.
Request was from
Michael Albinus <michael.albinus <at> gmx.de>
to
control <at> debbugs.gnu.org
.
(Wed, 23 Dec 2020 08:19:01 GMT)
Full text and
rfc822 format available.
Reply sent
to
Michael Albinus <michael.albinus <at> gmx.de>
:
You have taken responsibility.
(Wed, 23 Dec 2020 08:19:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
Nika Otiashvili <nikaoto <at> gmail.com>
:
bug acknowledged by developer.
(Wed, 23 Dec 2020 08:19:02 GMT)
Full text and
rfc822 format available.
Message #21 received at 45357-done <at> debbugs.gnu.org (full text, mbox):
Nika Otiashvili <nikaoto <at> gmail.com> writes:
> Hello,
Hi,
> So, I've concluded that the first two reasons described in my patch
> are irrelevant and the last one is indeed very weak. I believe my
> patch would not benefit anyone and it only solves a specific problem I
> had with my
> configuration.
Closing the bug.
> Regards,
> Nika Otiashvili
Best regards, Michael.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Wed, 20 Jan 2021 12:24:06 GMT)
Full text and
rfc822 format available.
This bug report was last modified 4 years and 208 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.