From unknown Sat Aug 09 15:18:46 2025 X-Loop: help-debbugs@gnu.org Subject: bug#32801: 26.1; (shell-command-to-string command) discrepancy in GUI vs terminal Resent-From: Jayesh Bhat Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 22 Sep 2018 01:22:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 32801 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 32801@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.15375792927062 (code B ref -1); Sat, 22 Sep 2018 01:22:02 +0000 Received: (at submit) by debbugs.gnu.org; 22 Sep 2018 01:21:32 +0000 Received: from localhost ([127.0.0.1]:48584 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g3Wc0-0001pp-84 for submit@debbugs.gnu.org; Fri, 21 Sep 2018 21:21:32 -0400 Received: from eggs.gnu.org ([208.118.235.92]:42347) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g3WP1-0001R9-RT for submit@debbugs.gnu.org; Fri, 21 Sep 2018 21:08:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g3WOu-0007Kk-P6 for submit@debbugs.gnu.org; Fri, 21 Sep 2018 21:08:02 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: * X-Spam-Status: No, score=1.1 required=5.0 tests=BAYES_50, FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,HTML_MESSAGE,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:50538) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1g3WOu-0007KT-IL for submit@debbugs.gnu.org; Fri, 21 Sep 2018 21:08:00 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:35088) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g3WOt-00088X-2S for bug-gnu-emacs@gnu.org; Fri, 21 Sep 2018 21:08:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g3WBQ-00056H-0i for bug-gnu-emacs@gnu.org; Fri, 21 Sep 2018 20:54:05 -0400 Received: from mail-pg1-x52a.google.com ([2607:f8b0:4864:20::52a]:43378) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1g3WBP-000563-ND for bug-gnu-emacs@gnu.org; Fri, 21 Sep 2018 20:54:03 -0400 Received: by mail-pg1-x52a.google.com with SMTP id q19-v6so5895055pgn.10 for ; Fri, 21 Sep 2018 17:54:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=rktYGc5rfpcerCmOR6qwinlYGJpP0i1fLy89AB5mTf0=; b=vUC2dBPJIEugQxT9wyKJwX3aMqGLvyiJxGgHhUs5MLfMoCnGcGMy7g0Lzr0viHFZh7 YrSMaCpkAxApD/2go8ahDoVyVs6iTMawgvDdmIyiz2ZDlQ7vRkzVO+xKmWXV6b7KBHFL n5yhm0xfTxmv0F/uW0dELxvfF3vhfc7eHQ4QbMcXnQu2PyxwBVoDS/0rq3cgbNV6aKwT zYI9rcJgeFXYuXoFRlo3k3U56NzvpY+EIZBd3WQ9XQ11N8OunBrNlL4edKwsrZCPqPSy 3zOYhX+wR8BQfsAqf21Ip+PcjzrKYAd+wGP+t2/H+DS55gJMSEGCXelP5jyEzcDNAlcS pTnA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=rktYGc5rfpcerCmOR6qwinlYGJpP0i1fLy89AB5mTf0=; b=uKl2lO9NFqRs4a8s/ij7Td5EF2rqzIj89MGg7ngs8ru65l/iSO5H8/R8Oo5ZHlIJkw BUnJ0kjyROwmp5naVOEg1h8cYIUfngkFqJRQqeZtzgbQ7fk0uOReJuW/WnB070KF5Fvs 8uGzAF45jCmW/h9Y+OiS8ltpBbSynpI6xROlw+X3gQAg0VkgX14b9wMWE77xByngBM2B tUD3WYGTE2og7lX4PF/v6Ui02ltfnn6wuk774JAVVgh5ga8Olik1qx/BCl7BkIdkJbjC xKYSEefJKHiLPvM7IMr9713z0r5Yo24PfGaIDm33emm4nmOw8aYMpAVfb+fVsSEAaa7G Yezw== X-Gm-Message-State: APzg51AByFsX5rQjAKh6KDHmlG7HVorLvjNXzfL4fgq2SO4fQHE6Qatn TyoKVkvuKrqAdMF9NoISUokvW74ATl3rcBhok/GDti5n X-Google-Smtp-Source: ANB0VdbeV5KjhbxAtUWWTAEDGIa8xmmnHKjbP1sBu8526vw/NYYHH1lOVZlOwH3xpkmOVZ/ezTBuX3BVIqbR+ghr76o= X-Received: by 2002:a62:cc83:: with SMTP id j3-v6mr194001pfk.255.1537577642010; Fri, 21 Sep 2018 17:54:02 -0700 (PDT) MIME-Version: 1.0 From: Jayesh Bhat Date: Sat, 22 Sep 2018 02:53:25 +0200 Message-ID: Content-Type: multipart/alternative; boundary="0000000000002aabdb05766b3162" X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -3.8 (---) X-Mailman-Approved-At: Fri, 21 Sep 2018 21:21:30 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.8 (----) --0000000000002aabdb05766b3162 Content-Type: text/plain; charset="UTF-8" Hi 1. zsh environment (discrepancy reproduced in bash, ksh) # echo $PATH /usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/TeX/texbin:/usr/local/munki:/opt/X11/bin 2. Emacs 26.1 fresh homebrew install on macOS High Sierra 10.13.3 # brew install emacs --with-cocoa --with-dbus --with-gnutls --with-imagemagick@6 --with-librsvg --with-modules --with-mailutils --with-ctags M-x report-emacs-bug In GNU Emacs 26.1 (build 1, x86_64-apple-darwin17.4.0, NS appkit-1561.20 Version 10.13.3 (Build 17D47)) of 2018-09-21 built on JayeshMacBook.bing.box Windowing system distributor 'Apple', version 10.3.1561 Configured using: 'configure --disable-dependency-tracking --disable-silent-rules --enable-locallisppath=/usr/local/share/emacs/site-lisp --infodir=/usr/local/Cellar/emacs/26.1_1/share/info/emacs --prefix=/usr/local/Cellar/emacs/26.1_1 --with-gnutls --without-x --with-xml2 --with-dbus --with-imagemagick --with-modules --with-rsvg --without-pop --with-ns --disable-ns-self-contained' Configured features: JPEG RSVG IMAGEMAGICK DBUS NOTIFY ACL GNUTLS LIBXML2 ZLIB TOOLKIT_SCROLL_BARS NS MODULES THREADS LCMS2 Important settings: value of $LC_ALL: en_US.UTF-8 value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: IELM Minor modes in effect: tooltip-mode: t global-eldoc-mode: t eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message rmc puny seq byte-opt gv bytecomp byte-compile cconv cl-loaddefs cl-lib dired dired-loaddefs format-spec rfc822 mml mml-sec password-cache epa derived epg epg-config gnus-util rmail rmail-loaddefs mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils ielm easymenu pp comint ansi-color ring elec-pair time-date tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/ns-win ns-win ucs-normalize mule-util term/common-win tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray minibuffer cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote dbusbind kqueue cocoa ns lcms2 multi-tty make-network-process emacs) Memory information: ((conses 16 207399 9881) (symbols 48 20558 2) (miscs 40 82 219) (strings 32 29888 2290) (string-bytes 1 799134) (vectors 16 35548) (vector-slots 8 719289 10274) (floats 8 49 244) (intervals 56 234 11) (buffers 992 13)) 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" --0000000000002aabdb05766b3162 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi=C2=A0

