From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Jayesh Bhat Newsgroups: gmane.emacs.bugs Subject: bug#32801: 26.1; (shell-command-to-string command) discrepancy in GUI vs terminal Date: Sat, 22 Sep 2018 02:53:25 +0200 Message-ID: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000002aabdb05766b3162" X-Trace: blaine.gmane.org 1537579635 24773 195.159.176.226 (22 Sep 2018 01:27:15 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 22 Sep 2018 01:27:15 +0000 (UTC) To: 32801@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Sep 22 03:27:11 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g3WhS-0006LN-DA for geb-bug-gnu-emacs@m.gmane.org; Sat, 22 Sep 2018 03:27:10 +0200 Original-Received: from localhost ([::1]:57966 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g3WjZ-00044u-0I for geb-bug-gnu-emacs@m.gmane.org; Fri, 21 Sep 2018 21:29:21 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37956) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g3WjJ-00042W-NE for bug-gnu-emacs@gnu.org; Fri, 21 Sep 2018 21:29:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g3WcU-0001iS-CG for bug-gnu-emacs@gnu.org; Fri, 21 Sep 2018 21:22:08 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:44326) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1g3WcU-0001iO-8V for bug-gnu-emacs@gnu.org; Fri, 21 Sep 2018 21:22:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1g3WcU-0001qt-4A for bug-gnu-emacs@gnu.org; Fri, 21 Sep 2018 21:22:02 -0400 X-Loop: help-debbugs@gnu.org 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: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.15375792927062 (code B ref -1); Sat, 22 Sep 2018 01:22:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 22 Sep 2018 01:21:32 +0000 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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) 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-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 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:150537 Archived-At: --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--