Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!fernwood!uupsi!grebyn!ckp From: ckp@grebyn.com (Checkpoint Technologies) Newsgroups: comp.lang.c Subject: Re: Appending environment variable to system calls Summary: ASSIGNs are good things Message-ID: <1991Apr8.132426.27645@grebyn.com> Date: 8 Apr 91 13:24:26 GMT References: Organization: Grebyn Timesharing Lines: 24 In article cschmidt@lynx.northeastern.edu writes: >> I wish to be able to set an environment variable (the path to a file) >> and then to execute a program using the system() function in the >> following fashion [under DOS]: >> >> char *s; >> s=getenv("FOO"); >> system("FOO/FUBAR"); > >This brings to mind the following terrific idea. The DOS environment >can be used to implement "logical names" in a manner similar to >logical names on VMS. I have been doing this for years with great >success. > [ describes a way to assign a path spec to a drive letter. ] Yes yes yes. I work with many machines with assignments (most every DEC operating system, AmigaDOS) and they are great. I also work with Unix (though not DOS) and have found ways to survive using environment variables instead. I prefer to have assigns than not have them. -- First comes the logo: C H E C K P O I N T T E C H N O L O G I E S / / ckp@grebyn.com \\ / / Then, the disclaimer: All expressed opinions are, indeed, opinions. \ / o Now for the witty part: I'm pink, therefore, I'm spam! \/