1. zsh e= nvironment (discrepancy reproduced in bash, ksh)
# echo $PATH
/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/TeX/texbin:/us= r/local/munki:/opt/X11/bin

2. Emacs 26.1 fresh hom= ebrew install on macOS High Sierra 10.13.3
# brew install emacs -= -with-cocoa --with-dbus --with-gnutls --with-imagemagick@6 --with-librsvg -= -with-modules --with-mailutils --with-ctags

M-x re= port-emacs-bug

In GNU Emacs 26.1 (build 1, x86_64-= apple-darwin17.4.0, NS appkit-1561.20 Version 10.13.3 (Build 17D47)) of 201= 8-09-21 built on JayeshMacBook.bing.box
Windowing system distribu= tor 'Apple', version 10.3.1561

Configured = using:
'configure --disable-dependency-tracking --disable-sil= ent-rules
--enable-locallisppath=3D/usr/local/share/emacs/site-li= sp
--infodir=3D/usr/local/Cellar/emacs/26.1_1/share/info/emacs
--prefix=3D/usr/local/Cellar/emacs/26.1_1 --with-gnutls --without-x=
--with-xml2 --with-dbus --with-imagemagick --with-modules --with= -rsvg
--without-pop --with-ns --disable-ns-self-contained'

Configured features:
JPEG RSVG IMAGEMAGICK= DBUS NOTIFY ACL GNUTLS LIBXML2 ZLIB
TOOLKIT_SCROLL_BARS NS MODUL= ES THREADS LCMS2

Important settings:
val= ue of $LC_ALL: en_US.UTF-8
value of $LANG: en_US.UTF-8
= locale-coding-system: utf-8-unix

Major mode: IELM<= /div>

Minor modes in effect:
tooltip-mode: t
global-eldoc-mode: t
eldoc-mode: t
electric-in= dent-mode: t
mouse-wheel-mode: t
tool-bar-mode: t
=
menu-bar-mode: t
file-name-shadow-mode: t
global-f= ont-lock-mode: t
font-lock-mode: t
blink-cursor-mode: t=
auto-composition-mode: t
auto-encryption-mode: t
=
auto-compression-mode: t
line-number-mode: t
trans= ient-mark-mode: t

Load-path shadows:
Non= e found.

Features:
(shadow sort mail-ext= r emacsbug message rmc puny seq byte-opt gv
bytecomp byte-compile= cconv cl-loaddefs cl-lib dired dired-loaddefs
format-spec rfc822= mml mml-sec password-cache epa derived epg epg-config
gnus-util = rmail rmail-loaddefs mm-decode mm-bodies mm-encode mail-parse
rfc= 2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045
iet= f-drums mm-util mail-prsvr mail-utils ielm easymenu pp comint
ans= i-color ring elec-pair time-date tooltip eldoc electric uniquify
= ediff-hook vc-hooks lisp-float-type mwheel term/ns-win ns-win
ucs= -normalize mule-util term/common-win tool-bar dnd fontset image
r= egexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode
lisp-mode prog-mode register page menu-bar rfn-eshadow isearch timer=
select scroll-bar mouse jit-lock font-lock syntax facemenu font-= core
term/tty-colors frame cl-generic cham georgian utf-8-lang mi= sc-lang
vietnamese tibetan thai tai-viet lao korean japanese eucj= p-ms cp51932
hebrew greek romanian slovak czech european ethiopic= indian cyrillic
chinese composite charscript charprop case-table= epa-hook jka-cmpr-hook
help simple abbrev obarray minibuffer cl-= preloaded nadvice loaddefs
button faces cus-face macroexp files t= ext-properties overlay sha1 md5
base64 format env code-pages mule= custom widget hashtable-print-readable
backquote dbusbind kqueue= cocoa ns lcms2 multi-tty make-network-process
emacs)
<= br>
Memory information:
((conses 16 207399 9881)
<= div>(symbols 48 20558 2)
(miscs 40 82 219)
(strings 32 = 29888 2290)
(string-bytes 1 799134)
(vectors 16 35548)<= /div>
(vector-slots 8 719289 10274)
(floats 8 49 244)
(intervals 56 234 11)
(buffers 992 13))

3a. Open emacs from Terminal

# open -n /Applica= tions/Emacs.app --args -q

M-x ielm

