[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: 7127
Joined: Mon Aug 01, 2005 8:47 am
Location: Ơ̸̦͇̲̬̭̱̰͎̞͈̣͎͚̳ͬ͋̃̀̇͊͂͋͐ͦ̽ͣ̂ͥ͊̅̀̚͠ B̶͖̯͉̜̰̲̓̔͋̈́ͅ È̯ Y̪̤̼͉̠̙͝

[BASH]ed my head in

Post by Isaac » Wed Aug 22, 2012 1:30 pm

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!
s☼-£♦и̫͍ͥ̍ͪ͌̓͗͡о̡̹̱͊̅ͮ̓̕͢б̧̝̻̪̤̳̜͐̓̉ͤ͢͜ ͙̬͙̆̑ͮ̐ͭ̾̂́͘i̎̌̾̓̽̀̈̓̀҉͉̙̦͎̘̝͕f̻͕͔̘ͣͣ̓͊̿͢͜ ͍͔͈͕̮̫ͣ̆ͮ̊͋/♂6Æ!♪╩"▲L└уͭ̂͐̇҉̴̣̼̞̠̯͓̺̞ф̜̊͌̈́̋̏̐́ц̨͔̮̿̇ ̨̛͖̙͖̖̮̗̱ͩ̆͞ͅа̥͇̞̖͚̟̅͐ͤ͞͠͠э̜̘̩̳̬͔̾ͯ̀ͫ̒̐̿ͅͅг̭̖̀ͦ̒̑ͥ̌ͮͫ͞ё͔̟̃ͬ̾̓͟ё̦̞̙̫͔̩͑̀͂ͯ̄̔̃̑̀͠ͅͅ
Valin Halcyon
DBB Admiral
DBB Admiral
Posts: 1102
Joined: Sun Jan 02, 2000 3:01 am

Re: BASHed my head in

Post by Valin Halcyon » Wed Aug 22, 2012 4:31 pm

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

Re: BASHed my head in

Post by Jeff250 » Wed Aug 22, 2012 7:52 pm

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