From unknown Mon Jun 23 18:33:45 2025 X-Loop: help-debbugs@gnu.org Subject: bug#18846: 24.4; isatty fix in revision 114730 breaks in shell scripts Resent-From: William Lederer Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 26 Oct 2014 22:35:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 18846 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 18846@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.141436287728297 (code B ref -1); Sun, 26 Oct 2014 22:35:01 +0000 Received: (at submit) by debbugs.gnu.org; 26 Oct 2014 22:34:37 +0000 Received: from localhost ([127.0.0.1]:36243 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XiWOR-0007MJ-GD for submit@debbugs.gnu.org; Sun, 26 Oct 2014 18:34:36 -0400 Received: from eggs.gnu.org ([208.118.235.92]:34699) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XiWON-0007M2-Q6 for submit@debbugs.gnu.org; Sun, 26 Oct 2014 18:34:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XiWOB-0006VT-Lh for submit@debbugs.gnu.org; Sun, 26 Oct 2014 18:34:26 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:55725) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XiWOB-0006VG-Ik for submit@debbugs.gnu.org; Sun, 26 Oct 2014 18:34:19 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:36421) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XiWO5-0005fL-Ig for bug-gnu-emacs@gnu.org; Sun, 26 Oct 2014 18:34:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XiWNz-0006UK-Jp for bug-gnu-emacs@gnu.org; Sun, 26 Oct 2014 18:34:13 -0400 Received: from ciexinc.com ([162.243.6.40]:43256) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1XiWNz-0006UA-FZ for bug-gnu-emacs@gnu.org; Sun, 26 Oct 2014 18:34:07 -0400 Received: (qmail 5617 invoked from network); 26 Oct 2014 22:33:48 -0000 Received: from c-50-179-195-64.hsd1.il.comcast.net (HELO ?10.0.0.76?) (50.179.195.64) by ciexinc.com with SMTP; 26 Oct 2014 22:33:48 -0000 From: William Lederer Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Message-Id: <2705A03D-6BB9-4C6E-B6D9-08C64B587E34@ciexinc.com> Date: Sun, 26 Oct 2014 17:33:45 -0500 Mime-Version: 1.0 (Mac OS X Mail 8.0 \(1990.1\)) X-Mailer: Apple Mail (2.1990.1) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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: -5.0 (-----) Maintainers: In emacs 24.4 built for mac os x, if I invoke emacs from a command line, it properly remembers the current directory. However, if I launch it from a shell script called from the command line, it forgets the current directory and goes to the home directory. This happens even if the --chdir option is used on the command line. If the command=20 /Applications/Emacs.app/Contents/MacOS/Emacs & is launched from an interactive shell, all is well. If it is launched from an executable script ~/bin/ea #!/bin/bash /Applications/Emacs.app/Contents/MacOS/Emacs --chdir `pwd` --title = "`basename $PWD` hosted `hostname`" & emacs ends up in the home directory. In GNU Emacs 24.4.1 (x86_64-apple-darwin13.4.0, NS apple-appkit-1265.21) of 2014-10-20 on builder10-9.porkrind.org Windowing system distributor `Apple', version 10.3.1343 Configured using: `configure --with-ns' Important settings: value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: Dired by name Minor modes in effect: diff-auto-refine-mode: t show-paren-mode: t global-hi-lock-mode: t hi-lock-mode: t desktop-save-mode: t display-time-mode: t tooltip-mode: t electric-indent-mode: t mouse-wheel-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 buffer-read-only: t column-number-mode: t line-number-mode: t Recent input: C-x RET r e p o r t - e m a Recent messages: Using vacuous schema [7 times] Setting up indent for shell type sh Indentation variables are now local. Indentation setup for shell type sh Setting up indent for shell type bash Indentation variables are now local. Indentation setup for shell type bash Wrote /Users/wgl/projects/kismet-logging/.emacs.desktop.lock Desktop: 1 frame, 44 buffers restored. For information about GNU Emacs and the GNU system, type C-h C-a. Load-path shadows: /Users/wgl/.emacs.d/elpa/magit-20141025.429/magit hides = /usr/local/share/emacs/site-lisp/magit /Users/wgl/.emacs.d/elpa/magit-20141025.429/magit-wip hides = /usr/local/share/emacs/site-lisp/magit-wip /Users/wgl/.emacs.d/elpa/magit-20141025.429/magit-key-mode hides = /usr/local/share/emacs/site-lisp/magit-key-mode /Users/wgl/.emacs.d/elpa/magit-20141025.429/magit-blame hides = /usr/local/share/emacs/site-lisp/magit-blame /Users/wgl/quicklisp/dists/quicklisp/software/slime-2.8/contrib/bridge = hides /Users/wgl/.emacs.d/elisp/bridge /Users/wgl/.emacs.d/elisp/tree-widget hides = /Applications/Emacs.app/Contents/Resources/lisp/tree-widget ~/.emacs.d/elisp/remember-2.0/remember hides = /Applications/Emacs.app/Contents/Resources/lisp/textmodes/remember /Users/wgl/.emacs.d/elisp/org-7.8.11/lisp/org hides = /Applications/Emacs.app/Contents/Resources/lisp/org/org /Users/wgl/.emacs.d/elisp/org-7.8.11/lisp/org-w3m hides = /Applications/Emacs.app/Contents/Resources/lisp/org/org-w3m /Users/wgl/.emacs.d/elisp/org-7.8.11/lisp/org-timer hides = /Applications/Emacs.app/Contents/Resources/lisp/org/org-timer /Users/wgl/.emacs.d/elisp/org-7.8.11/lisp/org-table hides = /Applications/Emacs.app/Contents/Resources/lisp/org/org-table /Users/wgl/.emacs.d/elisp/org-7.8.11/lisp/org-src hides = /Applications/Emacs.app/Contents/Resources/lisp/org/org-src /Users/wgl/.emacs.d/elisp/org-7.8.11/lisp/org-rmail hides = /Applications/Emacs.app/Contents/Resources/lisp/org/org-rmail /Users/wgl/.emacs.d/elisp/org-7.8.11/lisp/org-protocol hides = /Applications/Emacs.app/Contents/Resources/lisp/org/org-protocol /Users/wgl/.emacs.d/elisp/org-7.8.11/lisp/org-plot hides = /Applications/Emacs.app/Contents/Resources/lisp/org/org-plot /Users/wgl/.emacs.d/elisp/org-7.8.11/lisp/org-pcomplete hides = /Applications/Emacs.app/Contents/Resources/lisp/org/org-pcomplete /Users/wgl/.emacs.d/elisp/org-7.8.11/lisp/org-mouse hides = /Applications/Emacs.app/Contents/Resources/lisp/org/org-mouse /Users/wgl/.emacs.d/elisp/org-7.8.11/lisp/org-mobile hides = /Applications/Emacs.app/Contents/Resources/lisp/org/org-mobile /Users/wgl/.emacs.d/elisp/org-7.8.11/lisp/org-mhe hides = /Applications/Emacs.app/Contents/Resources/lisp/org/org-mhe /Users/wgl/.emacs.d/elisp/org-7.8.11/lisp/org-macs hides = /Applications/Emacs.app/Contents/Resources/lisp/org/org-macs /Users/wgl/.emacs.d/elisp/org-7.8.11/lisp/org-list hides = /Applications/Emacs.app/Contents/Resources/lisp/org/org-list /Users/wgl/.emacs.d/elisp/org-7.8.11/lisp/org-irc hides = /Applications/Emacs.app/Contents/Resources/lisp/org/org-irc /Users/wgl/.emacs.d/elisp/org-7.8.11/lisp/org-install hides = /Applications/Emacs.app/Contents/Resources/lisp/org/org-install /Users/wgl/.emacs.d/elisp/org-7.8.11/lisp/org-inlinetask hides = /Applications/Emacs.app/Contents/Resources/lisp/org/org-inlinetask /Users/wgl/.emacs.d/elisp/org-7.8.11/lisp/org-info hides = /Applications/Emacs.app/Contents/Resources/lisp/org/org-info /Users/wgl/.emacs.d/elisp/org-7.8.11/lisp/org-indent hides = /Applications/Emacs.app/Contents/Resources/lisp/org/org-indent /Users/wgl/.emacs.d/elisp/org-7.8.11/lisp/org-id hides = /Applications/Emacs.app/Contents/Resources/lisp/org/org-id /Users/wgl/.emacs.d/elisp/org-7.8.11/lisp/org-habit hides = /Applications/Emacs.app/Contents/Resources/lisp/org/org-habit /Users/wgl/.emacs.d/elisp/org-7.8.11/lisp/org-gnus hides = /Applications/Emacs.app/Contents/Resources/lisp/org/org-gnus /Users/wgl/.emacs.d/elisp/org-7.8.11/lisp/org-footnote hides = /Applications/Emacs.app/Contents/Resources/lisp/org/org-footnote /Users/wgl/.emacs.d/elisp/org-7.8.11/lisp/org-feed hides = /Applications/Emacs.app/Contents/Resources/lisp/org/org-feed /Users/wgl/.emacs.d/elisp/org-7.8.11/lisp/org-faces hides = /Applications/Emacs.app/Contents/Resources/lisp/org/org-faces /Users/wgl/.emacs.d/elisp/org-7.8.11/lisp/org-eshell hides = /Applications/Emacs.app/Contents/Resources/lisp/org/org-eshell /Users/wgl/.emacs.d/elisp/org-7.8.11/lisp/org-entities hides = /Applications/Emacs.app/Contents/Resources/lisp/org/org-entities /Users/wgl/.emacs.d/elisp/org-7.8.11/lisp/org-docview hides = /Applications/Emacs.app/Contents/Resources/lisp/org/org-docview /Users/wgl/.emacs.d/elisp/org-7.8.11/lisp/org-datetree hides = /Applications/Emacs.app/Contents/Resources/lisp/org/org-datetree /Users/wgl/.emacs.d/elisp/org-7.8.11/lisp/org-ctags hides = /Applications/Emacs.app/Contents/Resources/lisp/org/org-ctags /Users/wgl/.emacs.d/elisp/org-7.8.11/lisp/org-crypt hides = /Applications/Emacs.app/Contents/Resources/lisp/org/org-crypt /Users/wgl/.emacs.d/elisp/org-7.8.11/lisp/org-compat hides = /Applications/Emacs.app/Contents/Resources/lisp/org/org-compat /Users/wgl/.emacs.d/elisp/org-7.8.11/lisp/org-colview hides = /Applications/Emacs.app/Contents/Resources/lisp/org/org-colview /Users/wgl/.emacs.d/elisp/org-7.8.11/lisp/org-clock hides = /Applications/Emacs.app/Contents/Resources/lisp/org/org-clock /Users/wgl/.emacs.d/elisp/org-7.8.11/lisp/org-capture hides = /Applications/Emacs.app/Contents/Resources/lisp/org/org-capture /Users/wgl/.emacs.d/elisp/org-7.8.11/lisp/org-bibtex hides = /Applications/Emacs.app/Contents/Resources/lisp/org/org-bibtex /Users/wgl/.emacs.d/elisp/org-7.8.11/lisp/org-bbdb hides = /Applications/Emacs.app/Contents/Resources/lisp/org/org-bbdb /Users/wgl/.emacs.d/elisp/org-7.8.11/lisp/org-attach hides = /Applications/Emacs.app/Contents/Resources/lisp/org/org-attach /Users/wgl/.emacs.d/elisp/org-7.8.11/lisp/org-archive hides = /Applications/Emacs.app/Contents/Resources/lisp/org/org-archive /Users/wgl/.emacs.d/elisp/org-7.8.11/lisp/org-agenda hides = /Applications/Emacs.app/Contents/Resources/lisp/org/org-agenda /Users/wgl/.emacs.d/elisp/org-7.8.11/lisp/ob hides = /Applications/Emacs.app/Contents/Resources/lisp/org/ob /Users/wgl/.emacs.d/elisp/org-7.8.11/lisp/ob-tangle hides = /Applications/Emacs.app/Contents/Resources/lisp/org/ob-tangle /Users/wgl/.emacs.d/elisp/org-7.8.11/lisp/ob-table hides = /Applications/Emacs.app/Contents/Resources/lisp/org/ob-table /Users/wgl/.emacs.d/elisp/org-7.8.11/lisp/ob-sqlite hides = /Applications/Emacs.app/Contents/Resources/lisp/org/ob-sqlite /Users/wgl/.emacs.d/elisp/org-7.8.11/lisp/ob-sql hides = /Applications/Emacs.app/Contents/Resources/lisp/org/ob-sql /Users/wgl/.emacs.d/elisp/org-7.8.11/lisp/ob-shen hides = /Applications/Emacs.app/Contents/Resources/lisp/org/ob-shen /Users/wgl/.emacs.d/elisp/org-7.8.11/lisp/ob-sh hides = /Applications/Emacs.app/Contents/Resources/lisp/org/ob-sh /Users/wgl/.emacs.d/elisp/org-7.8.11/lisp/ob-screen hides = /Applications/Emacs.app/Contents/Resources/lisp/org/ob-screen /Users/wgl/.emacs.d/elisp/org-7.8.11/lisp/ob-scheme hides = /Applications/Emacs.app/Contents/Resources/lisp/org/ob-scheme /Users/wgl/.emacs.d/elisp/org-7.8.11/lisp/ob-sass hides = /Applications/Emacs.app/Contents/Resources/lisp/org/ob-sass /Users/wgl/.emacs.d/elisp/org-7.8.11/lisp/ob-ruby hides = /Applications/Emacs.app/Contents/Resources/lisp/org/ob-ruby /Users/wgl/.emacs.d/elisp/org-7.8.11/lisp/ob-ref hides = /Applications/Emacs.app/Contents/Resources/lisp/org/ob-ref /Users/wgl/.emacs.d/elisp/org-7.8.11/lisp/ob-R hides = /Applications/Emacs.app/Contents/Resources/lisp/org/ob-R /Users/wgl/.emacs.d/elisp/org-7.8.11/lisp/ob-python hides = /Applications/Emacs.app/Contents/Resources/lisp/org/ob-python /Users/wgl/.emacs.d/elisp/org-7.8.11/lisp/ob-plantuml hides = /Applications/Emacs.app/Contents/Resources/lisp/org/ob-plantuml /Users/wgl/.emacs.d/elisp/org-7.8.11/lisp/ob-picolisp hides = /Applications/Emacs.app/Contents/Resources/lisp/org/ob-picolisp /Users/wgl/.emacs.d/elisp/org-7.8.11/lisp/ob-perl hides = /Applications/Emacs.app/Contents/Resources/lisp/org/ob-perl /Users/wgl/.emacs.d/elisp/org-7.8.11/lisp/ob-org hides = /Applications/Emacs.app/Contents/Resources/lisp/org/ob-org /Users/wgl/.emacs.d/elisp/org-7.8.11/lisp/ob-octave hides = /Applications/Emacs.app/Contents/Resources/lisp/org/ob-octave /Users/wgl/.emacs.d/elisp/org-7.8.11/lisp/ob-ocaml hides = /Applications/Emacs.app/Contents/Resources/lisp/org/ob-ocaml /Users/wgl/.emacs.d/elisp/org-7.8.11/lisp/ob-mscgen hides = /Applications/Emacs.app/Contents/Resources/lisp/org/ob-mscgen /Users/wgl/.emacs.d/elisp/org-7.8.11/lisp/ob-maxima hides = /Applications/Emacs.app/Contents/Resources/lisp/org/ob-maxima /Users/wgl/.emacs.d/elisp/org-7.8.11/lisp/ob-matlab hides = /Applications/Emacs.app/Contents/Resources/lisp/org/ob-matlab /Users/wgl/.emacs.d/elisp/org-7.8.11/lisp/ob-lob hides = /Applications/Emacs.app/Contents/Resources/lisp/org/ob-lob /Users/wgl/.emacs.d/elisp/org-7.8.11/lisp/ob-lisp hides = /Applications/Emacs.app/Contents/Resources/lisp/org/ob-lisp /Users/wgl/.emacs.d/elisp/org-7.8.11/lisp/ob-lilypond hides = /Applications/Emacs.app/Contents/Resources/lisp/org/ob-lilypond /Users/wgl/.emacs.d/elisp/org-7.8.11/lisp/ob-ledger hides = /Applications/Emacs.app/Contents/Resources/lisp/org/ob-ledger /Users/wgl/.emacs.d/elisp/org-7.8.11/lisp/ob-latex hides = /Applications/Emacs.app/Contents/Resources/lisp/org/ob-latex /Users/wgl/.emacs.d/elisp/org-7.8.11/lisp/ob-keys hides = /Applications/Emacs.app/Contents/Resources/lisp/org/ob-keys /Users/wgl/.emacs.d/elisp/org-7.8.11/lisp/ob-js hides = /Applications/Emacs.app/Contents/Resources/lisp/org/ob-js /Users/wgl/.emacs.d/elisp/org-7.8.11/lisp/ob-java hides = /Applications/Emacs.app/Contents/Resources/lisp/org/ob-java /Users/wgl/.emacs.d/elisp/org-7.8.11/lisp/ob-haskell hides = /Applications/Emacs.app/Contents/Resources/lisp/org/ob-haskell /Users/wgl/.emacs.d/elisp/org-7.8.11/lisp/ob-gnuplot hides = /Applications/Emacs.app/Contents/Resources/lisp/org/ob-gnuplot /Users/wgl/.emacs.d/elisp/org-7.8.11/lisp/ob-fortran hides = /Applications/Emacs.app/Contents/Resources/lisp/org/ob-fortran /Users/wgl/.emacs.d/elisp/org-7.8.11/lisp/ob-exp hides = /Applications/Emacs.app/Contents/Resources/lisp/org/ob-exp /Users/wgl/.emacs.d/elisp/org-7.8.11/lisp/ob-eval hides = /Applications/Emacs.app/Contents/Resources/lisp/org/ob-eval /Users/wgl/.emacs.d/elisp/org-7.8.11/lisp/ob-emacs-lisp hides = /Applications/Emacs.app/Contents/Resources/lisp/org/ob-emacs-lisp /Users/wgl/.emacs.d/elisp/org-7.8.11/lisp/ob-dot hides = /Applications/Emacs.app/Contents/Resources/lisp/org/ob-dot /Users/wgl/.emacs.d/elisp/org-7.8.11/lisp/ob-ditaa hides = /Applications/Emacs.app/Contents/Resources/lisp/org/ob-ditaa /Users/wgl/.emacs.d/elisp/org-7.8.11/lisp/ob-css hides = /Applications/Emacs.app/Contents/Resources/lisp/org/ob-css /Users/wgl/.emacs.d/elisp/org-7.8.11/lisp/ob-comint hides = /Applications/Emacs.app/Contents/Resources/lisp/org/ob-comint /Users/wgl/.emacs.d/elisp/org-7.8.11/lisp/ob-clojure hides = /Applications/Emacs.app/Contents/Resources/lisp/org/ob-clojure /Users/wgl/.emacs.d/elisp/org-7.8.11/lisp/ob-calc hides = /Applications/Emacs.app/Contents/Resources/lisp/org/ob-calc /Users/wgl/.emacs.d/elisp/org-7.8.11/lisp/ob-C hides = /Applications/Emacs.app/Contents/Resources/lisp/org/ob-C /Users/wgl/.emacs.d/elisp/org-7.8.11/lisp/ob-awk hides = /Applications/Emacs.app/Contents/Resources/lisp/org/ob-awk /Users/wgl/.emacs.d/elisp/org-7.8.11/lisp/ob-asymptote hides = /Applications/Emacs.app/Contents/Resources/lisp/org/ob-asymptote Features: (shadow sort gnus-util mail-extr emacsbug vc-hg conf-mode nxml-uchnm rng-xsd xsd-regexp rng-cmpct rng-nxml rng-valid rng-loc rng-uri rng-parse nxml-parse rng-match rng-dt rng-util rng-pttrn nxml-ns nxml-mode nxml-outln nxml-rap nxml-util nxml-glyph nxml-enc xmltok generic sh-script smie executable make-mode vc-dispatcher vc-svn vc-git package epg-config zenburn color-theme sendmail reporter git ewoc paredit geiser-load geiser org-remember org-datetree org ob-emacs-lisp ob-tangle ob-ref ob-lob ob-table org-footnote org-src ob-comint ob-keys ob ob-eval org-pcomplete pcomplete org-list org-faces org-compat org-entities org-macs cal-menu calendar cal-loaddefs remember-autoloads psvn wid-edit log-edit message format-spec rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mailabbrev mail-utils gmm-utils mailheader pcvs-util add-log diff-mode ediff-merg ediff-wind ediff-diff ediff-mult ediff-help ediff-init ediff-util dired-x dired html-mode jsp-html-helper-mode asp-html-helper-mode php-html-helper-mode html-helper-mode tempo cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs generic-x w3m-load slime-banner slime-asdf grep slime-fancy slime-trace-dialog slime-fontifying-fu slime-package-fu slime-references slime-compiler-notes-tree slime-scratch slime-presentations bridge slime-fuzzy slime-fancy-trace slime-fancy-inspector slime-c-p-c slime-editing-commands slime-autodoc advice eldoc slime-repl elp slime-parse slime byte-opt bytecomp byte-compile cconv derived help-fns gud compile apropos etags arc-mode archive-mode noutline outline easy-mmode easymenu pp comint ansi-color ring hyperspec cl-macs thingatpt browse-url cl gv slime-autoloads go-mode-load edmacro kmacro saveplace paren ido hi-lock desktop frameset cl-loaddefs cl-lib cus-start cus-load time time-date tooltip electric uniquify ediff-hook vc-hooks lisp-float-type mwheel ns-win tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer 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 make-network-process cocoa ns multi-tty emacs) Memory information: ((conses 16 486290 40349) (symbols 48 42394 0) (miscs 40 5406 113) (strings 32 92062 15570) (string-bytes 1 2516152) (vectors 16 31655) (vector-slots 8 671010 26748) (floats 8 374 497) (intervals 56 17829 0) (buffers 960 56)) From unknown Mon Jun 23 18:33:45 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.503 (Entity 5.503) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: William Lederer Subject: bug#18846: closed (Re: bug#18846: 24.4; isatty fix in revision 114730 breaks in shell scripts) Message-ID: References: <5614382F-96A1-4B8C-B3B5-728371987E68@swipnet.se> <2705A03D-6BB9-4C6E-B6D9-08C64B587E34@ciexinc.com> X-Gnu-PR-Message: they-closed 18846 X-Gnu-PR-Package: emacs Reply-To: 18846@debbugs.gnu.org Date: Fri, 31 Oct 2014 15:21:04 +0000 Content-Type: multipart/mixed; boundary="----------=_1414768864-11784-1" This is a multi-part message in MIME format... ------------=_1414768864-11784-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #18846: 24.4; isatty fix in revision 114730 breaks in shell scripts 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 18846@debbugs.gnu.org. --=20 18846: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D18846 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1414768864-11784-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 18846-done) by debbugs.gnu.org; 31 Oct 2014 15:21:00 +0000 Received: from localhost ([127.0.0.1]:41279 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XkE0Z-00033h-Kq for submit@debbugs.gnu.org; Fri, 31 Oct 2014 11:21:00 -0400 Received: from mailfe02.swip.net ([212.247.154.33]:56349 helo=swip.net) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XkE0W-00033O-Hz for 18846-done@debbugs.gnu.org; Fri, 31 Oct 2014 11:20:57 -0400 X-T2-Spam-Status: No, hits=0.8 required=5.0 tests=BAYES_50 Received: from hosdjarv.se (account mj138573@tele2.se [46.59.42.57] verified) by mailfe02.swip.net (CommuniGate Pro SMTP 5.4.4) with ESMTPA id 545601724; Fri, 31 Oct 2014 16:20:49 +0100 Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 8.0 \(1990.1\)) Subject: Re: bug#18846: 24.4; isatty fix in revision 114730 breaks in shell scripts From: =?utf-8?Q?Jan_Dj=C3=A4rv?= In-Reply-To: <2705A03D-6BB9-4C6E-B6D9-08C64B587E34@ciexinc.com> Date: Fri, 31 Oct 2014 16:20:48 +0100 Content-Transfer-Encoding: quoted-printable Message-Id: <5614382F-96A1-4B8C-B3B5-728371987E68@swipnet.se> References: <2705A03D-6BB9-4C6E-B6D9-08C64B587E34@ciexinc.com> To: William Lederer X-Mailer: Apple Mail (2.1990.1) X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 18846-done Cc: 18846-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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.0 (/) Hi. > 26 okt 2014 kl. 23:33 skrev William Lederer : >=20 >=20 > Maintainers: >=20 > In emacs 24.4 built for mac os x, if I invoke emacs from a command > line, it properly remembers the current directory. However, if I = launch > it from a shell script called from the command line, it forgets the > current directory and goes to the home directory. This happens even if > the --chdir option is used on the command line. >=20 > If the command=20 >=20 > /Applications/Emacs.app/Contents/MacOS/Emacs & >=20 > is launched from an interactive shell, all is well. If it is launched > from an executable script ~/bin/ea >=20 > #!/bin/bash > /Applications/Emacs.app/Contents/MacOS/Emacs --chdir `pwd` --title = "`basename $PWD` hosted `hostname`" & >=20 > emacs ends up in the home directory. I checked in a fix in the 24-branch such as --chdir will work in this = case. But the rest of 114730 stands, it fixes another bug. Jan D. ------------=_1414768864-11784-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 26 Oct 2014 22:34:37 +0000 Received: from localhost ([127.0.0.1]:36243 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XiWOR-0007MJ-GD for submit@debbugs.gnu.org; Sun, 26 Oct 2014 18:34:36 -0400 Received: from eggs.gnu.org ([208.118.235.92]:34699) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XiWON-0007M2-Q6 for submit@debbugs.gnu.org; Sun, 26 Oct 2014 18:34:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XiWOB-0006VT-Lh for submit@debbugs.gnu.org; Sun, 26 Oct 2014 18:34:26 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:55725) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XiWOB-0006VG-Ik for submit@debbugs.gnu.org; Sun, 26 Oct 2014 18:34:19 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:36421) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XiWO5-0005fL-Ig for bug-gnu-emacs@gnu.org; Sun, 26 Oct 2014 18:34:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XiWNz-0006UK-Jp for bug-gnu-emacs@gnu.org; Sun, 26 Oct 2014 18:34:13 -0400 Received: from ciexinc.com ([162.243.6.40]:43256) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1XiWNz-0006UA-FZ for bug-gnu-emacs@gnu.org; Sun, 26 Oct 2014 18:34:07 -0400 Received: (qmail 5617 invoked from network); 26 Oct 2014 22:33:48 -0000 Received: from c-50-179-195-64.hsd1.il.comcast.net (HELO ?10.0.0.76?) (50.179.195.64) by ciexinc.com with SMTP; 26 Oct 2014 22:33:48 -0000 From: William Lederer Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Subject: 24.4; isatty fix in revision 114730 breaks in shell scripts Message-Id: <2705A03D-6BB9-4C6E-B6D9-08C64B587E34@ciexinc.com> Date: Sun, 26 Oct 2014 17:33:45 -0500 To: bug-gnu-emacs@gnu.org Mime-Version: 1.0 (Mac OS X Mail 8.0 \(1990.1\)) X-Mailer: Apple Mail (2.1990.1) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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: -5.0 (-----) Maintainers: In emacs 24.4 built for mac os x, if I invoke emacs from a command line, it properly remembers the current directory. However, if I launch it from a shell script called from the command line, it forgets the current directory and goes to the home directory. This happens even if the --chdir option is used on the command line. If the command=20 /Applications/Emacs.app/Contents/MacOS/Emacs & is launched from an interactive shell, all is well. If it is launched from an executable script ~/bin/ea #!/bin/bash /Applications/Emacs.app/Contents/MacOS/Emacs --chdir `pwd` --title = "`basename $PWD` hosted `hostname`" & emacs ends up in the home directory. In GNU Emacs 24.4.1 (x86_64-apple-darwin13.4.0, NS apple-appkit-1265.21) of 2014-10-20 on builder10-9.porkrind.org Windowing system distributor `Apple', version 10.3.1343 Configured using: `configure --with-ns' Important settings: value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: Dired by name Minor modes in effect: diff-auto-refine-mode: t show-paren-mode: t global-hi-lock-mode: t hi-lock-mode: t desktop-save-mode: t display-time-mode: t tooltip-mode: t electric-indent-mode: t mouse-wheel-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 buffer-read-only: t column-number-mode: t line-number-mode: t Recent input: C-x RET r e p o r t - e m a Recent messages: Using vacuous schema [7 times] Setting up indent for shell type sh Indentation variables are now local. Indentation setup for shell type sh Setting up indent for shell type bash Indentation variables are now local. Indentation setup for shell type bash Wrote /Users/wgl/projects/kismet-logging/.emacs.desktop.lock Desktop: 1 frame, 44 buffers restored. For information about GNU Emacs and the GNU system, type C-h C-a. Load-path shadows: /Users/wgl/.emacs.d/elpa/magit-20141025.429/magit hides = /usr/local/share/emacs/site-lisp/magit /Users/wgl/.emacs.d/elpa/magit-20141025.429/magit-wip hides = /usr/local/share/emacs/site-lisp/magit-wip /Users/wgl/.emacs.d/elpa/magit-20141025.429/magit-key-mode hides = /usr/local/share/emacs/site-lisp/magit-key-mode /Users/wgl/.emacs.d/elpa/magit-20141025.429/magit-blame hides = /usr/local/share/emacs/site-lisp/magit-blame /Users/wgl/quicklisp/dists/quicklisp/software/slime-2.8/contrib/bridge = hides /Users/wgl/.emacs.d/elisp/bridge /Users/wgl/.emacs.d/elisp/tree-widget hides = /Applications/Emacs.app/Contents/Resources/lisp/tree-widget ~/.emacs.d/elisp/remember-2.0/remember hides = /Applications/Emacs.app/Contents/Resources/lisp/textmodes/remember /Users/wgl/.emacs.d/elisp/org-7.8.11/lisp/org hides = /Applications/Emacs.app/Contents/Resources/lisp/org/org /Users/wgl/.emacs.d/elisp/org-7.8.11/lisp/org-w3m hides = /Applications/Emacs.app/Contents/Resources/lisp/org/org-w3m /Users/wgl/.emacs.d/elisp/org-7.8.11/lisp/org-timer hides = /Applications/Emacs.app/Contents/Resources/lisp/org/org-timer /Users/wgl/.emacs.d/elisp/org-7.8.11/lisp/org-table hides = /Applications/Emacs.app/Contents/Resources/lisp/org/org-table /Users/wgl/.emacs.d/elisp/org-7.8.11/lisp/org-src hides = /Applications/Emacs.app/Contents/Resources/lisp/org/org-src /Users/wgl/.emacs.d/elisp/org-7.8.11/lisp/org-rmail hides = /Applications/Emacs.app/Contents/Resources/lisp/org/org-rmail /Users/wgl/.emacs.d/elisp/org-7.8.11/lisp/org-protocol hides = /Applications/Emacs.app/Contents/Resources/lisp/org/org-protocol /Users/wgl/.emacs.d/elisp/org-7.8.11/lisp/org-plot hides = /Applications/Emacs.app/Contents/Resources/lisp/org/org-plot /Users/wgl/.emacs.d/elisp/org-7.8.11/lisp/org-pcomplete hides = /Applications/Emacs.app/Contents/Resources/lisp/org/org-pcomplete /Users/wgl/.emacs.d/elisp/org-7.8.11/lisp/org-mouse hides = /Applications/Emacs.app/Contents/Resources/lisp/org/org-mouse /Users/wgl/.emacs.d/elisp/org-7.8.11/lisp/org-mobile hides = /Applications/Emacs.app/Contents/Resources/lisp/org/org-mobile /Users/wgl/.emacs.d/elisp/org-7.8.11/lisp/org-mhe hides = /Applications/Emacs.app/Contents/Resources/lisp/org/org-mhe /Users/wgl/.emacs.d/elisp/org-7.8.11/lisp/org-macs hides = /Applications/Emacs.app/Contents/Resources/lisp/org/org-macs /Users/wgl/.emacs.d/elisp/org-7.8.11/lisp/org-list hides = /Applications/Emacs.app/Contents/Resources/lisp/org/org-list /Users/wgl/.emacs.d/elisp/org-7.8.11/lisp/org-irc hides = /Applications/Emacs.app/Contents/Resources/lisp/org/org-irc /Users/wgl/.emacs.d/elisp/org-7.8.11/lisp/org-install hides = /Applications/Emacs.app/Contents/Resources/lisp/org/org-install /Users/wgl/.emacs.d/elisp/org-7.8.11/lisp/org-inlinetask hides = /Applications/Emacs.app/Contents/Resources/lisp/org/org-inlinetask /Users/wgl/.emacs.d/elisp/org-7.8.11/lisp/org-info hides = /Applications/Emacs.app/Contents/Resources/lisp/org/org-info /Users/wgl/.emacs.d/elisp/org-7.8.11/lisp/org-indent hides = /Applications/Emacs.app/Contents/Resources/lisp/org/org-indent /Users/wgl/.emacs.d/elisp/org-7.8.11/lisp/org-id hides = /Applications/Emacs.app/Contents/Resources/lisp/org/org-id /Users/wgl/.emacs.d/elisp/org-7.8.11/lisp/org-habit hides = /Applications/Emacs.app/Contents/Resources/lisp/org/org-habit /Users/wgl/.emacs.d/elisp/org-7.8.11/lisp/org-gnus hides = /Applications/Emacs.app/Contents/Resources/lisp/org/org-gnus /Users/wgl/.emacs.d/elisp/org-7.8.11/lisp/org-footnote hides = /Applications/Emacs.app/Contents/Resources/lisp/org/org-footnote /Users/wgl/.emacs.d/elisp/org-7.8.11/lisp/org-feed hides = /Applications/Emacs.app/Contents/Resources/lisp/org/org-feed /Users/wgl/.emacs.d/elisp/org-7.8.11/lisp/org-faces hides = /Applications/Emacs.app/Contents/Resources/lisp/org/org-faces /Users/wgl/.emacs.d/elisp/org-7.8.11/lisp/org-eshell hides = /Applications/Emacs.app/Contents/Resources/lisp/org/org-eshell /Users/wgl/.emacs.d/elisp/org-7.8.11/lisp/org-entities hides = /Applications/Emacs.app/Contents/Resources/lisp/org/org-entities /Users/wgl/.emacs.d/elisp/org-7.8.11/lisp/org-docview hides = /Applications/Emacs.app/Contents/Resources/lisp/org/org-docview /Users/wgl/.emacs.d/elisp/org-7.8.11/lisp/org-datetree hides = /Applications/Emacs.app/Contents/Resources/lisp/org/org-datetree /Users/wgl/.emacs.d/elisp/org-7.8.11/lisp/org-ctags hides = /Applications/Emacs.app/Contents/Resources/lisp/org/org-ctags /Users/wgl/.emacs.d/elisp/org-7.8.11/lisp/org-crypt hides = /Applications/Emacs.app/Contents/Resources/lisp/org/org-crypt /Users/wgl/.emacs.d/elisp/org-7.8.11/lisp/org-compat hides = /Applications/Emacs.app/Contents/Resources/lisp/org/org-compat /Users/wgl/.emacs.d/elisp/org-7.8.11/lisp/org-colview hides = /Applications/Emacs.app/Contents/Resources/lisp/org/org-colview /Users/wgl/.emacs.d/elisp/org-7.8.11/lisp/org-clock hides = /Applications/Emacs.app/Contents/Resources/lisp/org/org-clock /Users/wgl/.emacs.d/elisp/org-7.8.11/lisp/org-capture hides = /Applications/Emacs.app/Contents/Resources/lisp/org/org-capture /Users/wgl/.emacs.d/elisp/org-7.8.11/lisp/org-bibtex hides = /Applications/Emacs.app/Contents/Resources/lisp/org/org-bibtex /Users/wgl/.emacs.d/elisp/org-7.8.11/lisp/org-bbdb hides = /Applications/Emacs.app/Contents/Resources/lisp/org/org-bbdb /Users/wgl/.emacs.d/elisp/org-7.8.11/lisp/org-attach hides = /Applications/Emacs.app/Contents/Resources/lisp/org/org-attach /Users/wgl/.emacs.d/elisp/org-7.8.11/lisp/org-archive hides = /Applications/Emacs.app/Contents/Resources/lisp/org/org-archive /Users/wgl/.emacs.d/elisp/org-7.8.11/lisp/org-agenda hides = /Applications/Emacs.app/Contents/Resources/lisp/org/org-agenda /Users/wgl/.emacs.d/elisp/org-7.8.11/lisp/ob hides = /Applications/Emacs.app/Contents/Resources/lisp/org/ob /Users/wgl/.emacs.d/elisp/org-7.8.11/lisp/ob-tangle hides = /Applications/Emacs.app/Contents/Resources/lisp/org/ob-tangle /Users/wgl/.emacs.d/elisp/org-7.8.11/lisp/ob-table hides = /Applications/Emacs.app/Contents/Resources/lisp/org/ob-table /Users/wgl/.emacs.d/elisp/org-7.8.11/lisp/ob-sqlite hides = /Applications/Emacs.app/Contents/Resources/lisp/org/ob-sqlite /Users/wgl/.emacs.d/elisp/org-7.8.11/lisp/ob-sql hides = /Applications/Emacs.app/Contents/Resources/lisp/org/ob-sql /Users/wgl/.emacs.d/elisp/org-7.8.11/lisp/ob-shen hides = /Applications/Emacs.app/Contents/Resources/lisp/org/ob-shen /Users/wgl/.emacs.d/elisp/org-7.8.11/lisp/ob-sh hides = /Applications/Emacs.app/Contents/Resources/lisp/org/ob-sh /Users/wgl/.emacs.d/elisp/org-7.8.11/lisp/ob-screen hides = /Applications/Emacs.app/Contents/Resources/lisp/org/ob-screen /Users/wgl/.emacs.d/elisp/org-7.8.11/lisp/ob-scheme hides = /Applications/Emacs.app/Contents/Resources/lisp/org/ob-scheme /Users/wgl/.emacs.d/elisp/org-7.8.11/lisp/ob-sass hides = /Applications/Emacs.app/Contents/Resources/lisp/org/ob-sass /Users/wgl/.emacs.d/elisp/org-7.8.11/lisp/ob-ruby hides = /Applications/Emacs.app/Contents/Resources/lisp/org/ob-ruby /Users/wgl/.emacs.d/elisp/org-7.8.11/lisp/ob-ref hides = /Applications/Emacs.app/Contents/Resources/lisp/org/ob-ref /Users/wgl/.emacs.d/elisp/org-7.8.11/lisp/ob-R hides = /Applications/Emacs.app/Contents/Resources/lisp/org/ob-R /Users/wgl/.emacs.d/elisp/org-7.8.11/lisp/ob-python hides = /Applications/Emacs.app/Contents/Resources/lisp/org/ob-python /Users/wgl/.emacs.d/elisp/org-7.8.11/lisp/ob-plantuml hides = /Applications/Emacs.app/Contents/Resources/lisp/org/ob-plantuml /Users/wgl/.emacs.d/elisp/org-7.8.11/lisp/ob-picolisp hides = /Applications/Emacs.app/Contents/Resources/lisp/org/ob-picolisp /Users/wgl/.emacs.d/elisp/org-7.8.11/lisp/ob-perl hides = /Applications/Emacs.app/Contents/Resources/lisp/org/ob-perl /Users/wgl/.emacs.d/elisp/org-7.8.11/lisp/ob-org hides = /Applications/Emacs.app/Contents/Resources/lisp/org/ob-org /Users/wgl/.emacs.d/elisp/org-7.8.11/lisp/ob-octave hides = /Applications/Emacs.app/Contents/Resources/lisp/org/ob-octave /Users/wgl/.emacs.d/elisp/org-7.8.11/lisp/ob-ocaml hides = /Applications/Emacs.app/Contents/Resources/lisp/org/ob-ocaml /Users/wgl/.emacs.d/elisp/org-7.8.11/lisp/ob-mscgen hides = /Applications/Emacs.app/Contents/Resources/lisp/org/ob-mscgen /Users/wgl/.emacs.d/elisp/org-7.8.11/lisp/ob-maxima hides = /Applications/Emacs.app/Contents/Resources/lisp/org/ob-maxima /Users/wgl/.emacs.d/elisp/org-7.8.11/lisp/ob-matlab hides = /Applications/Emacs.app/Contents/Resources/lisp/org/ob-matlab /Users/wgl/.emacs.d/elisp/org-7.8.11/lisp/ob-lob hides = /Applications/Emacs.app/Contents/Resources/lisp/org/ob-lob /Users/wgl/.emacs.d/elisp/org-7.8.11/lisp/ob-lisp hides = /Applications/Emacs.app/Contents/Resources/lisp/org/ob-lisp /Users/wgl/.emacs.d/elisp/org-7.8.11/lisp/ob-lilypond hides = /Applications/Emacs.app/Contents/Resources/lisp/org/ob-lilypond /Users/wgl/.emacs.d/elisp/org-7.8.11/lisp/ob-ledger hides = /Applications/Emacs.app/Contents/Resources/lisp/org/ob-ledger /Users/wgl/.emacs.d/elisp/org-7.8.11/lisp/ob-latex hides = /Applications/Emacs.app/Contents/Resources/lisp/org/ob-latex /Users/wgl/.emacs.d/elisp/org-7.8.11/lisp/ob-keys hides = /Applications/Emacs.app/Contents/Resources/lisp/org/ob-keys /Users/wgl/.emacs.d/elisp/org-7.8.11/lisp/ob-js hides = /Applications/Emacs.app/Contents/Resources/lisp/org/ob-js /Users/wgl/.emacs.d/elisp/org-7.8.11/lisp/ob-java hides = /Applications/Emacs.app/Contents/Resources/lisp/org/ob-java /Users/wgl/.emacs.d/elisp/org-7.8.11/lisp/ob-haskell hides = /Applications/Emacs.app/Contents/Resources/lisp/org/ob-haskell /Users/wgl/.emacs.d/elisp/org-7.8.11/lisp/ob-gnuplot hides = /Applications/Emacs.app/Contents/Resources/lisp/org/ob-gnuplot /Users/wgl/.emacs.d/elisp/org-7.8.11/lisp/ob-fortran hides = /Applications/Emacs.app/Contents/Resources/lisp/org/ob-fortran /Users/wgl/.emacs.d/elisp/org-7.8.11/lisp/ob-exp hides = /Applications/Emacs.app/Contents/Resources/lisp/org/ob-exp /Users/wgl/.emacs.d/elisp/org-7.8.11/lisp/ob-eval hides = /Applications/Emacs.app/Contents/Resources/lisp/org/ob-eval /Users/wgl/.emacs.d/elisp/org-7.8.11/lisp/ob-emacs-lisp hides = /Applications/Emacs.app/Contents/Resources/lisp/org/ob-emacs-lisp /Users/wgl/.emacs.d/elisp/org-7.8.11/lisp/ob-dot hides = /Applications/Emacs.app/Contents/Resources/lisp/org/ob-dot /Users/wgl/.emacs.d/elisp/org-7.8.11/lisp/ob-ditaa hides = /Applications/Emacs.app/Contents/Resources/lisp/org/ob-ditaa /Users/wgl/.emacs.d/elisp/org-7.8.11/lisp/ob-css hides = /Applications/Emacs.app/Contents/Resources/lisp/org/ob-css /Users/wgl/.emacs.d/elisp/org-7.8.11/lisp/ob-comint hides = /Applications/Emacs.app/Contents/Resources/lisp/org/ob-comint /Users/wgl/.emacs.d/elisp/org-7.8.11/lisp/ob-clojure hides = /Applications/Emacs.app/Contents/Resources/lisp/org/ob-clojure /Users/wgl/.emacs.d/elisp/org-7.8.11/lisp/ob-calc hides = /Applications/Emacs.app/Contents/Resources/lisp/org/ob-calc /Users/wgl/.emacs.d/elisp/org-7.8.11/lisp/ob-C hides = /Applications/Emacs.app/Contents/Resources/lisp/org/ob-C /Users/wgl/.emacs.d/elisp/org-7.8.11/lisp/ob-awk hides = /Applications/Emacs.app/Contents/Resources/lisp/org/ob-awk /Users/wgl/.emacs.d/elisp/org-7.8.11/lisp/ob-asymptote hides = /Applications/Emacs.app/Contents/Resources/lisp/org/ob-asymptote Features: (shadow sort gnus-util mail-extr emacsbug vc-hg conf-mode nxml-uchnm rng-xsd xsd-regexp rng-cmpct rng-nxml rng-valid rng-loc rng-uri rng-parse nxml-parse rng-match rng-dt rng-util rng-pttrn nxml-ns nxml-mode nxml-outln nxml-rap nxml-util nxml-glyph nxml-enc xmltok generic sh-script smie executable make-mode vc-dispatcher vc-svn vc-git package epg-config zenburn color-theme sendmail reporter git ewoc paredit geiser-load geiser org-remember org-datetree org ob-emacs-lisp ob-tangle ob-ref ob-lob ob-table org-footnote org-src ob-comint ob-keys ob ob-eval org-pcomplete pcomplete org-list org-faces org-compat org-entities org-macs cal-menu calendar cal-loaddefs remember-autoloads psvn wid-edit log-edit message format-spec rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mailabbrev mail-utils gmm-utils mailheader pcvs-util add-log diff-mode ediff-merg ediff-wind ediff-diff ediff-mult ediff-help ediff-init ediff-util dired-x dired html-mode jsp-html-helper-mode asp-html-helper-mode php-html-helper-mode html-helper-mode tempo cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs generic-x w3m-load slime-banner slime-asdf grep slime-fancy slime-trace-dialog slime-fontifying-fu slime-package-fu slime-references slime-compiler-notes-tree slime-scratch slime-presentations bridge slime-fuzzy slime-fancy-trace slime-fancy-inspector slime-c-p-c slime-editing-commands slime-autodoc advice eldoc slime-repl elp slime-parse slime byte-opt bytecomp byte-compile cconv derived help-fns gud compile apropos etags arc-mode archive-mode noutline outline easy-mmode easymenu pp comint ansi-color ring hyperspec cl-macs thingatpt browse-url cl gv slime-autoloads go-mode-load edmacro kmacro saveplace paren ido hi-lock desktop frameset cl-loaddefs cl-lib cus-start cus-load time time-date tooltip electric uniquify ediff-hook vc-hooks lisp-float-type mwheel ns-win tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer 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 make-network-process cocoa ns multi-tty emacs) Memory information: ((conses 16 486290 40349) (symbols 48 42394 0) (miscs 40 5406 113) (strings 32 92062 15570) (string-bytes 1 2516152) (vectors 16 31655) (vector-slots 8 671010 26748) (floats 8 374 497) (intervals 56 17829 0) (buffers 960 56)) ------------=_1414768864-11784-1-- From unknown Mon Jun 23 18:33:45 2025 X-Loop: help-debbugs@gnu.org Subject: bug#18846: 24.4; isatty fix in revision 114730 breaks in shell scripts Resent-From: William Lederer Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 31 Oct 2014 15:37:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 18846 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Jan =?UTF-8?Q?Dj=C3=A4rv?= Cc: 18846-done@debbugs.gnu.org Received: via spool by 18846-done@debbugs.gnu.org id=D18846.141476979213561 (code D ref 18846); Fri, 31 Oct 2014 15:37:02 +0000 Received: (at 18846-done) by debbugs.gnu.org; 31 Oct 2014 15:36:32 +0000 Received: from localhost ([127.0.0.1]:41341 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XkEFc-0003Wd-3G for submit@debbugs.gnu.org; Fri, 31 Oct 2014 11:36:32 -0400 Received: from ciexinc.com ([162.243.6.40]:33520) by debbugs.gnu.org with smtp (Exim 4.80) (envelope-from ) id 1XkEFZ-0003WT-Or for 18846-done@debbugs.gnu.org; Fri, 31 Oct 2014 11:36:30 -0400 Received: (qmail 6755 invoked from network); 31 Oct 2014 15:36:14 -0000 Received: from c-50-179-195-64.hsd1.il.comcast.net (HELO ?10.0.0.76?) (50.179.195.64) by ciexinc.com with SMTP; 31 Oct 2014 15:36:14 -0000 Content-Type: multipart/alternative; boundary="Apple-Mail=_140CB165-5738-4C3B-9F7C-EEF1BF65E1F7" Mime-Version: 1.0 (Mac OS X Mail 8.0 \(1990.1\)) From: William Lederer In-Reply-To: <5614382F-96A1-4B8C-B3B5-728371987E68@swipnet.se> Date: Fri, 31 Oct 2014 10:36:10 -0500 Message-Id: <8E98D65F-0601-4942-B416-2A1E23EA9E29@ciexinc.com> References: <2705A03D-6BB9-4C6E-B6D9-08C64B587E34@ciexinc.com> <5614382F-96A1-4B8C-B3B5-728371987E68@swipnet.se> X-Mailer: Apple Mail (2.1990.1) X-Spam-Score: -0.6 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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.6 (/) --Apple-Mail=_140CB165-5738-4C3B-9F7C-EEF1BF65E1F7 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Thanks much! wglb > On Oct 31, 2014, at 10:20 AM, Jan Dj=C3=A4rv = wrote: >=20 > Hi. >=20 >> 26 okt 2014 kl. 23:33 skrev William Lederer : >>=20 >>=20 >> Maintainers: >>=20 >> In emacs 24.4 built for mac os x, if I invoke emacs from a command >> line, it properly remembers the current directory. However, if I = launch >> it from a shell script called from the command line, it forgets the >> current directory and goes to the home directory. This happens even = if >> the --chdir option is used on the command line. >>=20 >> If the command=20 >>=20 >> /Applications/Emacs.app/Contents/MacOS/Emacs & >>=20 >> is launched from an interactive shell, all is well. If it is = launched >> from an executable script ~/bin/ea >>=20 >> #!/bin/bash >> /Applications/Emacs.app/Contents/MacOS/Emacs --chdir `pwd` --title = "`basename $PWD` hosted `hostname`" & >>=20 >> emacs ends up in the home directory. >=20 > I checked in a fix in the 24-branch such as --chdir will work in this = case. > But the rest of 114730 stands, it fixes another bug. >=20 > Jan D. --Apple-Mail=_140CB165-5738-4C3B-9F7C-EEF1BF65E1F7 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 Thanks much!

wglb

On Oct 31, 2014, at 10:20 AM, = Jan Dj=C3=A4rv <jan.h.d@swipnet.se> wrote:

Hi.

26 okt 2014 kl. 23:33 skrev William Lederer <wgl@ciexinc.com>:


Maintainers:

In emacs 24.4 built for mac os x, if I invoke emacs from a = command
line, it properly remembers the current directory. =  However, if I launch
it from a shell script called = from the command line, it forgets the
current directory = and goes to the home directory. This happens even if
the = --chdir option is used on the command line.

If the command 

/Applications/Emacs.app/Contents/MacOS/Emacs &

is launched from an interactive shell, all is = well.  If it is launched
from an executable script = ~/bin/ea

#!/bin/bash
/Applications/Emacs.app/Contents/MacOS/Emacs --chdir `pwd` = --title "`basename $PWD` hosted `hostname`"  &

emacs ends up in the home directory.

I checked in a fix in the = 24-branch such as --chdir will work in this case.
But the rest of 114730 stands, it fixes another = bug.

Jan D.

= --Apple-Mail=_140CB165-5738-4C3B-9F7C-EEF1BF65E1F7--