Re: [PATCH v2] exec: Print absolute paths for command location queries
Herbert Xu <[email protected]> Sat, 13 Jun 2026 10:32:15 +0800
| Newsgroups | org.kernel.vger.dash |
|---|---|
| Message-ID | <[email protected]> |
On Sat, Jun 13, 2026 at 03:09:49AM +0100, Harald van Dijk wrote: > > Oh, I see. Currently, dash never converts paths to absolute. The patch > changes it to do so whenever possible, both for the case where commands are > looked up from PATH (which is required by POSIX) and the case where they > aren't (where I think POSIX is ambiguous). Other shells (ksh, yash) do print > an absolute path in all cases, but matching bash sounds reasonable too. Reading the standard again it seems that bash might actually be in the wrong here, as it specifically refers to "command_names including a <slash>". Since that precludes a PATH search, it is self-contradictory. I'll wait for the standard (or bash) to be fixed before taking this change. Thanks, -- Email: Herbert Xu <[email protected]> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt