News for hackers. Stuff that matters.
Re:Environment Variables and Path in Windows 10 by alister on Monday October 26, 2015 @12:04AM (#10449551)
What's completely inexplicable is why it took 23 years to do this. Consider this:

(1) It's self-contained piece of UI code. It's not like this change will permeate effects throughout the OS.

(2) It's a few man days of work. Let's say that as a super-exaggerated-extreme estimate, it is still only a few months of work.

(3) Nobody was dependent on the current behavior.

(4) Everybody hated the current behavior. Programmers jumped through hoops like copying&pasting the strings into an editor, making a change, and pasting it back.

(5) They had at least 23 years to fix it (since at least Windows 3.1).

There are more plausible explanations about MH370 than there are about Microsoft's thinking here.

Re:Environment Variables and Path in Windows 10 by anonymfus on Monday October 26, 2015 @09:14AM (#10451154)
Probably because PATH variable was considered deprecated. You are supposed to put paths to your executables in the registry:

https://msdn.microsoft.com/en-us/library/windows/desktop/ee8...

> We recommend registering your application in the App Paths registry subkey. Doing so avoids the need for applications to modify the system PATH environment variable.

http://blogs.msdn.com/b/oldnewthing/archive/2011/07/25/10189...

> On top of the difficulty of adding more directories to the PATH, there was the recognition that this was another case of using a global setting to solve a local problem. It seemed wasteful to add a directory to the path just so you could find one file. Each additional directory on the path slowed down path sarching operations, even the ones unrelated to locating that one program.

> Enter App Paths. The idea here is that instead of adding your application directory to the path, you just create an entry under the App Paths key saying, "If somebody is looking to execute contoso.exe, I put it over here." Instead of adding an entire directory to the path, you just add a single file, and it's used only for application execution purposes, so it doesn't slow down other path search operations like loading DLLs.

Re:Environment Variables and Path in Windows 10 by shthed on Tuesday October 27, 2015 @11:40AM (#10458687)
Would be nice if cmd and powershell also looked in App Paths allowing to be an actual replacement for %PATH% (without having to do "start app.exe")
Re:Environment Variables and Path in Windows 10 by anon4 on Monday October 26, 2015 @04:09AM (#10450058)
What's even more inexplicable is that you can't do the same on Linux. For all the developer-friendliness of the platform, nothing infuriates me more than having to edit my PATH/LD_LIBRARY_PATH/etc. by editing my .bashrc and then having to log out and back in again. Not to mention that programs you start from the GUI launcher don't source that file so if you need a program to start with one of them set, you actually need to edit .profile... wait no that doesn't work, I mean /etc/profile.d/99-my-path.conf... no actually it's /etc/environment... or is it /etc/profile... oh fuck this I'll just write a small shell script that sets PATH and launches what I want.

Like... in Windows motherfucking NINETY-FIVE you could edit your PATH variable without having to restart, why do I have to log out and back in in 2015 for Linux to accept those changes. Why do I have to mess around with random scripts that may or may not be executed by one of the many steps launching my session. What is this madness.

Re:Environment Variables and Path in Windows 10 by riskable on Monday October 26, 2015 @08:28AM (#10450898)
I'm going to pull a Jedi mind trick here...

<waves hand> There is no problem with editing environment variables in Linux.

<waves hand> You're going to go back to your terminal and re-think how you use environment variables.

Seriously, nobody has this problem on Linux desktops because folks usually--if they're going to mess with environment variables at all--they're going to do it right after getting a new home directory (i.e. a new desktop where logging out and back in one time isn't a concern) or they're going to set them in a script of some sort. As in, start_server.sh or, "oh fuck this I'll just write a small shell script that sets PATH and launches what I want" which is perfectly normal and reasonable; if your application needs certain environment variables set to function properly why would you want to leave such things to chance? Just set it in the script that launches your app.

Unlike Windows, a Linux desktop has no mandatory distinction between a shell script and a binary in order for it to be executed. If it's set as executable it's executable; simple as that. The user probably won't know or care that /usr/bin/yourapp is really a shell script that sets up some environment variables before launching /opt/you/bin/youractualapp

Not only that but you don't have to log out and log back in--that's just the cop-out, "I'm lazy" way of applying such changes to your desktop. You could just restart your launcher. I use KDE's Plasma desktop so that would be:

killall plasmashell kstart plasmashell

If you're SSH'd into your Linux box it's even easier: . ~/.bashrc

Re:Environment Variables and Path in Windows 10 by shiro on Monday October 26, 2015 @04:18AM (#10450080)
Isn't just starting a new shell suffice? (Usually I'm lazier and just say ". ~/.bashrc", knowing that it might not be idempotent but I don't care.)
Re:Environment Variables and Path in Windows 10 by yokohummer7 on Monday October 26, 2015 @05:10AM (#10450210)
If you place environment variables in ~/.bashrc, it would work. However, generally they are placed in ~/.profile which is read only when a login shell is launched. (And ~/.bashrc is not even read when you start a GUI session, anyways.) This is especially problematic in the GUI environment because in that case the login shell is the desktop environment itself. So you need to restart the whole environment (close all the windows, logout, and login) to load the new environment variables.

Windows gets over this problem by letting the login shell (explorer.exe) reload the environment variables in place. So, if we are to do the same thing in Linux, we might have to patch bash, zsh, and GNOME etc. to understand the environment variable change events and reload itself appropriately. I'm not sure where to start, but I believe this is the one thing that Windows did right, so I want to see it happen.

Re:Environment Variables and Path in Windows 10 by riskable on Monday October 26, 2015 @08:38AM (#10450955)
If you made a change to your .profile why wouldn't you just apply it?

    . ~/.profile
Why logout and back in? You know which file was changed because you made the change.

As someone else mentioned down below, if you just need a new login shell with your variable changes just do this:

    exec /bin/bash -l
(the -l meaning, "act as if... invoked as a login shell")

Also a tip if you're using KDE: You don't need to logout and back in. Just do this:

    killall plasmashell
    kstart plasmashell
That should apply any changes you've made to environment variables to any applications that get launched (subsequently) via KDE's usual methods (e.g. K menu or krunnner aka Alt-F2). Your running applications will remain open!
Re:Environment Variables and Path in Windows 10 by lottin on Monday October 26, 2015 @06:01AM (#10450381)
Changing how the environment works isn't a trivial change, it would have far-reaching consequences, and every program that reads the environment would need to be patched, not only the shells and display managers.
Re:Environment Variables and Path in Windows 10 by barrkel on Monday October 26, 2015 @06:42AM (#10450518)
If the aim is to replicate how Windows works, only the GUI shell would need to reload environment variables (i.e. the process that forks when you start programs using whatever the desktop's idiom is).
Re:Environment Variables and Path in Windows 10 by lottin on Monday October 26, 2015 @07:04AM (#10450601)
This seems inconsistent behaviour to me. Some running processes reload the environment and others don't. Maybe in Windows they can get away with it, but that doesn't mean it's a good idea.
Re:Environment Variables and Path in Windows 10 by darklajid on Monday October 26, 2015 @08:15AM (#10450843)
To be fair: The Windows way is kinda consistent: If the environment definition was changed, everyone gets a window message. It's just that no one but explorer.exe cares about that and reacts, as far as I'm aware (Raymond Chen had a recent article mentioning exactly this).

So, the OS tells everyone 'Hey, you totally could update your environment'. But your running instance of Skype or whatever just doesn't need to care.

Re:Environment Variables and Path in Windows 10 by zastrowm on Monday October 26, 2015 @10:39AM (#10451726)
Raymond Chen article for anyone that is interested: http://blogs.msdn.com/b/oldnewthing/archive/2015/09/15/10641...
Re:Environment Variables and Path in Windows 10 by majkinetor on Monday October 26, 2015 @08:34AM (#10450934)
I think that reacting to system change is opt-in.
Re:Environment Variables and Path in Windows 10 by shiro on Monday October 26, 2015 @06:52AM (#10450556)
If I change the login setting, this usually works (yeah, I have extra layer of shell but I don't care):

    $ /bin/bash -l
Environment variables in Unix isn't for changing global settings. Their effects are localized by design.
Re:Environment Variables and Path in Windows 10 by efaref on Monday October 26, 2015 @06:59AM (#10450581)
> ... I have extra layer of shell ...

Fix that by running:

    $ exec /bin/bash -l
instead.
Re:Environment Variables and Path in Windows 10 by shiro on Monday October 26, 2015 @07:28AM (#10450677)
Right!
Re:Environment Variables and Path in Windows 10 by anon4 on Monday October 26, 2015 @04:23AM (#10450088)
But it doesn't take effect globally. The entire env-var system is stuck in the 60s when people would just re-launch their shell after making changes.
Re:Environment Variables and Path in Windows 10 by andor on Monday October 26, 2015 @04:33AM (#10450112)
It never changes globally. Your shell process sets the variables for itself, and all subprocesses started afterwards inherit them.
Re:Environment Variables and Path in Windows 10 by switch007 on Monday October 26, 2015 @04:54AM (#10450167)

  1) Click desktop icon to launch shell  
  2) /opt/myfirstgui/run.sh & disown
  3) Close shell
Re:Environment Variables and Path in Windows 10 by cosarara97 on Monday October 26, 2015 @05:36AM (#10450288)
I didn't know disown existed, thank you!
Re:Environment Variables and Path in Windows 10 by majkinetor on Monday October 26, 2015 @08:32AM (#10450925)
Meh... GUI sux for this anyway, Windows is ahead of this generally then other Linux like OSes.

This drives me nuts on Linux: env. vars aren't systemically available as on Windows where you even have an option to broadcast change so that even running applications can update. I wonder why there isn't POSIX standard for this, perhaps /etc/environment would be good choice if standardized.

On Windows, you don't really need any than that. To get PATH env var the way it is now in Win 10 just do in any windows

  PS>  $Env:Path -split ';' 
Setting the var in the system is equally fast and you can make stuff even better - for instance my POSH function keeps backup of old env var value, i.e. if i change the PATH today I would also have PATH_2015_10_26 with old value.

So please Windows admins, stop being fucking clickzor n00bs and start using Powershell. Its embarrassing.

As a related note, the most awesome of all editors on Windows is Total Commander "Environment Variables" plugin - you can do all kinds of stuff there (regex search/replace, backup/restore as simple file copy, fuzzy search, bookmarks ..)

Re:Environment Variables and Path in Windows 10 by ygra on Monday October 26, 2015 @08:35AM (#10450943)

    PS>  $Env:Path - split ';' 
The operator is -split, without the space. In any case, it won't work, because the path can contain quoted items that contain a semicolon.
Re:Environment Variables and Path in Windows 10 by majkinetor on Monday October 26, 2015 @03:55PM (#10453983)
Wow, in what universe that happens ? :)

I mean, yeah, sure, it can happen once in a lifetime... Even so, its easy to fix.

Re:Environment Variables and Path in Windows 10 by lottin on Monday October 26, 2015 @05:27AM (#10450260)
It can be confusing but it isn't that complicated. Basically you have to options, either let pam set the environment or use your shell of choice (in which case the shell start-up file should be sourced from the X session script as well). Having to log out and back in may be inconvenient but it's unavoidable and a small price to pay in my opinion.
Re:Environment Variables and Path in Windows 10 by joosters on Monday October 26, 2015 @05:55AM (#10450363)
It's not unavoidable / impossible. We (can) have the technology!

If you want a new environment variable added, or one altered, it needs to be sent out to the UI process that starts new tasks (like shells, applications and so on). To be extra clever, this new environment message could also be passed to running terminal emulators as well (so that if you open a new tab in a running app, the shell started in there will also obtain the new variables)

Re:Environment Variables and Path in Windows 10 by ratboy666 on Monday October 26, 2015 @01:39PM (#10452937)
So...

Environment change to send (something) to UI process(es). Plural here -- these could be window manager, shell, or applications. Since application subsumes window manager and shell, we will ignore that. Unless the application is forced to say "I am interested" to (say) systemd. Or dbus.

Then, accept the environment changes. But, those will have to be filtered -- this could be user input. Indeed, the application may have an application starter, and one the jobs of the application starter may be to filter the environment. The application starter may never expect an environment change, but the application started may (in our "new world" API). This could result in security holes (especially for large daemon processes). Interestingly, the main purpose of this change would be to allow the environment to change dynamically for those daemons.

The "extra clever" is the easy case -- make changes in .bashrc This will get read by new tabs in your terminal emulator.

Having an application starter that is responsible for the environment is the (current) solution. Of course, this does not permit environment changes. But these are impossible anyway -- int main(int ac, char av, char envp) implies that the environment passed to main must not be altered. Of course SUSv3 doesn't specify it, and getenv() putenv() should be used. Hoever, extern char environ; is allowed, which is the same as char envp.

http://pubs.opengroup.org/onlinepubs/9699919799/functions/en...

http://pubs.opengroup.org/onlinepubs/9699919799/functions/ge...

So, an application can do char path = getenv("PATH"); to obtain the PATH. After which, char path will not change (as long as getenv(), setenv, unsetenv() or putenv() is not called, and environ is not written).

Which means that it is very difficult to "inject" a PATH change -- it should be impossible. Another mechanism must be put into place for this, but POSIX semantics should be maintained.

In my code, I tend to do strdup(getenv("PATH")) or something along those lines (note that getenv() may invalidate a previous getenv() so it is not safe to store the result char* of getenv()).

Ratboy

Re:Environment Variables and Path in Windows 10 by riskable on Monday October 26, 2015 @08:44AM (#10450987)
To add specificity to this tip...

To restart popular desktops/launchers without logging out:

KDE

    killall plasmashell
    kstart plasmashell
Gnome

    killall -3 gnome-shell
Unity

    unity --replace &> /dev/null & disown
XFCE

    killall -HUP xfdesktop
Re:Environment Variables and Path in Windows 10 by Majestic121 on Monday October 26, 2015 @04:22AM (#10450087)
You don't have to log out and back in to update your bashrc, you can type "source .bashrc" to reload it.
Re:Environment Variables and Path in Windows 10 by anon4 on Monday October 26, 2015 @04:30AM (#10450103)
And then when I click on my IDE icon on my desktop it will launch with the new PATH? It won't. That was a rhetorical question. You can tell by the way it stipulates a modicum of usability out of desktrap loonix.
Re:Environment Variables and Path in Windows 10 by mikegioia on Monday October 26, 2015 @07:57AM (#10450779)
I mean, what is your workflow that you're updating your PATH this often? I've managed "loonix" for 10 years and I must edit the PATH like once a year.
Re:Environment Variables and Path in Windows 10 by sunnyps on Monday October 26, 2015 @12:46AM (#10449659)
Meh. I've been using Rapid Environment Editor[1] which is a free tool that allows editing environment variables on Windows and has a similar interface for editing PATH.

I've always programmed primarily on UNIX like platforms but one thing that I've realized is that Windows provides a really powerful and stable API which makes tools like this possible. Microsoft likes to provide APIs and let developers build stuff like this.

[1] http://www.rapidee.com/en/about

Re:Environment Variables and Path in Windows 10 by batrat on Monday October 26, 2015 @01:29AM (#10449742)
People keep forgetting "there is an app' for everything" on widows.
Re:Environment Variables and Path in Windows 10 by tonyedgecombe on Monday October 26, 2015 @03:37AM (#10449991)
One of the things Microsoft has done over the years is filling all those little holes that needed an extra download, setting up a new Windows machine no longer involves downloading a hundred tiny utilities.
Re:Environment Variables and Path in Windows 10 by majkinetor on Monday October 26, 2015 @08:39AM (#10450957)
Meh... you don't really need tool for that.
Re:Environment Variables and Path in Windows 10 by steven2012 on Monday October 26, 2015 @01:04AM (#10449697)
>(2) It's a few man days of work. Let's say that as a super-exaggerated-extreme estimate, it is still only a few months of work.

This indicates to me that you've never worked in a software company like Microsoft. EVERYTHING that Microsoft does is under a huge amount of scrutiny, and any change to anything generally will piss someone off. So they are careful with every change and they have to be thorough.

It's not just a few months worth of work. Sure, the development change of the UI could be done in a couple of days. But the design first has to be hammered out and agreed to. It has to agree with how the rest of the system would behave. Not to say that this dialog box was in agreement with the rest of the dialog boxes from XP to Windows 8, but if they're going to change it now, then whoever makes the change would need to make sure their version does. This would take man-weeks of meetings just to get right from the PM and designers, etc.

But then there are QA changes that need to be done, just to test it, so add on a couple of weeks for that. It would presumably break all of their automated testing, and then new tests would have to be created. Ballpark figure just for that is 4 man-weeks of QA work.

Then, are there any dependencies on the older version of the UI to other products? Not sure, probably not but it would have to be researched.

What about documentation changes? Not only will the Windows documentation need to change, but then all other software that references adding environment variables need to change. And now, training videos will have to be changed. Don't forget that Microsoft has a bunch of training classes that they offer.

Will enterprise customers be impacted by this? Not sure, but they would probably want to reach out to their most important ones to figure out what

Now, take all the time estimates and then figure out how this compares to other bugs that have been lingering for years as well. Is the current functionality unusable, or is it just kind of sucky. If it's just kind of sucky but people can live with it, then time is probably better spent on other things.

Do this about 6 times on the most widely used piece of software in the world, and you have yourself 20+ years.

Should this dialog have been changed years ago? Yes, it sucks, and almost embarrassing. But it's still usable, so it has relatively low priority. This is how software decisions are generally made in enterprise software companies, especially those like Microsoft.

Re:Environment Variables and Path in Windows 10 by Joeri on Monday October 26, 2015 @01:45AM (#10449772)
Windows 8 puts up a strong argument that at least some of the time features just get railroaded without all of that stuff. Anyway, i doubt google is as careful with android. If MS wants to reclaim the mobile space, which they had but lost due to being too slow, they need to move a lot faster, even if it sometimes breaks things. At the old rate of change, they'll end up losing the desktop to google as well.
Re:Environment Variables and Path in Windows 10 by randomfool on Monday October 26, 2015 @02:36AM (#10449876)
Incorrect- Windows 8 had just as much dev/test/pm overhead for the features- Sinofsky was all about process (and triads).

Windows 8 was the result of feature prioritization based on incorrect/skewed customer intelligence. Management knew what they wanted and skewed the market research to validate their position. Dev/test/pm then set to work validating and polishing the wrong features.

My guess what has changed is with the death of the SDET role that Windows feature planning is no longer test-constrained (for better or worse) and thus can greenlight features such as this.

But before you say 'I can get that done in 2 days'- take into account automated testing, localization, accessibility testing, security review, documentation, etc.

Re:Environment Variables and Path in Windows 10 by oblio on Monday October 26, 2015 @06:17AM (#10450433)
> the death of the SDET role

Can you give some more details? This bit sounds strange.

Re:Environment Variables and Path in Windows 10 by Idontagree on Monday October 26, 2015 @12:23PM (#10452394)
Was changing things as big of a deal 23 years ago? I'm really just curious as I don't know MS's history that well.
Re:Environment Variables and Path in Windows 10 by DonSchuler on Monday October 26, 2015 @12:21AM (#10449600)
>> What's completely inexplicable is why it took 23 years to do this.

That is an interesting statement. The reason why this little piece of work (similiar a resizable cmd window) hasn't been done before shows the fundamental differences between Linux and Windows in what the creators think it was made for. 99 % of the Windows users will never use the env var dialog. Microsoft gave the other 1 % (devs) Microsoft obviously a very low priority in the past.

That has changed. While I like Windows 10 overall, I still wish it was not so chatty. I don't want to need to think about what kind of personal information my devices steal and how to protect myself. I don't like it from my Android phone and I don't like it from my laptop.

Re:Environment Variables and Path in Windows 10 by jmnicolas on Monday October 26, 2015 @05:29AM (#10450267)
"Microsoft gave the other 1 % (devs) Microsoft obviously a very low priority in the past."

You know there's a lot of bad things to say about Microsoft (I still can't get other the "telemetry updates" and I'm seriously studying moving to Ubuntu 15.10) but saying MS gave developers a very low priority is probably the mots unjust criticism you could ever give them and tells me you probably never developed anything on Windows.

I'd go even as far as to say that MS is the most developer friendly corp out there. The amount of effort they put in their tools, languages, frameworks, whatever is impressive. It's easy and it just works.

Microsoft is to devs what Apple is to users.

Re:Environment Variables and Path in Windows 10 by bboreham on Monday October 26, 2015 @04:20AM (#10450082)
> resizable cmd window

A couple of people have referred to this, but I've been resizing CMD windows for over a decade. Maybe you mean you couldn't increase the width by dragging, only via a dialog?

Re:Environment Variables and Path in Windows 10 by shrikant on Monday October 26, 2015 @04:38AM (#10450121)
When I try to maximise the the Cmd window, this[0] is the best that is achievable without custom apps. This is regardless of using either the horizontal resize handles or the Window Size properties.

[0] http://i.imgur.com/GAbg5TR.png

Edited to add: This is Windows 7, 64-bit.

Re:Environment Variables and Path in Windows 10 by Natsu on Monday October 26, 2015 @05:13AM (#10450227)
Click the icon in the upper left, then go to Properties | Layout | Window Size. The size is measured in characters.

It's rather inconvenient, though.

Re:Environment Variables and Path in Windows 10 by bboreham on Monday October 26, 2015 @05:33AM (#10450281)
Nitpick: first you need to increase the "Screen Buffer Size" width, then you can change the Window Size width too.
Re:Environment Variables and Path in Windows 10 by shrikant on Monday October 26, 2015 @12:28PM (#10452441)
Huh, this worked -- wow, TIL, thanks! (You would still have to pry Cmder out of my cold dead Windows 7 hands though...)
Re:Environment Variables and Path in Windows 10 by hibikir on Monday October 26, 2015 @12:33AM (#10449626)
I have no specific knowledge about how this was done, but it seems likely that the new way Windows development is organized led to a change like this happening.

I've seen simple problems like this one that have taken forever to fix in big orgs where task prioritization was done at such a high level that anything that can't be called a bug, or considered very high impact, is ever even evaluated seriously as a candidate for change.

When teams have more agency on what they change, then an enterprising developer that realizes how annoying the 'not quite a bug' is, and how easy it is to fix, can just be proactive, put it high in his team backlog, and get it done.

At my current employer, we don't quite do old Google style 20% time, but we let developers ignore the sprint goals one day a week, as long as they are doing something that aims to help their team and their high level goals. How many people actually use that opportunity is a good measurement of how much teams believe in the planning that is being done: When a team's highlights for a given quarter all come from those unplanned features, that means that the direction the team was given made no sense, and we have to figure out why.

Re:Environment Variables and Path in Windows 10 by meddlepal on Monday October 26, 2015 @12:56AM (#10449685)
Pretty much this. A lot of startup and small business devs here are used to just being able to change software at their discretion which is awesome and great, but it just doesn't work that way often at enterprise shops. Changes and requirements come through the product management pipeline via customer interaction. Anything that isn't delivering business value in the form of appeasing existing customers (bug fixes and niche feature requests) or attracting new business (new features or integrations) is basically put into a backlog and forgotten until someone gets frustrated enough to sacrifice a weekend adding/fixing the backlog item.
Re:Environment Variables and Path in Windows 10 by mikekchar on Monday October 26, 2015 @01:49AM (#10449779)
We do a similar thing on my current team with respect to having a day to work on things that we think are important but aren't necessarily on the backlog. It seems to work reasonably well for this team, but there are some downsides.

Explaining this well is really difficult, so I hope you don't mind me resorting to a metaphor. Imagine you are the chef of a restaurant and you work alone with your one waiter. You run the kitchen and they deal with the customers.

Quite a lot of your work will be directly related to customer orders. You need to set the menu and go shopping and prep all the food. In addition to that, there are also some things that you need to do all the time like sharpen your knife, disinfect your cutting board, etc, etc. You could prep more food if you didn't have to do those things, but if you don't do them, then things will be quite a bit slower, so you have to budget some time for that. Still, these are things that you can do when customers aren't in the restaurant, so it's easy to budget.

Once the customers come, you have to react to their orders. However, that's not all you have to do. You also have to clean your pans, wipe your board, keep your knife clean, shuffle food between your fridge, your board, your pans, etc. You also have to do extra prep work for things that you estimated wrong at the beginning of the day, or for special orders that come in.

You could just pile up dirty pans as you go, but eventually you will have nothing to cook with. You have to find time to clean them as you go. You could take everything out of the fridge and leave it on your board, but then you won't have room to prepare the food and your food will spoil.

Prioritising this work is not something that can be done in a meeting. The chef doesn't stop and chat with the waiter about whose food has the highest priority and negotiate, "Maybe wash that pan later, so that we can serve this dish first. We'll take the hit of unsatisfied customers who have to wait and watch you wash dishes for half an hour later." The judgement call is left up to the chef because it is the chef who knows better than anyone how to keep a constant throughput in order to keep the customers happy.

It doesn't mean that the waiter has no say in the matter. If they perceive that something needs fixing now, they must say it, but the chef needs to figure out how to accomplish that while keeping the kitchen moving.

In our software shops, we tend to listen to our stakeholders and given them literally what they are asking for. We often don't make the judgement call correctly of how to keep the "kitchen" moving. Our project managers often press the big red panic button and say, "Stop everything and just fry the steak. Don't wash dishes. Don't put the meat back in the firdge. Don't clean the board. Don't clean your knife. Don't prep for the next customer." -- with predictable results.

Adding a 20% (or whatever) "budget" for allowing the developer to choose what to do is great, but the reality is that the developer needs to be able to choose what to do next 100% of the time -- and they need to have the ability and experience to choose correctly most of that 100%. This is the tricky part. If you do not have people like that on your staff, then you may be stuck trying to get by with planned work. It's going to be a crappy kitchen: food left out to waste, knives unsharped, dishes piling up in the sink. You might be fortunate enough to have someone on your team who will choose to wash they mountains of dishes in their "20% time", but the odds are fairly slim. What you really need is a chef who can direct traffic in the kitchen and who has the authority to make judgement calls 100% of the time.

Note: If you ever get a chance to watch on open kitchen with a single chef who does everything, it is a fascinating experience. Only a small fraction of their time is spent actually cooking your food. Most of it is shuffling things around, cleaning and organizing. Yes, most professional kitchens have specialized positions, but I think this is metaphor is closer to the reality of programmers.

Re:Environment Variables and Path in Windows 10 by sien on Monday October 26, 2015 @12:08AM (#10449563)
Perhaps it was because MS didn't want manual PATH alterations to be easy or they suspected too many people would have made their program only work if there was a manual alteration to it.

The DOS prompt being terrible for 20 years might have similar justification. In 1995 MS would have many developers who would have just shifted their DOS apps to the command line if they could have gotten away with it.

The OSX finder may have been made similar ideas in mind.

Re:Environment Variables and Path in Windows 10 by eropple on Monday October 26, 2015 @12:06AM (#10449558)
> What's completely inexplicable is why it took 23 years to do this.

I don't think it's inexplicable at all. "It wasn't considered to be an important enough change to be worth developer time by the people who owned that chunk of the codebase." Maybe it became important enough, or maybe somebody decided to make it their priority to push the change through, but random sharp edges show up in enterprise products, and persist, all the time.

Re:Environment Variables and Path in Windows 10 by frik on Monday October 26, 2015 @01:50AM (#10449782)
MAXPATH limit? WinAPI/dotNetFramework only supports 260 chars in the file path. And the UNC path (no limitation) isn't supported even in Explorer and most APIs. NodeJS and cross platform devs would beg to improve it (the guys who wrote the Win32 API and made their life too easy by copying too much of the Win16 API)!

26 drive letters? The NT kernel and NTFS/ReFS are very flexible, just update the WinAPI!

For some reason MS nowadays messes around with the UI (Win8/10 theming isn't that beautiful nor intuitive), the privacy settings, windows update, instead of keeping the Win9x/XP/Vista themes and improving the Win32 subsystem. Even WinRuntime API is a Win32 subsystem citizen. Either improve it or port WinRT to another subsystem. I wonder what Dave Cutler is working on at the moment (after VMS, WinNT kernel, XBox and Azure platform), or has he retired?

Re:Environment Variables and Path in Windows 10 by lewisl9029 on Monday October 26, 2015 @03:13AM (#10449949)
The 260 chars file path limit is a huge pain point for me personally, since I do most of my development in a Vagrant Ubuntu VM for the portability and superior tooling support.

I wish Microsoft would just put their support behind one of the popular open-source filesystems and release it as an alternative filesystem for Windows. This plus an officially supported NFS server and a POSIX compatible API would dramatically increase the viability of using Windows natively for development.

Re:Environment Variables and Path in Windows 10 by kevingadd on Monday October 26, 2015 @03:43AM (#10450002)
NTFS is honestly a great filesystem. Most of the stuff people dislike is due to the Win32 layer on top. For example:

NTFS is case sensitive.

NTFS does not have a 260ch path limit.

The slowness of stat() (or at least part of it) is due to the inefficient way Win32 does filesystem enumeration/status queries.

Re:Environment Variables and Path in Windows 10 by cm2187 on Monday October 26, 2015 @04:08AM (#10450056)
I am not sure case sensitivity is a good thing. Do you really want users to wonder what is the difference between toolxyz.exe and Toolxyz.exe? How do they even google that?
Re:Environment Variables and Path in Windows 10 by kuschku on Monday October 26, 2015 @05:27AM (#10450259)
It is good to have case sensitivity in the file system, and insensitivity in the UI.
Re:Environment Variables and Path in Windows 10 by Someone1234 on Monday October 26, 2015 @10:20AM (#10451596)
Why? The person above at least gave an example of why not, you're just simply stating the contrary without any explanation.
Re:Environment Variables and Path in Windows 10 by kuschku on Monday October 26, 2015 @01:11PM (#10452756)
The user wants to have the ability to use both cases, but to support legacy software, it might be necessary to support cases.

Also, upper/lowercasing is not defined the same in all languages. In turkish, i becomes uppercase Í.

Re:Environment Variables and Path in Windows 10 by frik on Monday October 26, 2015 @06:07AM (#10450404)
NT kernel and NTFS supports that, it can be activated.
Re:Environment Variables and Path in Windows 10 by be5invis on Monday October 26, 2015 @05:55AM (#10450364)
CoreFX has supported long paths as well as UNC paths recently. I'm just wondering when this improvement will be shipped.
Re:Environment Variables and Path in Windows 10 by cm2187 on Monday October 26, 2015 @04:21AM (#10450084)
Talking about a massively used piece of UI that Microsoft never updated in 20 years: the FX button near the formula bar in Excel. This is the only way to find a function with a description of what it does or to find what are the arguments of a function. It still shows a tiny non resizable window, with a list of thousands native functions and udf crammed in a tiny listbox, a search box that doesn't search anything, etc...
Re:Environment Variables and Path in Windows 10 by Someone1234 on Monday October 26, 2015 @10:23AM (#10451613)
Excel is full of these...

Press CTRL-F (find/replace), and you'll note that even in Excel 2013 CTRL-A (select all) doesn't work in either the find or replace boxes.

It has been this way since at least Office 95.

Re:Environment Variables and Path in Windows 10 by ZenoArrow on Monday October 26, 2015 @04:36AM (#10450117)
F1 is your friend.

Imagine you'll be able access this through the online help:

https://support.office.com/en-us/article/Excel-functions-by-...

Re:Environment Variables and Path in Windows 10 by cm2187 on Monday October 26, 2015 @04:53AM (#10450163)
F1 is actually my worse enemy, too close to F2 for my fat fingers.

The offline help is fine for Excel functions. But where I work, 90% of the functions used are coming from addins, and even though they also have a documentation somewhere, it can't be reached with F1.

Documentation is necessary but hints should be inline/contextual, like intellisense in visual studio. I don't want to have to leave what I am doing just to figure out which is the next argument in a function.

Excel could use a powerful autocomplete like intellisense that gives you basic documentation inside the auto-complete.

But Office is the "sleeping beauty" of Microsoft. A bit of an old and hairy beauty though.

Re:Environment Variables and Path in Windows 10 by mistermann on Monday October 26, 2015 @09:42AM (#10451310)
Rarely does F1 work (like it used to) in most any MS app I've used in the last 5 years. I think they decided to just say fuck it and outsource that functionality to Google.
Re:Environment Variables and Path in Windows 10 by ZenoArrow on Monday October 26, 2015 @12:01PM (#10452259)
F1 works incredibly well in Visual Studio, especially if you're working with one of the flagship .NET languages. For example, highlight a core language element in your code, press F1 and you'll get specific help on it.
Re:Environment Variables and Path in Windows 10 by bane on Monday October 26, 2015 @05:18AM (#10450240)
Putting on my conspiracy theory hat for a second, I bet this had to do with killing Java on the desktop or something.

Nothing made it harder to get people to use Java apps then telling them to download and install a runtime and then add some path things to some mercurial and hard to use part of the OS.

Just about the only time I've ever had to interact with the path dialog on a windows system its been for the purpose of setting up java.

And sun/oracle hasn't done any favors for themselves either in making the setup process better.

Re:Environment Variables and Path in Windows 10 by mistermann on Monday October 26, 2015 @09:46AM (#10451341)
> And sun/oracle hasn't done any favors for themselves either in making the setup process better.

Massive understatement! :)

As well, in my limited experience, vendors who write something java-based absolutely can't be bothered to write a help document on how to configure java to run their app despite hundreds of people posting in forums asking for help...."not our problem, you should know how to do that" seems to be the sentiment.

Re:Environment Variables and Path in Windows 10 by jfoster on Monday October 26, 2015 @03:54AM (#10450023)
Everyone was coping and Microsoft wasn't losing money.
Re:Environment Variables and Path in Windows 10 by devit on Monday October 26, 2015 @06:27AM (#10450463)
It's rarely used, and only by experienced users.

Also, 3rd party software can provide that functionality

Re:Environment Variables and Path in Windows 10 by incepted on Monday October 26, 2015 @03:03AM (#10449926)
> What's completely inexplicable is why it took 23 years to do this.

At least, it did get revamped.

Notepad and the Command window are still pretty much what they were in Windows 95.

Re:Environment Variables and Path in Windows 10 by Dylan16807 on Monday October 26, 2015 @03:07AM (#10449932)
Notepad's an edit control with a menu. You can't significantly upgrade it and still have it be Notepad.
Re:Environment Variables and Path in Windows 10 by ZainRiz on Monday October 26, 2015 @03:53AM (#10450020)
You ever try out Notepad2? It's basically Notepad but waaaaaay nicer
Re:Environment Variables and Path in Windows 10 by kozukumi on Monday October 26, 2015 @04:51AM (#10450161)
Or even better Notepad2-mod! http://xhmikosr.github.io/notepad2-mod/
Re:Environment Variables and Path in Windows 10 by josteink on Monday October 26, 2015 @03:24AM (#10449967)
Not so. The command window is resizable like a real terminal emulator now.

I was almost shocked when I discovered that one. I had honestly given up thinking it would never get fixed.