GNU bug report logs -
#32801
[macOS] (shell-command-to-string command) discrepancy in GUI vs terminal
Previous Next
Reported by: Jayesh Bhat <jayeshbhat55 <at> gmail.com>
Date: Sat, 22 Sep 2018 01:22:02 UTC
Severity: normal
Tags: notabug
Found in version 26.1
Done: Stefan Kangas <stefan <at> marxist.se>
Bug is archived. No further changes may be made.
Full log
Message #15 received at 32801 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
It seems like that. My only reason to fire up Emacs from the Terminal was
to pass command-line arguments like --debug-init but since I use Spacemacs
this is builtin via the restart-emacs package. However, I didn't dig in
much to see how command-line arguments are passed through GUI restart.
https://github.com/iqbalansari/restart-emacs
Best wishes,
Jayesh
On Sat, 22 Sep 2018 at 08:36, Eli Zaretskii <eliz <at> gnu.org> wrote:
> > From: Jayesh Bhat <jayeshbhat55 <at> gmail.com>
> > Date: Sat, 22 Sep 2018 02:53:25 +0200
> >
> > 3a. Open emacs from Terminal
> >
> > # open -n /Applications/Emacs.app --args -q
> >
> > M-x ielm
> >
> > *** Welcome to IELM *** Type (describe-mode) for help.
> > ELISP> (shell-command-to-string "pwd")
> > " ]7;file://JayeshMacBook.local/Users/jayesh /Users/jayesh\n"
> >
> > 3b. Open /Applications/Emacs.app via double click on GUI icon
> >
> > - M-x ielm
> >
> > *** Welcome to IELM *** Type (describe-mode) for help.
> > ELISP> (shell-command-to-string "pwd")
> > "/Users/jayesh\n"
>
> AFAIU, that's how macOS apps behave in terminal and in GUI mode.
> Emacs just reflects the truth.
>
> But I'll let macOS experts chime in.
>
[Message part 2 (text/html, inline)]
This bug report was last modified 4 years and 342 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.