Pierre A. Humblet wrote:

Question:
have you a known situation where $USERDOMAIN != hostname and
you weren't logged into a domain?

No. But I have only checked on one machine. By the way that test is not needed in the script with -c, because it
is then done in a case insensitive manner by mkpasswd itself.
BoydE@DU216771 ~
$ hostname
du216771

BoydE@DU216771 ~
$ echo $USERDOMAIN
LCI

BoydE@DU216771 ~
$ type hostname
hostname is hashed (/c/WINNT/system32/hostname)

BoydE@DU216771 ~
$ echo $HOSTNAME
DU216771

BoydE@DU216771 ~
$


Reply via email to