coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: New utility suggestion: chdir(1)


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").




reply via email to

[Prev in Thread] Current Thread [Next in Thread]