NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: where is device manufacturer/model kept?



    Date:        Mon, 28 Jun 2021 12:18:50 +0000 (UTC)
    From:        RVP <rvp%SDF.ORG@localhost>
    Message-ID:  <556bb7f-3792-635e-86ed-6d7c6b752b3c%SDF.ORG@localhost>

  | echo $(sysctl -n machdep.dmi.system-vendor)

That's a convoluted way of writing
	sysctl -n machdep.dmi.system-vendor
and one which could fail if the string just happened to contain
the "wrong" characters (depending upon which version of echo is
being used for which are "wrong" for this purpose).

kre




Home | Main Index | Thread Index | Old Index