On Wednesday, 27.01.2016 at 22:02, David Halls wrote:
> >
> > In this first thread, I'm folding "rc" and "env" into the same discussion
> > as they are related, and "hostname" because, well, nothing to see here :-)
> >
> > ## rc: Program invocation
> >
> >     "rc": [
> >          {
> >              "bin": <string>,
> >              "argv": [ <string>, ... ],
> >              "runmode": "" | "&" | "|"
> >          },
> >          ...
> >     ]
> >
> 
> I've come across a situation where I'd like the current working directory
> to be changed before a binary is executed. Is that something that you think
> should be done in config?

"Working directory" is very much a setting, so yeah. However, we need to
account for a default otherwise a previous workdir would affect the next
invocation(s), so I propose:

"workdir": <string> (optional, default: "/")

This means that there's an implicit chdir("/") done before each invocation,
unless you specify a workdir.

Does this address your situation?

Reply via email to