<= /div>
*** Welcome to IELM ***=C2=A0 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 ico= n

- M-x ielm

*** Welcome = to IELM ***=C2=A0 Type (describe-mode) for help.
ELISP> (shell= -command-to-string "pwd")
"/Users/jayesh\n"

--0000000000002aabdb05766b3162-- From unknown Sat Aug 09 15:18:46 2025 X-Loop: help-debbugs@gnu.org Subject: bug#32801: 26.1; (shell-command-to-string command) discrepancy in GUI vs terminal Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 22 Sep 2018 06:37:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 32801 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Jayesh Bhat Cc: 32801@debbugs.gnu.org Received: via spool by 32801-submit@debbugs.gnu.org id=B32801.153759817714617 (code B ref 32801); Sat, 22 Sep 2018 06:37:02 +0000 Received: (at 32801) by debbugs.gnu.org; 22 Sep 2018 06:36:17 +0000 Received: from localhost ([127.0.0.1]:48658 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g3bWb-0003nh-BN for submit@debbugs.gnu.org; Sat, 22 Sep 2018 02:36:17 -0400 Received: from eggs.gnu.org ([208.118.235.92]:51902) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g3bWZ-0003nU-Sl for 32801@debbugs.gnu.org; Sat, 22 Sep 2018 02:36:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g3bWQ-0006It-6V for 32801@debbugs.gnu.org; Sat, 22 Sep 2018 02:36:10 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:50923) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g3bWQ-0006Io-3A; Sat, 22 Sep 2018 02:36:06 -0400 Received: from [176.228.60.248] (port=4680 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1g3bWP-0003G3-JQ; Sat, 22 Sep 2018 02:36:06 -0400 Date: Sat, 22 Sep 2018 09:35:54 +0300 Message-Id: <83o9cqca45.fsf@gnu.org> From: Eli Zaretskii In-reply-to: (message from Jayesh Bhat on Sat, 22 Sep 2018 02:53:25 +0200) References: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.0 (------) > From: Jayesh Bhat > 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. From debbugs-submit-bounces@debbugs.gnu.org Wed Oct 24 20:47:33 2018 Received: (at control) by debbugs.gnu.org; 25 Oct 2018 00:47:33 +0000 Received: from localhost ([127.0.0.1]:41041 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gFToD-00039f-FJ for submit@debbugs.gnu.org; Wed, 24 Oct 2018 20:47:33 -0400 Received: from mail-it1-f179.google.com ([209.85.166.179]:39650) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gFToB-00039Q-Nn for control@debbugs.gnu.org; Wed, 24 Oct 2018 20:47:32 -0400 Received: by mail-it1-f179.google.com with SMTP id m15so9024825itl.4 for ; Wed, 24 Oct 2018 17:47:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:mime-version; bh=YuGaXnNZptChb0aInmvfCDtRs0NqlftH/fwaEGODq8k=; b=PrEx0KAZTO7vL26cZLfoYt2BnEy+0s6ZneiE0baFSfptOGvJ5nmcWJKBIcaby9Vwu6 6jCKsB0H0AYdiUflioIn9M5AZGvQOmW41vBjD/eT83q7JPCmUACsk4D/6f9XdBh9qidL RBTL2E6uoSpd0q8bZkZ7bDvRVaKksCFB0LqBlfHsuwh5vmKL+R7Td4EQxeGFquzpIqFm K4W49vnbF/C0hkyOA0z9fN57/7JmxeDEqbZUmG32U9PBkU/yEmhFVv0Eisxu2ud5cNMZ yapDGpwSejwASQ6qyXoOFAp8CoB0zO0c1rytaQiMi7AuExSfB/pTHNh3dHNv+7tZqCXq SzIw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version; bh=YuGaXnNZptChb0aInmvfCDtRs0NqlftH/fwaEGODq8k=; b=njG8NaJCwD3kg+UdgxbeU0/GN8155oi4EpZEnev1ha6ljhJPppkpvRBlE7CXmqvZe9 ou6ReOj10OZN3J44fAX7wPIoNxEqEMzQq6Buxjqn1ItjVL5UdGYZD7x11/hRsdRdkFbP 2hW2dgCLOVDaAHMQOnAx9TLch6yfiZj393DFZaBeVpOg/cFyQhauL+e7v0vHNo21mbud Ualv3XRletz/srIFSHktijcrKtaDrRMGPxmzzHhw966MbC0O6z/XOKbmR/ykn4e8Ag18 umqIDpOXB8p0DG8Qd1qGXcCrFUw7Qz4TtuC+r909g3FIU79KkI3y8FEClOamp0sX1k2W 1beQ== X-Gm-Message-State: AGRZ1gIsEHCd/Kr1IKYDTiIWXDEvVKFTo7fUFyFRMsUYLQapboE8YNsa 8X6Hov0CyXJokC6VV5cXvT/q3fEZ X-Google-Smtp-Source: AJdET5egnWiyuIUi6M3tMCbCY5GPgUbrr6QTkYzTiqNAvLqK3+VGIVtjj5SUvYM9dVFiwQlBJk2unw== X-Received: by 2002:a24:21d5:: with SMTP id e204-v6mr3025374ita.127.1540428445713; Wed, 24 Oct 2018 17:47:25 -0700 (PDT) Received: from zebian (cbl-45-2-119-34.yyz.frontiernetworks.ca. [45.2.119.34]) by smtp.googlemail.com with ESMTPSA id z9-v6sm1077510iom.12.2018.10.24.17.47.24 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 24 Oct 2018 17:47:25 -0700 (PDT) From: Noam Postavsky To: control@debbugs.gnu.org Subject: control message for bug #32801 Date: Wed, 24 Oct 2018 20:47:24 -0400 Message-ID: <871s8en97n.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) # probably just normal macOS behaviour retitle 32801 [macOS] (shell-command-to-string command) discrepancy in GUI vs terminal tags 32801 + notabug quit From unknown Sat Aug 09 15:18:46 2025 X-Loop: help-debbugs@gnu.org Subject: bug#32801: 26.1; (shell-command-to-string command) discrepancy in GUI vs terminal Resent-From: Jayesh Bhat Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 04 Nov 2018 21:32:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 32801 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: notabug To: eliz@gnu.org Cc: 32801@debbugs.gnu.org Received: via spool by 32801-submit@debbugs.gnu.org id=B32801.15413670992552 (code B ref 32801); Sun, 04 Nov 2018 21:32:02 +0000 Received: (at 32801) by debbugs.gnu.org; 4 Nov 2018 21:31:39 +0000 Received: from localhost ([127.0.0.1]:34320 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gJPzf-0000f6-02 for submit@debbugs.gnu.org; Sun, 04 Nov 2018 16:31:39 -0500 Received: from mail-pl1-f195.google.com ([209.85.214.195]:41774) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gJPzc-0000es-Vg for 32801@debbugs.gnu.org; Sun, 04 Nov 2018 16:31:37 -0500 Received: by mail-pl1-f195.google.com with SMTP id p16-v6so3419567plr.8 for <32801@debbugs.gnu.org>; Sun, 04 Nov 2018 13:31:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=91EuBPxD15hZZlvCuOgjpNT0Ye70nM11PBp9F/wpwZs=; b=S50AW6HCkzEtOioBG7gbVINAS1J3ibMzd1D1yA6C5UCoH3FeXDiwfBEJN+BGFPjTeW mVIn/5+x3hdS0cvWNy6ex3bzXphrQpXORk8LJwZJKli0wyCjiqD1ktyszCcsQi7ZfFyD 1nJgsW4ZRhm2aEdYFUmNuhYxTkYgykV+9zw9qCqbnXsj3oyegVXcfxM3zkF07MZhfYTy lYP7HgFNxoEn7vviFxGdSCe5BOMoL7viOx2vnUyGNSFW/kRomkhOmSgIRtHKu26hVNot KiWc4PNc6Nel7CGJEVlgd05ErBm3GfZqSuRHcdX67KzlqkZwPBXKokPfWJIwpo9zAFIK STOw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=91EuBPxD15hZZlvCuOgjpNT0Ye70nM11PBp9F/wpwZs=; b=UmDLwaDOCynMk4bKR5KWzK0l3n98EZFt8lBNn7bf7CMOgEkYJ8++8DWz/iRJNXr6WD XRU/8BDHMvdDE0knWU0GO9kAxzk+ngWPZOz/RRqJuGGcKRXbsUO+nbmXdN/YrQXH5WdE oAJIKNnMmZRqsqWe5ogzh81hAF7W/WVxv1KgOOcSeyri/qA1151V3rGX9UcWqPN81cxb Xqe2+VGyBzu0d/tXWE1QiSb89TrBEfm2bgSHJ4nagcd15Lnk6iRSJk2gsLSLd0eFgqUL 2VXdBm3qVKQz6DiMRK6mG/8Zvbw6PagUGWYd5iS7bUMdOwoFZ1ZvfrukAZF0EyYhXLJT KxCw== X-Gm-Message-State: AGRZ1gJdOhA18ku5SNC66jwPBtxFk6E9CsmL+xwxuzVKcZT3Mi4p1OmC Tro3Lu4OImIDw7OTVKRzrJ1XNuBnlKRqVoNvfqE= X-Google-Smtp-Source: AJdET5e83v5tA+5vXYp7++2YM982SJItnHoRXUkQuPkdu0c06GaQCyKt3g0BcgezWWIUPc+rHff1VAAzM8QzMgBz+to= X-Received: by 2002:a17:902:e005:: with SMTP id ca5-v6mr19258834plb.195.1541367090826; Sun, 04 Nov 2018 13:31:30 -0800 (PST) MIME-Version: 1.0 References: <83o9cqca45.fsf@gnu.org> In-Reply-To: <83o9cqca45.fsf@gnu.org> From: Jayesh Bhat Date: Sun, 4 Nov 2018 22:30:54 +0100 Message-ID: Content-Type: multipart/alternative; boundary="000000000000ead3480579dd7d3e" X-Spam-Score: 0.2 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.8 (/) --000000000000ead3480579dd7d3e Content-Type: text/plain; charset="UTF-8" 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 wrote: > > From: Jayesh Bhat > > 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. > --000000000000ead3480579dd7d3e Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
It seems like that. My o= nly reason to fire up Emacs from the Terminal was to pass command-line argu= ments like --debug-init but since I use Spacemacs this is builtin via the r= estart-emacs package. However, I didn't dig in much to see how command-= line arguments are passed through GUI restart.=C2=A0
=

