Article View: gnu.emacs.bug
Article #9837018.57: No documentation on getenv failures
From: Per Cederqvist
Date: Wed, 28 Aug 1991 02:52
Date: Wed, 28 Aug 1991 02:52
21 lines
1250 bytes
1250 bytes
GNU Emacs 18.57.3 of Sat Jun 8 1991 on lysator (berkeley-unix) The online documentation for getenv: getenv: One arg VAR, a string. Return the value of environment variable VAR, as a string. Neither the online documentation, nor the info file (version 1.03 of the elisp manual), gives any hint to what happens if the environment variable is undefined. It turns out that nil is returned. I think that ought to be mentioned in the documentation. Example: (getenv "UNDEFVAR") => nil --- Per Cederqvist, Lysator Computer Club, University of Linkoping, Sweden Email: ceder@lysator.liu.se Phone: +46 13 26 09 17 "CVS - Check It Out!"
Technical Details
Message-ID:
<9108272252.AA07081@lysator.liu.se>Path:
arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!cis.ohio-state.edu!lysator.liu.se!cederShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fb2f1,bf4ecf4db58c72d8,start X-Google-Attributes: gidfb2f1,public X-Google-ArrivalTime: 1991-08-27 19:52:47 PST Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!cis.ohio-state.edu!lysator.liu.se!ceder From: ceder@lysator.liu.se (Per Cederqvist) Newsgroups: gnu.emacs.bug Subject: 18.57: No documentation on getenv failures Message-ID: <9108272252.AA07081@lysator.liu.se> Date: 28 Aug 91 02:52:47 GMT Sender: gnulists@ai.mit.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 21 Approved: bug-gnu-emacs@prep.ai.mit.edu