Re:Ask HN: What to use instead of Bash / Sh for scripting?
by majkinetor on Saturday April 10, 2021 @11:56AM
(#26762394)
How about pwsh -NoLogo -NoProfile ?
BTW, Windows OS is often subject of Windows Defender and other AVs which are not present on Linux machines and their slowdown of the system is phenomenal.
[ Parent
| on HN ]
Re:Ask HN: What to use instead of Bash / Sh for scripting?
by scaladev on Saturday April 10, 2021 @11:51PM
(#26767354)
Thanks for the suggestion. Adding these flags halves the startup time:
$ time ./pwsh -NoProfile -NoLogo <<<'' >/dev/null
real 0m0.456s
user 0m0.388s
sys 0m0.040s
Much better, but I still wouldn't use this even as an interactive shell, as I open a few hundred terminal windows each day.There's no defender (or anything similar) on that other machine. It also has an SSD. With an older HDD powershell started in about 10-15 seconds there (while cold startup time for bash was something like a second, and instantly afterwards).
Re:Ask HN: What to use instead of Bash / Sh for scripting?
by majkinetor on Sunday April 11, 2021 @11:39AM
(#26771057)
I open few hundred terminals each day. There is something seriously wrong with your machines. Pwsh is not a king of speed but 10-15 is local problem. Anything more then 2 seconds is a local problem. You can maybe get to 5 with lots of modules in your profile.