=
Best wishes,
Jayesh<= /div>


On Sat, 22 Sep 2018 at 08:36, Eli= Zaretskii <eliz@gnu.org> wrote:<= br>
> From: Jayesh Bhat <jayeshbhat55@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 ***=C2=A0 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 ***=C2=A0 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.
--000000000000ead3480579dd7d3e-- From unknown Sat Aug 09 15:18:46 2025 X-Loop: help-debbugs@gnu.org Subject: bug#32801: 26.1; (shell-command-to-string command) discrepancy in GUI vs terminal Resent-From: Stefan Kangas Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 23 Jan 2020 05:13:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 32801 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: notabug To: Eli Zaretskii Cc: Jayesh Bhat , 32801@debbugs.gnu.org Received: via spool by 32801-submit@debbugs.gnu.org id=B32801.157975637529129 (code B ref 32801); Thu, 23 Jan 2020 05:13:02 +0000 Received: (at 32801) by debbugs.gnu.org; 23 Jan 2020 05:12:55 +0000 Received: from localhost ([127.0.0.1]:51606 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iuUnX-0007Zl-AH for submit@debbugs.gnu.org; Thu, 23 Jan 2020 00:12:55 -0500 Received: from ted.gofardesign.uk ([67.225.143.91]:37286) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iuUnV-0007ZW-PU for 32801@debbugs.gnu.org; Thu, 23 Jan 2020 00:12:54 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=marxist.se; s=default; h=Content-Type:MIME-Version:Message-ID:Date:References: In-Reply-To:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=e4DTahH1F2GiUoIpzy5V/ph9JE1zSIkUs61rnh5LTFM=; b=tO1g9b9DW9QtfQ72X/RtohK0lV bXliKSOYB47y1fLN+MHOayNec6zLe9h/8TT9Ojei514kFqLUf/whMMW84wyHSh77AxXdrc8LLHF/f +IwbQpPYtRdCgBRFMlajIi3PK2zt9xZ13zu+His9/fBQBZLJUJR8FIxqUd9vo66KTLAyUG4HT2Bna ujC7j8pXN1bfN1C56xx7IaF3os50BCs6alxYFitT2Hm/+3wQvK5+M+hL8UQJgmmFly/Yy7YjlTVPg VhbFhPJ9DyFkeQElpbEi9rN4gDyiIb1eEhEyKOPlITR7107VuyhB6yfVDBBhjRQD9BJN01PS/WUhR F+0yhOLA==; Received: from h-70-69.a785.priv.bahnhof.se ([155.4.70.69]:52668 helo=localhost) by ted.gofardesign.uk with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.92) (envelope-from ) id 1iuUnQ-001A8O-7v; Thu, 23 Jan 2020 00:12:48 -0500 From: Stefan Kangas In-Reply-To: <83o9cqca45.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 22 Sep 2018 09:35:54 +0300") References: <83o9cqca45.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Date: Thu, 23 Jan 2020 06:12:46 +0100 Message-ID: <874kwmiwmp.fsf@marxist.se> MIME-Version: 1.0 Content-Type: text/plain X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - ted.gofardesign.uk X-AntiAbuse: Original Domain - debbugs.gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - marxist.se X-Get-Message-Sender-Via: ted.gofardesign.uk: authenticated_id: stefan@marxist.se X-Authenticated-Sender: ted.gofardesign.uk: stefan@marxist.se X-Source: X-Source-Args: X-Source-Dir: X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Eli Zaretskii writes: >> 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. Does anyone else have an opinion here? I'm hardly an expert on macOS, but it seems to me that Eli is right. Best regards, Stefan Kangas From unknown Sat Aug 09 15:18:46 2025 X-Loop: help-debbugs@gnu.org Subject: bug#32801: 26.1; (shell-command-to-string command) discrepancy in GUI vs terminal Resent-From: Alan Third Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 23 Jan 2020 22:32:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 32801 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: notabug To: Jayesh Bhat Cc: 32801@debbugs.gnu.org Received: via spool by 32801-submit@debbugs.gnu.org id=B32801.15798186892422 (code B ref 32801); Thu, 23 Jan 2020 22:32:02 +0000 Received: (at 32801) by debbugs.gnu.org; 23 Jan 2020 22:31:29 +0000 Received: from localhost ([127.0.0.1]:53308 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iul0b-0000d0-8X for submit@debbugs.gnu.org; Thu, 23 Jan 2020 17:31:29 -0500 Received: from mail-wr1-f54.google.com ([209.85.221.54]:39662) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iul0Z-0000cl-Jq for 32801@debbugs.gnu.org; Thu, 23 Jan 2020 17:31:28 -0500 Received: by mail-wr1-f54.google.com with SMTP id y11so5081500wrt.6 for <32801@debbugs.gnu.org>; Thu, 23 Jan 2020 14:31:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to; bh=eHQ2OBMGVg3Hwy2EAdsbVqrCNP1mYgxMR+bU/kLgw8g=; b=boGmB39vOUmhG6A1Tqty2GBY7/WRoXWZPZ07bI6WW80KbrOyz6cacYVkZZMpUrKF5g OgmfZpXuEJYnoRxETd0ZctyaiFETwIJCYTc7vJ3fIfuD1nsnt9oEQKaY6i5SsiEMRPGv 4Z+rIrH4mHS/RDSxyF0AgW3LsuMU+KsPEKL9o85qwUGXSz5nfFo8vVWXMEevePr1Qh20 b1GOdMWz6/0bD5popl76p5sfceCpnvYssWrgFR2kTRIILMGemyCZMztwC55m8lSr1vK2 ZzCUoyOJWStdls4qquu5EDzfW3JY32Y+j0xJKaveS6n82ovDEgVi6pJdVTMtWICTBgyJ SOow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition :content-transfer-encoding:in-reply-to; bh=eHQ2OBMGVg3Hwy2EAdsbVqrCNP1mYgxMR+bU/kLgw8g=; b=I1Fj0mwIuNB4O/Tf4gCM8PA/Gi4RyS1IuDlYq3eWLTjcYuEHCQIawgK2vYBiBT5NQU Klj5dk8GpZID1RU25SG+J2mukuSUK4lF4BD4mwWgkBa3rikqdCKbpH+PxvOGxx0QdwRU ezvPq+btNUQlhwiFztM2ZfQoY0fL00PCOYm1/0rjgJzk4K+IQ+uAQLDPSMmnwLT7Sh6n KmJN+I7GZBzzCNjNa0WPFOidn/+A4YSxPeNxiWK+i44Bvxkbo3MyBbQ50/w9aOP+Qv+C Ftfv6u62F+d/wuzJONT44cghaz1SvLyTd7G3Yz5f8PHAnXjs+cdz/Oasg3s1UGn9SWGp cQbg== X-Gm-Message-State: APjAAAVo1QRNsEdntrLah6/b9cM+9BxdLZ2NbTBtx9U0wukEmzCIN5LV tFRYOXH79KmywzRCHLo20f4= X-Google-Smtp-Source: APXvYqyruSTfgZiimfMQ4bMMMb59zIUFGlfZXGqtK1vfg4IWX1zGo6fHaOt2OVUJwuLYxqLkHz+x4w== X-Received: by 2002:a5d:4b45:: with SMTP id w5mr315557wrs.224.1579818681745; Thu, 23 Jan 2020 14:31:21 -0800 (PST) Received: from breton.holly.idiocy.org (ip6-2001-08b0-03f8-8129-c952-042c-63d5-ffbd.holly.idiocy.org. [2001:8b0:3f8:8129:c952:42c:63d5:ffbd]) by smtp.gmail.com with ESMTPSA id v22sm4193328wml.11.2020.01.23.14.31.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Jan 2020 14:31:21 -0800 (PST) Date: Thu, 23 Jan 2020 22:31:19 +0000 From: Alan Third Message-ID: <20200123223119.GA72710@breton.holly.idiocy.org> References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spam-Score: 0.5 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.5 (/) On Sat, Sep 22, 2018 at 02:53:25AM +0200, Jayesh Bhat wrote: > 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" Mine doesn’t do that. Are you using some sort of iCloud sync thing? What do you get if you just type pwd in the terminal? It’s worth noting that the environment is different when you run an app from the terminal versus when you run it from the GUI. All sorts of things are different. -- Alan Third From unknown Sat Aug 09 15:18:46 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Jayesh Bhat Subject: bug#32801: closed (Re: bug#32801: 26.1; (shell-command-to-string command) discrepancy in GUI vs terminal) Message-ID: References: X-Gnu-PR-Message: they-closed 32801 X-Gnu-PR-Package: emacs X-Gnu-PR-Keywords: notabug Reply-To: 32801@debbugs.gnu.org Date: Tue, 04 Aug 2020 16:07:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1596557222-2073-1" This is a multi-part message in MIME format... ------------=_1596557222-2073-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #32801: [macOS] (shell-command-to-string command) discrepancy in GUI vs ter= minal which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 32801@debbugs.gnu.org. --=20 32801: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D32801 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1596557222-2073-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 32801-done) by debbugs.gnu.org; 4 Aug 2020 16:06:48 +0000 Received: from localhost ([127.0.0.1]:48935 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k2zSh-0000Wc-O2 for submit@debbugs.gnu.org; Tue, 04 Aug 2020 12:06:47 -0400 Received: from mail-yb1-f172.google.com ([209.85.219.172]:38404) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k2zSe-0000WN-Uf for 32801-done@debbugs.gnu.org; Tue, 04 Aug 2020 12:06:46 -0400 Received: by mail-yb1-f172.google.com with SMTP id e187so9872371ybc.5 for <32801-done@debbugs.gnu.org>; Tue, 04 Aug 2020 09:06:44 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:in-reply-to:references:user-agent :mime-version:date:message-id:subject:to:cc :content-transfer-encoding; bh=S7hRM/o6ZrbtvV5dZ3R6T5x+j1RkMDveNnSY7o61ef0=; b=EvR24tuEBFXfdTS8k6NThRaK2L6tSb+jAtAhPmxqt3qbYlCUAWLo9vdPhcF19NTa+W aeZcFVKFTmze2hQ9qZWUdCau97fznMG8/SpDf8fK/0+VSa7r/A+neh76JEbFdMMLVbgK BjkRwy1VWATaFdcVG6CGXyJmYarUIAIE+4VeBxjIogrNMcWjdiv6B62RkvRGTArDEtv1 6SB88kUq0l3hdTYWENKnJBC4YkKHDyapA0NowJ+b3rFc2PU7lF3T++FUf249z79Vxa9v TMCUq8cAgAV19rJiA3lx5i5NS/o6KEuka52Dx0yV2zDQLKoIWiYj2kTqsgYmIfteMatx EE5A== X-Gm-Message-State: AOAM531ErU7S3KLmKdk8oUbkKAK/c5fu+G9UgNA8TBcmvYQ/qTCAbixp U7SRAALTLuTGrkV0ucgiaSOfGbZF8ny8/scUJLM= X-Google-Smtp-Source: ABdhPJypKLUxD8RGPKv1kVAL1FCRkUa+hdXmt5+5RyL8gWuanlgd7SYcPz8I5CDusrhWEDvcR7+MhtFWWpLhwvcTpg4= X-Received: by 2002:a25:7007:: with SMTP id l7mr31052606ybc.85.1596557199417; Tue, 04 Aug 2020 09:06:39 -0700 (PDT) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Tue, 4 Aug 2020 09:06:39 -0700 From: Stefan Kangas In-Reply-To: <20200123223119.GA72710@breton.holly.idiocy.org> (Alan Third's message of "Thu, 23 Jan 2020 22:31:19 +0000") References: <20200123223119.GA72710@breton.holly.idiocy.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Date: Tue, 4 Aug 2020 09:06:39 -0700 Message-ID: Subject: Re: bug#32801: 26.1; (shell-command-to-string command) discrepancy in GUI vs terminal To: Alan Third Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 32801-done Cc: 32801-done@debbugs.gnu.org, Jayesh Bhat X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Alan Third writes: > On Sat, Sep 22, 2018 at 02:53:25AM +0200, Jayesh Bhat wrote: >> 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" > > Mine doesn=E2=80=99t do that. Are you using some sort of iCloud sync thin= g? > What do you get if you just type pwd in the terminal? > > It=E2=80=99s worth noting that the environment is different when you run = an > app from the terminal versus when you run it from the GUI. All sorts > of things are different. More information was requested, but none was given within 27 weeks, so I'm closing this bug. If this is still an issue, please reply to this email (use "Reply to all" in your email client) and we can reopen the bug report. Best regards, Stefan Kangas ------------=_1596557222-2073-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 22 Sep 2018 01:21:32 +0000 Received: from localhost ([127.0.0.1]:48584 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g3Wc0-0001pp-84 for submit@debbugs.gnu.org; Fri, 21 Sep 2018 21:21:32 -0400 Received: from eggs.gnu.org ([208.118.235.92]:42347) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g3WP1-0001R9-RT for submit@debbugs.gnu.org; Fri, 21 Sep 2018 21:08:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g3WOu-0007Kk-P6 for submit@debbugs.gnu.org; Fri, 21 Sep 2018 21:08:02 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: * X-Spam-Status: No, score=1.1 required=5.0 tests=BAYES_50, FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,HTML_MESSAGE,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:50538) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1g3WOu-0007KT-IL for submit@debbugs.gnu.org; Fri, 21 Sep 2018 21:08:00 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:35088) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g3WOt-00088X-2S for bug-gnu-emacs@gnu.org; Fri, 21 Sep 2018 21:08:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g3WBQ-00056H-0i for bug-gnu-emacs@gnu.org; Fri, 21 Sep 2018 20:54:05 -0400 Received: from mail-pg1-x52a.google.com ([2607:f8b0:4864:20::52a]:43378) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1g3WBP-000563-ND for bug-gnu-emacs@gnu.org; Fri, 21 Sep 2018 20:54:03 -0400 Received: by mail-pg1-x52a.google.com with SMTP id q19-v6so5895055pgn.10 for ; Fri, 21 Sep 2018 17:54:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=rktYGc5rfpcerCmOR6qwinlYGJpP0i1fLy89AB5mTf0=; b=vUC2dBPJIEugQxT9wyKJwX3aMqGLvyiJxGgHhUs5MLfMoCnGcGMy7g0Lzr0viHFZh7 YrSMaCpkAxApD/2go8ahDoVyVs6iTMawgvDdmIyiz2ZDlQ7vRkzVO+xKmWXV6b7KBHFL n5yhm0xfTxmv0F/uW0dELxvfF3vhfc7eHQ4QbMcXnQu2PyxwBVoDS/0rq3cgbNV6aKwT zYI9rcJgeFXYuXoFRlo3k3U56NzvpY+EIZBd3WQ9XQ11N8OunBrNlL4edKwsrZCPqPSy 3zOYhX+wR8BQfsAqf21Ip+PcjzrKYAd+wGP+t2/H+DS55gJMSEGCXelP5jyEzcDNAlcS pTnA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=rktYGc5rfpcerCmOR6qwinlYGJpP0i1fLy89AB5mTf0=; b=uKl2lO9NFqRs4a8s/ij7Td5EF2rqzIj89MGg7ngs8ru65l/iSO5H8/R8Oo5ZHlIJkw BUnJ0kjyROwmp5naVOEg1h8cYIUfngkFqJRQqeZtzgbQ7fk0uOReJuW/WnB070KF5Fvs 8uGzAF45jCmW/h9Y+OiS8ltpBbSynpI6xROlw+X3gQAg0VkgX14b9wMWE77xByngBM2B tUD3WYGTE2og7lX4PF/v6Ui02ltfnn6wuk774JAVVgh5ga8Olik1qx/BCl7BkIdkJbjC xKYSEefJKHiLPvM7IMr9713z0r5Yo24PfGaIDm33emm4nmOw8aYMpAVfb+fVsSEAaa7G Yezw== X-Gm-Message-State: APzg51AByFsX5rQjAKh6KDHmlG7HVorLvjNXzfL4fgq2SO4fQHE6Qatn TyoKVkvuKrqAdMF9NoISUokvW74ATl3rcBhok/GDti5n X-Google-Smtp-Source: ANB0VdbeV5KjhbxAtUWWTAEDGIa8xmmnHKjbP1sBu8526vw/NYYHH1lOVZlOwH3xpkmOVZ/ezTBuX3BVIqbR+ghr76o= X-Received: by 2002:a62:cc83:: with SMTP id j3-v6mr194001pfk.255.1537577642010; Fri, 21 Sep 2018 17:54:02 -0700 (PDT) MIME-Version: 1.0 From: Jayesh Bhat Date: Sat, 22 Sep 2018 02:53:25 +0200 Message-ID: Subject: 26.1; (shell-command-to-string command) discrepancy in GUI vs terminal To: bug-gnu-emacs@gnu.org Content-Type: multipart/alternative; boundary="0000000000002aabdb05766b3162" X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -3.8 (---) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Fri, 21 Sep 2018 21:21:30 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.8 (----) --0000000000002aabdb05766b3162 Content-Type: text/plain; charset="UTF-8" Hi 1. zsh environment (discrepancy reproduced in bash, ksh) # echo $PATH /usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/TeX/texbin:/usr/local/munki:/opt/X11/bin 2. Emacs 26.1 fresh homebrew install on macOS High Sierra 10.13.3 # brew install emacs --with-cocoa --with-dbus --with-gnutls --with-imagemagick@6 --with-librsvg --with-modules --with-mailutils --with-ctags M-x report-emacs-bug In GNU Emacs 26.1 (build 1, x86_64-apple-darwin17.4.0, NS appkit-1561.20 Version 10.13.3 (Build 17D47)) of 2018-09-21 built on JayeshMacBook.bing.box Windowing system distributor 'Apple', version 10.3.1561 Configured using: 'configure --disable-dependency-tracking --disable-silent-rules --enable-locallisppath=/usr/local/share/emacs/site-lisp --infodir=/usr/local/Cellar/emacs/26.1_1/share/info/emacs --prefix=/usr/local/Cellar/emacs/26.1_1 --with-gnutls --without-x --with-xml2 --with-dbus --with-imagemagick --with-modules --with-rsvg --without-pop --with-ns --disable-ns-self-contained' Configured features: JPEG RSVG IMAGEMAGICK DBUS NOTIFY ACL GNUTLS LIBXML2 ZLIB TOOLKIT_SCROLL_BARS NS MODULES THREADS LCMS2 Important settings: value of $LC_ALL: en_US.UTF-8 value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: IELM Minor modes in effect: tooltip-mode: t global-eldoc-mode: t eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message rmc puny seq byte-opt gv bytecomp byte-compile cconv cl-loaddefs cl-lib dired dired-loaddefs format-spec rfc822 mml mml-sec password-cache epa derived epg epg-config gnus-util rmail rmail-loaddefs mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils ielm easymenu pp comint ansi-color ring elec-pair time-date tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/ns-win ns-win ucs-normalize mule-util term/common-win tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray minibuffer cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote dbusbind kqueue cocoa ns lcms2 multi-tty make-network-process emacs) Memory information: ((conses 16 207399 9881) (symbols 48 20558 2) (miscs 40 82 219) (strings 32 29888 2290) (string-bytes 1 799134) (vectors 16 35548) (vector-slots 8 719289 10274) (floats 8 49 244) (intervals 56 234 11) (buffers 992 13)) 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" --0000000000002aabdb05766b3162 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi=C2=A0

