bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bash handling of ENOENT on missing files and directories


From: Jonny Grant
Subject: Re: Bash handling of ENOENT on missing files and directories
Date: Tue, 5 Sep 2017 00:20:23 +0300
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1



On 29/08/17 16:35, Chet Ramey wrote:
On 8/29/17 8:40 AM, Jonny Grant wrote:
Hello

Could bash have some better handling of ENOENT for directories that don't
exist and files that don't exist?

Better than the error message the OS associates with that errno? The one
that comes straight from strerror()?

Hi Chet, yes perhaps like GNU Objdump does:


$ objdump -d missing.elf
objdump: 'missing.elf': No such file

$ objdump -d mydir
objdump: Warning: 'mydir' is not an ordinary file

Cheers, Jonny



reply via email to

[Prev in Thread] Current Thread [Next in Thread]