all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Alexander Zhukov <zuav@crystax.net>
Cc: 21573@debbugs.gnu.org
Subject: bug#21573: (no subject)
Date: Thu, 03 Dec 2015 09:14:05 +0200	[thread overview]
Message-ID: <8337vkj96q.fsf@gnu.org> (raw)
In-Reply-To: <m2d1uobtzy.fsf@crystax.net>

> 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'.

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

No, it again returns nil here.  As it should, since this file is not a
directory.

> NB I'm using standard terminal app that goes with OS X.

Could be something OS X specific, I tried on GNU/Linux and on Windows,
and the function always returns nil for files that are not
directories.

I tried both in a Git repository where I have many files, and in a
repository where I have only one shell script, as you mentioned.  The
results are always the same.

What version of Emacs do you use?





  reply	other threads:[~2015-12-03  7:14 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 [this message]
2015-12-03 12:23     ` Alexander Zhukov
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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8337vkj96q.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=21573@debbugs.gnu.org \
    --cc=zuav@crystax.net \
    /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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.