|
From: | Kaz Kylheku (Coreutils) |
Subject: | Re: New utility suggestion: chdir(1) |
Date: | Sun, 27 Aug 2017 06:58:19 -0700 |
User-agent: | Roundcube Webmail/0.9.2 |
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").
[Prev in Thread] | Current Thread | [Next in Thread] |