Re: Bash handling of ENOENT on missing files and directories
From:
Bob Proulx
Subject:
Re: Bash handling of ENOENT on missing files and directories
Date:
Mon, 11 Sep 2017 11:58:38 -0600
User-agent:
NeoMutt/20170609 (1.8.3)
Jonny Grant wrote:
> Greg Wooledge wrote:
> > The wording is taken directly from perror() and related library calls,
> > as translated for your locale.
>
> Yes, it's a known limitation of POSIX that it uses a shared error code for
> both files and directors, ENOENT. Which without programmers handling and
> checking the stat() flags, means the error isn't completely clear in the
> case where a file or dir does exist.
I don't see how POSIX is involved in this. Blaming POSIX is a
complete non-sequitur here.
> I imagine we have spoken already for longer about this, than it would have
> been to fix it.
I see no bug to fix here. However I fear that trying to fix an
imaginary one would introduce a bug here.
Bob