whoami is deprecated, and has been replaced with id for osx and windows
use "echo %username%" on Windows as availability of whom is limited on windows
fall back on hostname if for some reason it doesn't work
This will hopefully solve a problem where whomami seemed to return an empty string for some reason.
NB I don't have a reproducer for the problem, but it seems to be gone, and I haven't been able to test the new version on Windows (@bagong maybe you could help?), though I've confirmed the cl command works.
Signed-off-by: Scott Wilson i@scottwilson.ca
The single commit in this PR does the following:
This will hopefully solve a problem where whomami seemed to return an empty string for some reason.
NB I don't have a reproducer for the problem, but it seems to be gone, and I haven't been able to test the new version on Windows (@bagong maybe you could help?), though I've confirmed the cl command works. Signed-off-by: Scott Wilson i@scottwilson.ca