t-r-77

Results comments of t-r-77

> `session optional pam_umask.so umask=0027` That's very bad. Better is: The default umask on my servers is 077. I've a dev-base-dir "/a41-dev". as user "root": ``` mkdir /a41-dev/src chmod 775...

Detecting WSL (bash code). Tested with - WSL 1 - WSL 2 (standard kernel AND custom kernel) The detection should be future safe. Code is from a new (currently not...

> From a shell developer PoV this is horridly inefficient. Maybe. But it's working. Is your C-Code working under all conditions? No. Is your C-Code posted above inefficient? Yepp. Checking...

> Why even use grep? Shows how little you understand the Unix toolkit and shell. (But then, you mentioned systemd, so this is to be expected.) I know the tools...

The optimized version https://github.com/t-ru/wsl-misc/blob/master/detect-wsl-version/detect-wsl-version-v2.sh

Bring butter to the fishes. Post better code. I will gladly take it over. I found code from you ``` /* check uname first (this is improbable to fail) */...