Re: system in Linux (was getenv in Linux)
- Posted by Bernie Ryan <bwryan at PCOM.NET> Sep 20, 1999
- 369 views
On Mon, 20 Sep 1999 06:56:37 -0400, Irv Mullins <irv at ELLIJAY.COM> wrote: >On Sun, 19 Sep 1999, you wrote: > >> So the problem is actually with using system under Linux. Example: >> DOS: system("cd c:\\",2) -- current_dir() returns "c:\" after >> Linux: -- but current_dir() doesn't return "/" after > >Correct. system("cd /",2) won't change the directory on my computer either. >In fact, sytem won't change directories _at all_ under Linux.. >Rob? > >Irv Irv Wouldn't you use system("cd //",2) Bernie