1. zsh e= nvironment (discrepancy reproduced in bash, ksh)
# echo $PATH
/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/TeX/texbin:/us= r/local/munki:/opt/X11/bin

2. Emacs 26.1 fresh hom= ebrew install on macOS High Sierra 10.13.3
# brew install emacs -= -with-cocoa --with-dbus --with-gnutls --with-imagemagick@6 --with-librsvg -= -with-modules --with-mailutils --with-ctags

M-x re= port-emacs-bug

In GNU Emacs 26.1 (build 1, x86_64-= apple-darwin17.4.0, NS appkit-1561.20 Version 10.13.3 (Build 17D47)) of 201= 8-09-21 built on JayeshMacBook.bing.box
Windowing system distribu= tor 'Apple', version 10.3.1561

Configured = using:
'configure --disable-dependency-tracking --disable-sil= ent-rules
--enable-locallisppath=3D/usr/local/share/emacs/site-li= sp
--infodir=3D/usr/local/Cellar/emacs/26.1_1/share/info/emacs
--prefix=3D/usr/local/Cellar/emacs/26.1_1 --with-gnutls --without-x=
--with-xml2 --with-dbus --with-imagemagick --with-modules --with= -rsvg
--without-pop --with-ns --disable-ns-self-contained'

Configured features:
JPEG RSVG IMAGEMAGICK= DBUS NOTIFY ACL GNUTLS LIBXML2 ZLIB
TOOLKIT_SCROLL_BARS NS MODUL= ES THREADS LCMS2

