On 08/28/2010 02:42 AM, T o n g wrote:
Hi,

The NAME environment variable is very important to my script, but in one
Debian derivative distro (<cough>,<cough>, Ubuntu), I found such
variable does not exist:

  $ env | grep ^NAME || echo no found
  no found

This is the first time that I found the NAME variable missing from the
environment. How common is this?

Thanks

Hi,
my Squeeze and Sid box also doesnt have NAME in env.
Maybe this script can help you for determine *nix distro.
http://legroom.net/2010/05/05/generic-method-determine-linux-or-unix-distribution-name

--
Bye,
Goran Dobosevic
Hrvatski: www.dobosevic.com
 English: www.dobosevic.com/en/
Registered Linux User #503414


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/4c7860f9.7090...@dobosevic.com

Reply via email to