[PLUG] Writing a simple shell...

Larry Brigman larry.brigman at gmail.com
Mon Feb 2 16:01:35 UTC 2009


On Mon, Feb 2, 2009 at 12:09 AM, Michael Robinson
<plug_1 at robinson-west.com> wrote:
> I'm writing a really simple shell in C.  No pipes, redirect, or &.  No
> command completion.  No wildcard expansion.  Is there a lowlevel way to
> figure out what the current directory is if I get say the chdir command
> and oh a relative path?  I suppose I could do system('pwd'); or
> something similar but the current directory is part of the process
> isn't it?
>
man getcwd



More information about the PLUG mailing list