On 5/17/24 9:47 PM, Martin D Kealey wrote:
On Fri, 17 May 2024 at 04:18, Chet Ramey <chet.ra...@case.edu <mailto:chet.ra...@case.edu>> wrote:On 5/16/24 11:54 AM, G. Branden Robinson wrote: > At 2024-05-16T11:36:50-0400, Chet Ramey wrote: >> On 5/15/24 6:27 PM, Robert Elz wrote: >>> and any attempt to use a relative path (and you >>> can exclude ./anything or ../anything from that if you prefer - ie: >> >> Those are not relative paths. > > ! > > POSIX 1003.1-202x/D4, §3.311 defines "relative pathname" thus: > > "A pathname not beginning with a <slash> character." > > Can you clarify? Does Bash have its own definition of this term? In this specific case, I suppose. In default mode, `source' doesn't use $PATH for ./x and ../x, but does for other relative pathnames.I assumed that "default mode" means "not posix mode", but if so that doesn't hold up:
No, you're right. It forces a PATH search, but the path search itself won't search for pathnames containing a slash. (Which is arguably a mistake, but one we made 30+ years ago.) -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRU c...@case.edu http://tiswww.cwru.edu/~chet/
OpenPGP_signature.asc
Description: OpenPGP digital signature