:: Re: [DNG] An Anti-Initsystem, ch-di…
Top Page
Delete this message
Reply to this message
Author: karl
Date:  
To: dng
Old-Topics: Re: [DNG] An Anti-Initsystem
Subject: Re: [DNG] An Anti-Initsystem, ch-dir
Rainer Weikusat:
...
> I'd greatly appreciate if someone who thinks he has the time would read
> through the man pages

...

ch-dir.1
ch-dir - change current working directory and execute a command

It is somewhat imprecise to say "change current working directory", for
what process, how would one express this without causing
misunderstandings and unnecesary wordiness ?

It cannot be the current running shell, for that you would need
cd <directory>; <cmd> <arg>*

Perhaps "execute a command in the given working directory".

It is easy to verify its operation:

$ pwd
/Net/git/rweikusat_process-tools/doc/man1
$ ../../bin/ch-dir .. ls -l /proc/self/cwd
lrwxrwxrwx 1 karl users 0 Apr 6 06:03 /proc/self/cwd -> /Net/git/rweikusat_process-tools/doc

Perhaps something like that could go to an examples section.

Regards,
/Karl Hammar