[sudo-users] cd problems

Bob Proulx bob at proulx.com
Mon Feb 28 18:00:48 EST 2005


> >From the FAQ:
> 
> Q) When I try to use "cd" with sudo the command completes without
>    errors but nothing happens.
> A) Some SVR4-derived OS's include a /usr/bin/cd command for reasons
>    unfathomable.  A "cd" command is totally useless since a child process
>    cannot affect the current working directory of the parent (your shell).

A few may find this discussion useful.

  http://lists.gnu.org/archive/html/bug-coreutils/2005-02/msg00090.html

Summary: Should the GNU coreutils provide a 'cd' command?  POSIX seems
to require it.  And if implemented how to do so best.

Bob



More information about the sudo-users mailing list