[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

does windows terminal have environment variables like $PATH and shit?

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 11
Thread images: 2

does windows terminal have environment variables like $PATH and shit?
>>
yes

https://msdn.microsoft.com/en-us/library/windows/desktop/ms682653(v=vs.85).aspx
>>
>>59132104
run cmd
type set

>yes
>>
File: powershell_2017-02-26_12-08-42.png (19KB, 859x632px) Image search: [Google]
powershell_2017-02-26_12-08-42.png
19KB, 859x632px
>>
>>59132142
>>59132130
>>59132128
they stole this from unix
>>
>>59132156
That's such a pointless statement...
>>
>>59132156
DOS itself was the bastard child of CP/M and Unix. Microsoft wanted / for pathsep and - for switches, too. Blame IBM for the \ pathsep and/ switches. PowerShell has a bunch of Unix aliases like cp, rm, mv, and ls.
>>
>>59132104
obviously moron.

programs that depend on external software must be able to source them relative of their actual install location.

there is even a way to set your default path variable in wndows.
I don't remember the exact process, but it is more convoluted than setting your /etc/profile or local .*rc
>>
>>59132104
Yes but batch script language is autistic. You dereference variables using %VAR% rather than $VAR, everything is a string by default (no need for quotation marks) and you can only do arithmetic to variables assigned using SET /A. Also you don't have functions, best you can do is GOTO storing arguments and results in global variables.
>>
>>59132156
>>59132405
Powershell is basically C# plus bash.

>>59132446
DOS and Windows do have some Unix ideas, like "device files" and redirection, but it's basically tacked on as an afterthought rather than being an integral part of the system like Unix. And the whole backslash retardation is because the original version of DOS didn't have directories, just disks, and they decided to use the forward slash for switches (not sure why they didn't just use a dash like Unix), which meant when they added directories they had to use something else as separator.
>>
>>59132901
I unironically like powershell better than bash. For sysadmin it is better. I really wish bash had some OO equivalent because returning objects is awesome and allows you to focus on tasks instead of text parsing.
Thread posts: 11
Thread images: 2


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties.
Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.