Re: OSTYPE & MACHTYPE
- From
- Serguei Revtov (2:5021/19.1)
- To
- Alexander Afonyashin
- Date
- 2006-01-27T10:54:42Z
- Area
- RU.UNIX.SOLARIS
Hi Alexander!
>>>>> Thu, 26 Jan 06 23:37:05 +0300 Alexander Afonyashin wrote:
AA> Hello All. Кто выставляет эти две переменные? Ядро, скрипты при
AA> загрузке системы?
bash вроде
# env|grep OSTY
# bash
bash-2.02# env|grep OSTY
OSTYPE=solaris2.4
видать выставляет ОС, в которой его компилили.
А вот в man bash:
OSTYPE
Automatically set to a string that describes the
operating system on which bash is executing. The
default is system-dependent.
MACHTYPE
Automatically set to a string that fully describes the
system type on which bash is executing, in the standard
GNU cpu-company-system format. The default is system-
dependent.
врут ж)
-- Serguei
2:5021/11.10 || 2:5021/19.1
--- Gnus v5.6.45/XEmacs 21.1 - "Bryce Canyon"
* Origin: Welcome to Ru.Unix.Solaris (2:5021/19.1)
SEEN-BY: 46/50 450/1024 5000/5000 5011/13 5012/46 5015/28 5020/545 715 4441
SEEN-BY: 5021/2 19 29 5025/3 5027/12 5030/115 1957 5035/38 5045/7 5053/16
SEEN-BY: 5054/1 4 8 9 28 35 37 5062/10 5080/1003 5085/13 5095/20 5096/18
SEEN-BY: 6000/1
PATH: 5021/19 29 5020/545 5054/1 37