Re: system in Linux (was getenv in Linux)

new topic     » topic index » view thread      » older message » newer message

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

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu