Re: Feature suggestion: env --nopath

2024-11-23 Thread Simon Tatham
Pádraig Brady wrote: > All these boil down to you want to pass the actual path > rather than lookup a name in $PATH. > This can be achieved simply with: env $(realpath -ms "$path") True – and that's what build systems wrapping 'make' often do (perhaps in-process or at makefile-construction time),

Feature suggestion: env --nopath

2024-11-22 Thread Simon Tatham
I think it would be useful if 'env' had an option which would cause it to treat its COMMAND argument as _necessarily_ a pathname to an executable file, rather than the usual semantics of considering it to be either that or a command to search for on PATH. In other words, to run the command using e

Re: Feature suggestion: env --nopath

2024-11-23 Thread Simon Tatham
Simon Tatham wrote: > I think it would be useful if 'env' had an option which would cause it > to treat its COMMAND argument as _necessarily_ a pathname to an > executable file, rather than the usual semantics of considering it to be > either that or a command to search for