Skip to contentSkip to conversation

doc omission: . searches path

DISCUSSION Gerben Vos 1 participant 1 message Oct 20, 2024

lore
Share & tools
lore

Gerben Vos

author
#0 lore raw

Hi all,

a small omission in the man page: it says: ". file: The commands in the specified file are read and executed by the shell."

However, dash only takes the specified file if it contains a '/'; if not, it searches $PATH for it (and errors if it is not found, even if the file exists in the current directory). The behaviour is fine, but this should be mentioned in the man page. The process is like the points 1 and 2 under "Path Search" (but without checks for functions and builtins of course).

Cheers,
Gerben Vos.