Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site fortune.UUCP Path: utzoo!linus!decvax!harpo!eagle!mhuxl!houxm!ihnp4!fortune!notes From: notes@fortune.UUCP Newsgroups: net.unix-wizards Subject: Re: Environment variables: please use (V - (nf) Message-ID: <1767@fortune.UUCP> Date: Wed, 9-Nov-83 20:07:54 EST Article-I.D.: fortune.1767 Posted: Wed Nov 9 20:07:54 1983 Date-Received: Fri, 11-Nov-83 03:09:35 EST Sender: notes@fortune.UUCP Organization: Fortune Systems, Redwood City, CA Lines: 18 #R:utcsstat:-140400:fortune:11600027:000:928 fortune!olson Nov 9 16:11:00 1983 I have been guilty of this in the past also. It usually seems silly/inexcusable to use full path names, especially if you are doing an execlp(), popen(), system(), etc. However, in the case of 4.1 BSD, there are, for example, 2 versions of ls, mail, grep, ... Usually one is the bell labs version and one is BSD, and the features and options are different. If you happen to be relying on a feature of a particular program, you obviously don't want to use whatever the user has chosen. It is often desirable to be sure that you are not getting something a user has in their local bin, which happens to have the same name as one of the `standard' commands. In addition, a lot of users will not have the variable set, so one has to choose some sort of default anyway. Even more to the point, local conventions of what environmental variables are meaningful vary. Dave Olson, Fortune Systems {ihnp4|harpo|hpda}!fortune!olson