[BASH]ed my head in

For all coding issues - MODers and programmers, HTML and more.

Moderators: Jeff250, fliptw

Post Reply
User avatar
Isaac
DBB Artist
DBB Artist
Posts: 7736
Joined: Mon Aug 01, 2005 8:47 am
Location: 🍕

[BASH]ed my head in

Post by Isaac »

So if I go

SLDKFJLSKJDF="-Wall" make

What exactly is SLDKFJLSKJDF? It seems to work fine no matter what I change it to.

This remeinds me of

WINEPREFIX=".Officexp2007" wine "/adsf/adsfasdg/adsfdd/setup.exe"

This let me install programs into the file .Officexp2007

Now I'm seeing something similar with

BLAHBLAH="-Wall" make helloworldz

What is this BLAHBLAH="-Wall" thing???

I'd look it up but I'm not even sure that this terminal thing is called.

edit: Ok they're called "environment variables". Got it!
❉⊱•═•⊰❉⊱•═•⊰❉⊱•═•⊰❉❉⊱•═•⊰❉⊱•═•⊰❉⊱•═•⊰❉❉⊱•═•⊰❉⊱•═•⊰❉⊱•═•⊰❉
-⎽__⎽-⎻⎺⎺⎻-⎽__⎽--⎻⎺⎺⎻-★ ·:*¨༺꧁༺ :E ༻꧂༻¨*:·.★-⎽__⎽-⎻⎺⎺⎻-⎽__⎽--⎻⎺⎺⎻-
❉⊱•═•⊰❉⊱•═•⊰❉⊱•═•⊰❉❉⊱•═•⊰❉⊱•═•⊰❉⊱•═•⊰❉❉⊱•═•⊰❉⊱•═•⊰❉⊱•═•⊰❉
Valin Halcyon
DBB Admiral
DBB Admiral
Posts: 1113
Joined: Sun Jan 02, 2000 3:01 am

Re: BASHed my head in

Post by Valin Halcyon »

DOS had em too... Remember SETBLASTER=220,5,1 by any chance?
User avatar
Jeff250
DBB Master
DBB Master
Posts: 6530
Joined: Sun Sep 05, 1999 2:01 am
Location: ❄️❄️❄️

Re: BASHed my head in

Post by Jeff250 »

Code: Select all

$ env | grep FOO
$ export FOO=BAR
$ env | grep FOO
FOO=BAR
$ unset FOO
$ env | grep FOO
$ FOO=BAR env | grep FOO
FOO=BAR
$ env | grep DISPLAY
DISPLAY=:0.0
$ echo $DISPLAY
:0.0
SLDKFJLSKJDF="-Wall" make
Assuming this was originally CFLAGS, this environment variable is used by Makefiles to pass options to the compiler. (-Wall enables extra warnings with gcc.)
Post Reply