Re: getenv
- Posted by Jeremy Cowgar <jeremy at c?wgar.co?> May 30, 2008
- 679 views
ChrisBurch2 wrote: > > That is correct. If you set the variable to '' or ' ', then -1 is still > returned > as practically speaking trailing spaces are removed. > > Its easy to work around > That's not true on Linux. Behavior is different. unset VARNAME -1 export VARNAME=A {A} export VARNAME= {} -- Jeremy Cowgar http://jeremy.cowgar.com