Important settings:
val= ue of $LC_ALL: en_US.UTF-8
value of $LANG: en_US.UTF-8
= locale-coding-system: utf-8-unix

Major mode: IELM<= /div>

Minor modes in effect:
tooltip-mode: t
global-eldoc-mode: t
eldoc-mode: t
electric-in= dent-mode: t
mouse-wheel-mode: t
tool-bar-mode: t
=
menu-bar-mode: t
file-name-shadow-mode: t
global-f= ont-lock-mode: t
font-lock-mode: t
blink-cursor-mode: t=
auto-composition-mode: t
auto-encryption-mode: t
=
auto-compression-mode: t
line-number-mode: t
trans= ient-mark-mode: t

Load-path shadows:
Non= e found.

Features:
(shadow sort mail-ext= r emacsbug message rmc puny seq byte-opt gv
bytecomp byte-compile= cconv cl-loaddefs cl-lib dired dired-loaddefs
format-spec rfc822= mml mml-sec password-cache epa derived epg epg-config
gnus-util = rmail rmail-loaddefs mm-decode mm-bodies mm-encode mail-parse
rfc= 2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045
iet= f-drums mm-util mail-prsvr mail-utils ielm easymenu pp comint
ans= i-color ring elec-pair time-date tooltip eldoc electric uniquify
= ediff-hook vc-hooks lisp-float-type mwheel term/ns-win ns-win
ucs= -normalize mule-util term/common-win tool-bar dnd fontset image
r= egexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode
lisp-mode prog-mode register page menu-bar rfn-eshadow isearch timer=
select scroll-bar mouse jit-lock font-lock syntax facemenu font-= core
term/tty-colors frame cl-generic cham georgian utf-8-lang mi= sc-lang
vietnamese tibetan thai tai-viet lao korean japanese eucj= p-ms cp51932
hebrew greek romanian slovak czech european ethiopic= indian cyrillic
chinese composite charscript charprop case-table= epa-hook jka-cmpr-hook
help simple abbrev obarray minibuffer cl-= preloaded nadvice loaddefs
button faces cus-face macroexp files t= ext-properties overlay sha1 md5
base64 format env code-pages mule= custom widget hashtable-print-readable
backquote dbusbind kqueue= cocoa ns lcms2 multi-tty make-network-process
emacs)
<= br>
Memory information:
((conses 16 207399 9881)
<= div>(symbols 48 20558 2)
(miscs 40 82 219)
(strings 32 = 29888 2290)
(string-bytes 1 799134)
(vectors 16 35548)<= /div>
(vector-slots 8 719289 10274)
(floats 8 49 244)
(intervals 56 234 11)
(buffers 992 13))

3a. Open emacs from Terminal

# open -n /Applica= tions/Emacs.app --args -q

M-x ielm

<= /div>
*** Welcome to IELM ***=C2=A0 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 ico= n

- M-x ielm

*** Welcome = to IELM ***=C2=A0 Type (describe-mode) for help.
ELISP> (shell= -command-to-string "pwd")
"/Users/jayesh\n"

--0000000000002aabdb05766b3162-- ------------=_1596557222-2073-1--