8b82a57931
Submitted by: metal Reviewed by: Watanabe Kazuhiro <CQG00620@nifty.ne.jp>
249 lines
6.8 KiB
Groff
249 lines
6.8 KiB
Groff
.\" Copyright (c) 1983, 1990, 1993
|
|
.\" The Regents of the University of California. All rights reserved.
|
|
.\"
|
|
.\" Redistribution and use in source and binary forms, with or without
|
|
.\" modification, are permitted provided that the following conditions
|
|
.\" are met:
|
|
.\" 1. Redistributions of source code must retain the above copyright
|
|
.\" notice, this list of conditions and the following disclaimer.
|
|
.\" 2. Redistributions in binary form must reproduce the above copyright
|
|
.\" notice, this list of conditions and the following disclaimer in the
|
|
.\" documentation and/or other materials provided with the distribution.
|
|
.\" 3. All advertising materials mentioning features or use of this software
|
|
.\" must display the following acknowledgement:
|
|
.\" This product includes software developed by the University of
|
|
.\" California, Berkeley and its contributors.
|
|
.\" 4. Neither the name of the University nor the names of its contributors
|
|
.\" may be used to endorse or promote products derived from this software
|
|
.\" without specific prior written permission.
|
|
.\"
|
|
.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
|
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
|
.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
|
.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
|
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
|
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
|
.\" SUCH DAMAGE.
|
|
.\"
|
|
.\" @(#)environ.7 8.3 (Berkeley) 4/19/94
|
|
.\" %FreeBSD: src/share/man/man7/environ.7,v 1.23 2004/07/03 18:29:23 ru Exp %
|
|
.\"
|
|
.\" $FreeBSD$
|
|
.Dd April 12, 2003
|
|
.Dt ENVIRON 7
|
|
.Os
|
|
.Sh ̾¾Î
|
|
.Nm environ
|
|
.Nd ¥æ¡¼¥¶´Ä¶
|
|
.Sh ½ñ¼°
|
|
.Ar extern char **environ ;
|
|
.Sh ²òÀâ
|
|
.Ar ´Ä¶
|
|
¤È¸Æ¤Ð¤ì¤ëʸ»úÎó¤ÎÇÛÎó¤Ï¡¢
|
|
¥×¥í¥»¥¹³«»Ï»þ¤Ë
|
|
.Xr execve 2
|
|
¤ò¸Æ¤Ó½Ð¤¹¤³¤È¤Ë¤è¤Ã¤ÆÍøÍѲÄǽ¤Ë¤Ê¤ê¤Þ¤¹¡£
|
|
½¬´·¤Ë¤è¤Ã¤Æ¡¢¤³¤ì¤é¤Îʸ»úÎó¤Ï
|
|
.Dq Ar name=value
|
|
¤È¤¤¤¦·Á¤ò¼è¤ê¤Þ¤¹¡£
|
|
°Ê²¼¤Î̾Á°¤Ï¿¤¯¤Î¥³¥Þ¥ó¥É¤Ë¤è¤Ã¤ÆÍøÍѤµ¤ì¤Þ¤¹:
|
|
.Bl -tag -width LC_MONETARY
|
|
.It Ev BLOCKSIZE
|
|
¤¤¤¯¤Ä¤«¤Î¥³¥Þ¥ó¥É (ºÇ¤â¤è¤¯ÃΤé¤ì¤Æ¤¤¤ëʪ¤È¤·¤Æ¤Ï
|
|
.Xr df 1 ,
|
|
.Xr du 1 ,
|
|
.Xr ls 1 )
|
|
¤ÇÍѤ¤¤é¤ì¤ë¥Ö¥í¥Ã¥¯Ã±°Ì¤Î¥µ¥¤¥º¡£
|
|
.Ev BLOCKSIZE
|
|
¤Ë¤Ï¡¢¿ô»ú¤ò»ØÄꤹ¤ë¤³¤È¤Ë¤è¤Ã¤Æ¥Ð¥¤¥Èñ°Ì¤ÎÃͤò¡¢
|
|
¿ô»ú¤Î¸å¤Ë ``K'' ¤« ``k'' ¤ò»ØÄꤹ¤ë¤³¤È¤Ë¤è¤Ã¤Æ¥¥í¥Ð¥¤¥Èñ°Ì¤ÎÃͤò¡¢
|
|
¿ô»ú¤Î¸å¤Ë ``M'' ¤« ``m'' ¤ò»ØÄꤹ¤ë¤³¤È¤Ë¤è¤Ã¤Æ¥á¥¬¥Ð¥¤¥Èñ°Ì¤ÎÃͤò¡¢
|
|
¿ô»ú¤Î¸å¤Ë ``G'' ¤« ``g'' ¤ò»ØÄꤹ¤ë¤³¤È¤Ë¤è¤Ã¤Æ¥®¥¬¥Ð¥¤¥Èñ°Ì¤ÎÃͤò¡¢
|
|
»ØÄꤹ¤ë¤³¤È¤¬¤Ç¤¤Þ¤¹¡£
|
|
512 ¥Ð¥¤¥È¤è¤ê¾®¤µ¤¤Ãͤä 1 ¥®¥¬¥Ð¥¤¥È¤è¤êÂ礤¤Ãͤò»ØÄꤷ¤Æ¤â̵»ë¤µ¤ì¤Þ¤¹¡£
|
|
.It Ev COLUMNS
|
|
¥æ¡¼¥¶¤Î¹¥¤ß¤ÎüËöÉý¤ò¡¢¥³¥é¥à°ÌÃÖñ°Ì¤Ç»ØÄꤷ¤Þ¤¹¡£
|
|
.Xr ls 1
|
|
¤ä
|
|
.Xr who 1
|
|
¤È¤¤¤Ã¤¿¥æ¡¼¥Æ¥£¥ê¥Æ¥£¤¬¡¢¤³¤ì¤ò»ÈÍѤ·¡¢½ÐÎϤò»ØÄꤵ¤ì¤¿¥³¥é¥à¿ô¤Ë¼ý¤á¤Þ¤¹¡£
|
|
ÀßÄꤵ¤ì¤Æ¤¤¤Ê¤¤¤â¤·¤¯¤Ï¶õ¤Î¾ì¹ç¡¢¥æ¡¼¥Æ¥£¥ê¥Æ¥£¤Ï
|
|
.Xr ioctl 2
|
|
¸Æ¤Ó½Ð¤·¤ò»ÈÍѤ·¡¢Ã¼Ëö¥É¥é¥¤¥Ð¤ËÉý¤òÌ䤤¹ç¤ï¤»¤Þ¤¹¡£
|
|
.It Ev EDITOR
|
|
¥Ç¥Õ¥©¥ë¥È¤Î¥¨¥Ç¥£¥¿¤Î̾Á°¡£
|
|
.It Ev EXINIT
|
|
.Xr ex 1 ,
|
|
.Xr vi 1
|
|
¤¬»²¾È¤¹¤ë¡¢¥¹¥¿¡¼¥È¥¢¥Ã¥×»þ¤Î¥³¥Þ¥ó¥É¥ê¥¹¥È¡£
|
|
.It Ev HOME
|
|
.Xr login 1
|
|
¤Ë¤è¤Ã¤Æ¡¢¥Ñ¥¹¥ï¡¼¥É¥Õ¥¡¥¤¥ë
|
|
.Xr passwd 5
|
|
¤ò¸µ¤Ë¥»¥Ã¥È¤µ¤ì¤ë¥æ¡¼¥¶¤Î¥í¥°¥¤¥ó¥Ç¥£¥ì¥¯¥È¥ê¡£
|
|
.It Ev LANG
|
|
.Ev LC_*
|
|
ÊÑ¿ô¤¬ÀßÄꤵ¤ì¤Æ¤¤¤Ê¤¤¾ì¹ç¡¢
|
|
.Xr setlocale 3
|
|
¤ò»ÈÍѤ¹¤ëÁ´¤Æ¤Î¥×¥í¥°¥é¥à¤ò¡¢¤³¤ÎÊÑ¿ô¤Ë»ØÄꤵ¤ì¤¿¥í¥±¡¼¥ë¤ò»È¤¦¤è¤¦¤Ë
|
|
ÀßÄꤷ¤Þ¤¹¡£
|
|
.It Ev LC_ALL
|
|
.Ev LC_COLLATE ,
|
|
.Ev LC_CTYPE ,
|
|
.Ev LC_MESSAGES ,
|
|
.Ev LC_MONETARY ,
|
|
.Ev LC_NUMERIC ,
|
|
.Ev LC_TIME ,
|
|
.Ev LANG
|
|
¤ËÍ¥À褹¤ëÃͤǤ¹¡£
|
|
.It Ev LC_COLLATE
|
|
ʸ»úÎó¤Î½ç½ø¤Ë»ÈÍѤ¹¤ë¥í¥±¡¼¥ë¤Ç¤¹¡£
|
|
.It Ev LC_CTYPE
|
|
ʸ»ú¤Î¥¯¥é¥¹Ê¬¤± (¥ì¥¿¡¼¡¢¶õÇò¡¢¿ôÃÍÅù) ¤È¡¢
|
|
¥Ð¥¤¥È¥·¡¼¥±¥ó¥¹¤ò¥Þ¥ë¥Á¥Ð¥¤¥Èʸ»ú¤È¤·¤Æ²ò¼á¤¹¤ë¤³¤È¤Ë»ÈÍѤ¹¤ë¥í¥±¡¼¥ë¤Ç¤¹¡£
|
|
.It Ev LC_MESSAGES
|
|
¿ÇÃÇ¥á¥Ã¥»¡¼¥¸¤Ë»ÈÍѤ¹¤ë¥í¥±¡¼¥ë¤Ç¤¹¡£
|
|
.It Ev LC_MONETARY
|
|
Ä̲ߤÎÆþÎϤÈÀ°·Á½ÐÎϤ˻ÈÍѤ¹¤ë¥í¥±¡¼¥ë¤Ç¤¹¡£
|
|
.It Ev LC_NUMERIC
|
|
¿ôÃͤÎÆþÎϤÈÀ°·Á½ÐÎϤ˻ÈÍѤ¹¤ë¥í¥±¡¼¥ë¤Ç¤¹¡£
|
|
.It Ev LC_TIME
|
|
ÆüÉÕ¤ÎÆþÎϤÈÀ°·Á½ÐÎϤ˻ÈÍѤ¹¤ë¥í¥±¡¼¥ë¤Ç¤¹¡£
|
|
.It Ev MAIL
|
|
¥æ¡¼¥¶¤Î¥á¡¼¥ë¥Ü¥Ã¥¯¥¹¤Î¾ì½ê¤Ç¤¹¡£
|
|
.Xr mail 1
|
|
¤ä
|
|
.Xr sh 1
|
|
¡¢¤½¤Î¾¿¤¯¤Î¥á¡¼¥ë¥¯¥é¥¤¥¢¥ó¥È¤¬¡¢¥Ç¥Õ¥©¥ë¥È¤Î /var/mail ¤Î
|
|
Âå¤ï¤ê¤ËÍѤ¤¤Þ¤¹¡£
|
|
.It Ev NLSPATH
|
|
.Ev LC_MESSAGES
|
|
¤¬»²¾È¤¹¤ë¥á¥Ã¥»¡¼¥¸¥«¥¿¥í¥°¤òõ¤¹¡¢¥Ç¥£¥ì¥¯¥È¥ê¤Î¥ê¥¹¥È¡£
|
|
.Xr catopen 3
|
|
¤ò»²¾È¤·¤Æ¤¯¤À¤µ¤¤¡£
|
|
.It Ev PAGER
|
|
¥Ç¥Õ¥©¥ë¥È¤Î¥Ú¡¼¥¸¥ã¥×¥í¥°¥é¥à¡£
|
|
.Xr mail 1 ,
|
|
.Xr man 1 ,
|
|
.Xr ftp 1
|
|
¤Ê¤É¤¬¡¢»ÈÍÑÃæ¤Î¥Ç¥£¥¹¥×¥ì¥¤¤è¤ê¤âŤ¤¾ðÊó¤òɽ¼¨¤¹¤ë¤È¤¤Ë¡¢
|
|
¤³¤ÎÊÑ¿ô¤Ç»ØÄꤵ¤ì¤¿¥×¥í¥°¥é¥à¤ò»ÈÍѤ·¤Þ¤¹¡£
|
|
.It Ev PATH
|
|
¥³¥í¥ó¤Ç¶èÀÚ¤é¤ì¤¿¥Ç¥£¥ì¥¯¥È¥ê¤ÎÎó¤Ç¤¹¡£
|
|
.Xr csh 1 ,
|
|
.Xr sh 1 ,
|
|
.Xr system 3 ,
|
|
.Xr execvp 3
|
|
¤Ê¤É¤¬¡¢¼Â¹Ô¥Õ¥¡¥¤¥ë¤òõ¤¹¤È¤¤Ë¸¡º÷¤·¤Þ¤¹¡£
|
|
.Ev PATH
|
|
¤Î½é´üÃͤϡ¢
|
|
.Xr login 1
|
|
¤Ë¤è¤Ã¤Æ¡¢``/usr/bin:/bin'' ¤Ë¥»¥Ã¥È¤µ¤ì¤Þ¤¹¡£
|
|
.It Ev PRINTER
|
|
.Xr lpr 1 ,
|
|
.Xr lpq 1 ,
|
|
.Xr lprm 1
|
|
¤Ë¤è¤Ã¤ÆÍѤ¤¤é¤ì¤ë¥Ç¥Õ¥©¥ë¥È¤Î¥×¥ê¥ó¥¿¤Î̾Á°¡£
|
|
.It Ev PWD
|
|
¥«¥ì¥ó¥È¥Ç¥£¥ì¥¯¥È¥ê¤Î¥Ñ¥¹Ì¾¡£
|
|
.It Ev SHELL
|
|
¥æ¡¼¥¶¤Î¥í¥°¥¤¥ó¥·¥§¥ë¤Î¥Õ¥ë¥Ñ¥¹Ì¾¡£
|
|
.It Ev TERM
|
|
½ÐÎϤò½àÈ÷¤¹¤ëɬÍפΤ¢¤ëüËö¤Î¼ïÎà¡£
|
|
¤³¤Î¾ðÊó¤Ï
|
|
.Xr nroff 1
|
|
¤ä
|
|
.Xr plot 1
|
|
¤Ê¤É¤Î¡¢Ã¼Ëö¤ÎÆüì¤Êµ¡Ç½¤ò¶î»È¤¹¤ë¥³¥Þ¥ó¥É¤Ë¤è¤Ã¤ÆÍѤ¤¤é¤ì¤Þ¤¹¡£
|
|
üËö¥¿¥¤¥×¤Î¥ê¥¹¥È¤Ï¡¢
|
|
.Pa /usr/share/misc/termcap
|
|
.Pq Xr termcap 5
|
|
¤ò»²¾È¤·¤Æ¤¯¤À¤µ¤¤¡£
|
|
.It Ev TERMCAP
|
|
.Ev TERM
|
|
¤Ç»ØÄꤷ¤¿Ã¼Ëö¤Îµ¡Ç½¤òµ½Ò¤¹¤ëʸ»úÎ󡢤¢¤ë¤¤¤Ï¡¢Ê¸»úÎó¤¬ `/' ¤Ç
|
|
»Ï¤Þ¤ë¾ì¹ç¡¢termcap ¥Õ¥¡¥¤¥ë¤Î̾Á°¡£
|
|
²¼µ¤Î
|
|
.Ev TERMPATH ,
|
|
.Xr termcap 5
|
|
¤ò»²¾È¤·¤Æ¤¯¤À¤µ¤¤¡£
|
|
.It Ev TERMPATH
|
|
¥³¥í¥ó¤¢¤ë¤¤¤Ï¥¹¥Ú¡¼¥¹¤Ç¶èÀÚ¤é¤ì¤¿¡¢termcap ¤Î¥Ñ¥¹Ì¾¤ÎÎó¤Ç¡¢
|
|
üËö¤Îµ¡Ç½µ½Ò¤òÃΤ뤿¤á¤Ë¡¢Îóµó¤µ¤ì¤¿½çÈ֤Ǹ¡º÷¤µ¤ì¤Þ¤¹¡£
|
|
.Ev TERMPATH
|
|
¤ò»ØÄꤷ¤Æ¤¤¤Ê¤¤¾ì¹ç¤Ï¡¢
|
|
.Ev TERMPATH
|
|
¤ò
|
|
.Dq Pa $HOME/.termcap:/etc/termcap
|
|
¤Ë»ØÄꤷ¤Æ¤¤¤ë»þ¤ÈƱ¤¸·ë²Ì¤Ë¤Ê¤ê¤Þ¤¹¡£
|
|
.Ev TERMCAP
|
|
¤¬¥Õ¥ë¥Ñ¥¹Ì¾¤ò´Þ¤ó¤Ç¤¤¤ë¾ì¹ç¤Ï¡¢
|
|
.Ev TERMPATH
|
|
¤Ï̵»ë¤µ¤ì¤Þ¤¹¡£
|
|
.It Ev TMPDIR
|
|
¥Æ¥ó¥Ý¥é¥ê¥Õ¥¡¥¤¥ë¤òÃÖ¤¯¤¿¤á¤Î¾ì½ê¡£¤Û¤È¤ó¤É¤Î¥¢¥×¥ê¥±¡¼¥·¥ç¥ó¤Ï
|
|
.Dq /tmp
|
|
¤«
|
|
.Dq /var/tmp
|
|
¤òÍѤ¤¤Þ¤¹¡£¤³¤ÎÊÑ¿ô¤ò»ØÄꤹ¤ì¤Ð¡¢Â¾¤Î¥Ç¥£¥ì¥¯¥È¥ê¤ò»È¤¦¤è¤¦¤Ë¤Ê¤ë¤Ç¤·¤ç¤¦¡£
|
|
.It Ev TZ
|
|
ÆüÉÕ¤òɽ¼¨¤¹¤ë»þ¤Ë»È¤ï¤ì¤ë¥¿¥¤¥à¥¾¡¼¥ó¡£
|
|
Ä̾ï¤Î¥Õ¥©¡¼¥Þ¥Ã¥È¤Ï¡¢
|
|
.Dq Pa /usr/share/zoneinfo
|
|
¤«¤é¤ÎÁêÂХѥ¹Ì¾¤Ç¤¹¡£
|
|
Î㤨¤Ð¡¢¥³¥Þ¥ó¥É
|
|
.Dq env TZ=America/Los_Angeles date
|
|
¤Ï¡¢¥«¥ê¥Õ¥©¥ë¥Ë¥¢¤Î¸½ºß»þ¹ï¤òɽ¼¨¤·¤Þ¤¹¡£
|
|
¤è¤ê¾Ü¤·¤¤¾ðÊó¤Ï¡¢
|
|
.Xr tzset 3
|
|
¤ò»²¾È¤·¤Æ¤¯¤À¤µ¤¤¡£
|
|
.It Ev USER
|
|
¥æ¡¼¥¶¤Î¥í¥°¥¤¥ó̾¡£
|
|
.El
|
|
.Pp
|
|
¤³¤ì°Ê³°¤Î̾Á°¤â¡¢
|
|
.Xr sh 1
|
|
¤Ë¤ª¤¤¤Æ¤Ï
|
|
.Ic export
|
|
¥³¥Þ¥ó¥É¤È
|
|
.Ar name=value
|
|
°ú¿ô¤Ë¤è¤Ã¤Æ¡¢
|
|
.Xr csh 1
|
|
¤ò»ÈÍѤ·¤Æ¤¤¤ë»þ¤Ë¤Ï
|
|
.Ic setenv
|
|
¥³¥Þ¥ó¥É¤Ë¤è¤Ã¤Æ´Ä¶¤ËÉÕ¤±²Ã¤¨¤ë¤³¤È¤¬¤Ç¤¤Þ¤¹¡£
|
|
.Pa .profile
|
|
¥Õ¥¡¥¤¥ë¤Ç¤·¤Ð¤·¤Ð¥¨¥¯¥¹¥Ý¡¼¥È¤µ¤ì¤ë¡¢
|
|
.Ev MAIL ,
|
|
.Ev PS1 ,
|
|
.Ev PS2 ,
|
|
.Ev IFS
|
|
¤Ê¤É¤Î¤¤¤¯¤Ä¤«¤Î
|
|
.Xr sh 1
|
|
¤ÎÊÑ¿ô¤òÊѹ¹¤¹¤ë¤Î¤Ï¡¢¼«Ê¬¤¬²¿¤ò¤·¤Æ¤¤¤ë¤Î¤«½½Ê¬¤ËÍý²ò¤·¤Æ¤¤¤Ê¤¤¾ì¹ç¤Ë¤Ï
|
|
¸ÌÀ¤Ç¤Ï¤¢¤ê¤Þ¤»¤ó¡£
|
|
.Sh ´ØÏ¢¹àÌÜ
|
|
.Xr cd 1 ,
|
|
.Xr csh 1 ,
|
|
.Xr env 1 ,
|
|
.Xr ex 1 ,
|
|
.Xr login 1 ,
|
|
.Xr sh 1 ,
|
|
.Xr execve 2 ,
|
|
.Xr execle 3 ,
|
|
.Xr getenv 3 ,
|
|
.Xr setenv 3 ,
|
|
.Xr setlocale 3 ,
|
|
.Xr system 3 ,
|
|
.Xr termcap 3 ,
|
|
.Xr termcap 5
|
|
.Sh Îò»Ë
|
|
.Nm
|
|
¥Þ¥Ë¥å¥¢¥ë¥Ú¡¼¥¸¤Ï
|
|
.Bx 4.2
|
|
¤«¤éÅо줷¤Þ¤·¤¿¡£
|
|
.\"ZZZ: 3.0-RELEASE compliant by N. Kumagai 99-1-21
|