On 26.08.2017 11:10, Colin Watson wrote:
I would like there to be an adverbial version of "cd", which takes a path followed by a command and optional arguments and executes the command with its working directory set to the given path. Its invocation would be similar to chroot(8), that is:chdir [OPTION] NEWDIR [COMMAND [ARG]...]
Could be an option in "env". env -C /path/to/dir VAR=value ... command arg (-C follows "tar -C' and "make -C").