Commands should not be resolved in cwd #150
Labels
No Label
bug
code-quality
documentation
duplicate
enhancement
feature
flair
invalid
on-hold
release
third-party bug
tooling
wontfix
No Milestone
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: tools/josh#150
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
If cwd is
~
and the command~/example
exists, then executingexample
should never execute~/example
, even if/bin/example
does not exist. That is, after implementing #148, cwd should not be on path.Therefore, if the command (i.e. first word) of a line contains no slashes, then look up from path. Otherwise, look up normally (i.e. relative or absolute, depending on the path).
The only exception here is directories. These work as follows: If no slash, then look up from path, otherwise normal resolution but RETURN ONLY IF DIRECTORY. If slash, normal resolution applies.