environment variable

Gene Heskett gheskett at shentel.net
Sat Jun 24 21:31:00 EDT 2017


On Saturday 24 June 2017 21:03:18 Steve D'Aprano wrote:

> On Sun, 25 Jun 2017 08:39 am, Gene Heskett wrote:
> > On Saturday 24 June 2017 16:49:25 Smith wrote:
> >> Hello to all,
> >> I wanted to ask you how I could delete a line of an environment
> >> variable (PATH)
>
> [...]
>
> > export PATH=
> >
> > but be prepared to type the full path to anything you want to run. 
> > It a PITA, or a cast iron bitch or whatever definition fits.
>
> Are you serious? The OP asked how to delete *one line* from an
> environment variable, and you respond by deleting them all?
>
$PATH is a single line in the env. The OP asked how to delete it, so I 
told him. If he had asked how to get rid of a single piece of the $PATH, 
then my answer would have been longer and more precise.

> "The ashtray in my car is full, how do I clean it?"

Take it out and dump it. Put it back in.  Or leave it out, the car will 
not care, it will still haul your butt as long as theres oil in the 
engine and gas in the tank.

> "Throw the car away and walk everywhere."

This is one of those posts that I should have ignored as this list has an 
abundance of standup comics anyway.
>
>
>
>
> --
> Steve
> “Cheer up,” they said, “things could be worse.” So I cheered up, and
> sure enough, things got worse.


Cheers, Gene Heskett
-- 
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page <http://geneslinuxbox.net:6309/gene>



More information about the Python-list mailing list