Is using the following kinds of pathnames in $PATH a secure and good practice:
empty pathname.
findutils manual says it is insecure if
$PATHcontains an empty pathname, and I wonder why?Is an empty pathname an absolute or relative pathname?
pathnames containing tilde or filename expansions.
Can a user of
$PATHalways understand and perform tilde or filename expansions in$PATHlike shell?If I set the value of
PATHin a shell startup script such as~/.profile, does it matter at all, given that a shell executes the startup file?I found one related to tilde expansion https://unix.stackexchange.com/a/154290/674
current working directory. See Is it safe to add . to my PATH? How come?
Thanks.