Hacker News new | ask | show | jobs
by pcthrowaway 1141 days ago
From everything I've heard about Windows turning into user-hostile bloatware over the last few years, nothing in this post seems like a good enough reason to use it. Perhaps it's Stockholm syndrom, but I honestly like my Unix-y tools (bash, jq, awk) at this point

Also, regarding this example

    {
        $Env:MYSQL_HOST = "MyHost.com";
        $Env:MYSQL_USER = "MyUser";
        java -jar myprogram.jar;
    }
You can do the same thing in Bash with perhaps slightly more verbosity

    (
        export MYSQL_HOST="MyHost.com";
        export MYSQL_USER="MyUser";
        sh -c 'echo "using $MYSQL_USER@$MYSQL_HOST"'
    )
    sh -c 'echo "using $MYSQL_USER@$MYSQL_HOST"'
outputs:

    using MyUser@MyHost.com
    using @
2 comments

At least one subtle difference, is a bare scope block like TFA has, will print out everything in it instead of the output you would expect, where as Bash behaves more like Invoke-Command -ScriptBlock {}.

Compare:

  PS /home/me> {
  >>     $Env:MYSQL_HOST = "MyHost.com";
  >>     $Env:MYSQL_USER = "MyUser";
  >>     java -jar myprogram.jar;
  >> }

    $Env:MYSQL_HOST = "MyHost.com";
    $Env:MYSQL_USER = "MyUser";
    java -jar myprogram.jar;


  PS /home/me> Invoke-Command -ScriptBlock {
  >>     $Env:MYSQL_HOST = "MyHost.com";
  >>     $Env:MYSQL_USER = "MyUser";
  >>     java -jar myprogram.jar;
  >> }
  Error: Unable to access jarfile myprogram.jar
People were complaining that Windows was "user-hostile bloatware" as long as there's been a Windows to complain about.
Sometimes a cliche is a cliche for a reason.

I certainly felt the hostility when I discovered the preloaded apps and ads in my Win11 install that aren't included in the much more expensive enterprise version.

https://news.ycombinator.com/item?id=35614190

> Microsoft plugging more ads into Windows 11 Start Menu

I mean, come on.