From: Alexander Zhukov <zuav@crystax.net>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 21573@debbugs.gnu.org
Subject: bug#21573: (no subject)
Date: Thu, 03 Dec 2015 15:23:41 +0300 [thread overview]
Message-ID: <m28u5bbu0i.fsf@crystax.net> (raw)
In-Reply-To: <8337vkj96q.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 03 Dec 2015 09:14:05 +0200")
>>>>> Eli Zaretskii (EZ) writes:
>> From: Alexander Zhukov <zuav@crystax.net> Date: Wed, 02 Dec 2015
>> 21:11:45 +0300
>>
>> 1. Create Git repo with a one file: some bash scripts with
>> executable bit set, f.e. script.sh.
>>
>> 2. Open fresh terminal. I mean close running terminal app with Cmd-Q
>> and run a fresh copy.
>>
>> 3. Run Emacs app like this:
>> /Applications/Emacs.app/Contents/MacOS/Emacs -Q &
>>
>> 4. Eval in the scratch buffer (file-accessible-directory-p
>> "/private/var/tmp/repo/script.sh"). The result should be 'nil'
>>
>> 5. Open file: C-x C-f ".../script.sh"
>>
>> 6. Go back the scratch buffer and eval (file-accessible-directory-p
>> ".../script.sh") The result should be 't'.
EZ> It is nil here.
>> 7. Exit Emacs with C-x C-c
>>
>> 8. Run Emacs from the same terminal window as in 3.
>>
>> 9. Eval in the scratch buffer (file-accessible-directory-p
>> "/private/var/tmp/repo/script.sh") The result should be t
EZ> No, it again returns nil here. As it should, since this file is
EZ> not a directory.
>> NB I'm using standard terminal app that goes with OS X.
EZ> Could be something OS X specific, I tried on GNU/Linux and on
EZ> Windows, and the function always returns nil for files that are not
EZ> directories.
EZ> I tried both in a Git repository where I have many files, and in a
EZ> repository where I have only one shell script, as you mentioned.
EZ> The results are always the same.
Yes, it's OS X specific. Even more, it's seems to be specific to my
machine and the author of the original bug. I have reported this bug to
magit initially and so far nobody with OS X machines was able to
reproduce the bug.
EZ> What version of Emacs do you use?
GNU Emacs 24.5.1 (x86_64-apple-darwin14.3.0, NS apple-appkit-1347.57) of
2015-04-13 on ithilien
--
Alexander Zhukov
next prev parent reply other threads:[~2015-12-03 12:23 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-09-27 6:27 bug#21573: 24.5; file-accessible-directory-p behaves incorrectly with executable file on Mac OS X Praveen Kumar
2015-12-02 18:11 ` bug#21573: (no subject) Alexander Zhukov
2015-12-03 7:14 ` Eli Zaretskii
2015-12-03 12:23 ` Alexander Zhukov [this message]
2015-12-06 6:28 ` YAMAMOTO Mitsuharu
2021-01-03 10:44 ` bug#21573: 24.5; file-accessible-directory-p behaves incorrectly with executable file on Mac OS X Alan Third
2016-03-26 10:07 ` bug#21573: Jonas Bernoulli
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m28u5bbu0i.fsf@crystax.net \
--to=zuav@crystax.net \
--cc=21573@debbugs.gnu.org \
--cc=eliz@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).