GNU bug report logs - #18846
24.4; isatty fix in revision 114730 breaks in shell scripts

Previous Next

Package: emacs;

Reported by: William Lederer <wgl <at> ciexinc.com>

Date: Sun, 26 Oct 2014 22:35:01 UTC

Severity: normal

Found in version 24.4

Done: Jan Djärv <jan.h.d <at> swipnet.se>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: William Lederer <wgl <at> ciexinc.com>
To: Jan Djärv <jan.h.d <at> swipnet.se>
Cc: 18846-done <at> debbugs.gnu.org
Subject: bug#18846: 24.4; isatty fix in revision 114730 breaks in shell scripts
Date: Fri, 31 Oct 2014 10:36:10 -0500
[Message part 1 (text/plain, inline)]
Thanks much!

wglb

> On Oct 31, 2014, at 10:20 AM, Jan Djärv <jan.h.d <at> swipnet.se> wrote:
> 
> Hi.
> 
>> 26 okt 2014 kl. 23:33 skrev William Lederer <wgl <at> 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.

[Message part 2 (text/html, inline)]

This bug report was last modified 10 years and 209 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.