CSH(1)                                                        UNIX¥³¥Þ¥ó¥É                                                        CSH(1)

¡ÎÌ¾Á°¡Ï
csh - C¸À¸ì¥¿¥¤¥×¤Î¹½Ê¸¤Î¥·¥§¥ë¡Ê¥³¥Þ¥ó¥É¡¦¥¤¥ó¥¿¥×¥ê¥¿¡Ë

¡Î·Á¼°¡Ï
csh [ -cefinstvVxX ] [ arg ... ]

¡ÎÆüËÜ¸ìµ¡Ç½¡Ï
Csh ¤Ï¡¢EUC ´ðËÜ¤ª¤è¤ÓÊä½õ¥³¡¼¥É¡¦¥»¥Ã¥È¤«¤é¤Ê¤ëÊ¸»úÎó¤ò¥Õ¥¡¥¤¥ëÌ¾¡¢¥³¥Þ¥ó¥ÉÌ¾¡¢¥·¥§¥ëÊÑ¿ô¤µ¤é¤Ë´Ä¶­ÊÑ¿ô¤ËÂÐ¤·¤Æ»ÈÍÑ¤Ç¤­¤Þ¤¹¡£ÊÌÌ¾¤ä¥×¥í¥ó¥×¥È¤Ë¤â EUC Êä½õ¥³¡¼¥É¡¦¥»¥Ã¥È¤ò»È¤¦¤³¤È¤¬¤Ç¤­¡¢¥·¥§¥ë¡¦¥¹¥¯¥ê¥×¥ÈÆâ¤ÎÃí¼á¤Ë¤â»È¤¨¤Þ¤¹¡£

¥á¥¿Ê¸»ú¤ª¤è¤Ó°ú¿ô¤ä¥¸¥ç¥Ö¤òÈÖ¹æ¤Ç»²¾È¤¹¤ë¾ì¹ç¤Î¿ô»ú¤Ï¡¢É¬¤º´ðËÜ¥³¡¼¥É¡¦¥»¥Ã¥È¤ÎÊ¸»ú¤Ç¤Ê¤±¤ì¤Ð¤¤¤±¤Þ¤»¤ó¡£Áöºº¤È¥Ñ¥¿¡¼¥ó¡¦¥Þ¥Ã¥Á¥ó¥°¤Ï¥Ð¥¤¥ÈÃ±°Ì¤Ç¤Ï¤Ê¤¯¡¢Ê¸»ú¤òÃ±°Ì¤È¤·¤Æ¹Ô¤ï¤ì¤Þ¤¹¡£

¡Îµ¡Ç½ÀâÌÀ¡Ï
Csh ¤Ï¥Ò¥¹¥È¥êµ¡Ç½¡Ê¡Ø¥Ò¥¹¥È¥êÃÖ´¹¡Ù¤Î¹à¤ò»²¾È¡Ë¡¢¥¸¥ç¥Ö¡¦¥³¥ó¥È¥í¡¼¥ëµ¡Ç½¡Ê¡Ø¥¸¥ç¥ÖÀ©¸æ¡Ù¤Î¹à¤ò»²¾È¡Ë¡¢¥¤¥ó¥¿¥é¥¯¥Æ¥£¥Ö¤Ë¥Õ¥¡¥¤¥ëÌ¾¤È¥æ¡¼¥¶Ì¾¤òÃÖ´¹¤¹¤ëµ¡Ç½¡Ê¡Ø¥Õ¥¡¥¤¥ëÌ¾¤Î´°Á´²½¡Ù¤Î¹à¤ò»²¾È¡Ë¡¢¥³¥Þ¥ó¥É¤ËÊÌÌ¾¤òÍ¿¤¨¤ëµ¡Ç½¡Ê¡ØÊÌÌ¾¤ÎÃÖ´¹¡Ù¤Î¹à¤ò»²¾È¡Ë¡¢C¸À¸ì¥¿¥¤¥×¤Î¹½Ê¸¤Ê¤É¤òÀ¹¤ê¹þ¤ó¤À¥³¥Þ¥ó¥É¡¦¥¤¥ó¥¿¥×¥ê¥¿¤Ç¤¹¡£¥¸¥ç¥Ö¡¦¥³¥ó¥È¥í¡¼¥ëµ¡Ç½¤ò»È¤¦¤Ë¤Ï¡¢csh ¤Î¥æ¡¼¥¶¤ÏÉ¬Á³Åª¤Ë¿·¤·¤¤ tty driver ¤ò»È¤¦»ö¤Ë¤Ê¤ê¤Þ¤¹¡£¤³¤ì¤Ë¤Ä¤¤¤Æ¤Ï tty(4) ¤Ë¾Ü½Ò¤·¤Þ¤¹¡£¤³¤Î¿·¤·¤¤ tty driver ¤Ç¤Ï¡¢¥­¡¼¥Ü¡¼¥É¤«¤é¥¤¥ó¥¿¥é¥×¥ÈÊ¸»ú¤ò¥¿¥¤¥×¤·¤Æ¥¸¥ç¥Ö¤òÄä»ß¤µ¤»¤ë¤³¤È¤â¤Ç¤­¤Þ¤¹¡£¿·¤·¤¤ tty driver ¤Ë¥ª¥×¥·¥ç¥ó¤ò¥»¥Ã¥È¤¹¤ëÊýË¡¤Î¾ÜºÙ¤Ë¤Ä¤¤¤Æ¤Ï stty(1) ¤ò»²¾È¤·¤Æ¤¯¤À¤µ¤¤¡£
csh ¤Î¥¤¥ó¥¹¥¿¥ó¥¹¤Ï¥æ¡¼¥¶¤Î¥Û¡¼¥à¡¦¥Ç¥£¥ì¥¯¥È¥ê¤Î¥Õ¥¡¥¤¥ë `.cshrc' ¤«¤é¥³¥Þ¥ó¥É¤ò¼Â¹Ô¤µ¤»¤Æ³«»Ï¤µ¤»¤Þ¤¹¡£¤³¤ì¤¬¥í¥°¥¤¥ó¡¦¥·¥§¥ë¤Ê¤é¤ÐÆ±»þ¤Ë¡¢`.login' ¥Õ¥¡¥¤¥ë¤«¤é¥³¥Þ¥ó¥É¤ò¼Â¹Ô¤·¤Þ¤¹¡£crt ¤Î¥æ¡¼¥¶¤Ï¡¢.login ¥Õ¥¡¥¤¥ë¤Ë¥³¥Þ¥ó¥É ``stty crt'' ¤òÃÖ¤¤¤Æ tset(1) ¤òµ¯Æ°¤µ¤»¤ë¤³¤È¤Ï¤è¤¯¹Ô¤ï¤ì¤Þ¤¹¡£

ÄÌ¾ï¤Ï¥·¥§¥ë¤Ï¼¡¤ËÃ¼Ëö¤«¤é¤Î¥³¥Þ¥ó¥É¤ò `% ' ¤Î¥×¥í¥ó¥×¥È¤ò½Ð¤·¤ÆÆÉ¤ß¼è¤ê»Ï¤á¤Þ¤¹¡£°ú¿ô¤Î½èÍýµÚ¤Ó¥³¥Þ¥ó¥É¡¦¥¹¥¯¥ê¥×¥È¤ò´Þ¤ó¤Ç¤¤¤ë¥Õ¥¡¥¤¥ë¤ò½èÍý¤¹¤ë¤¿¤á¤Î¥·¥§¥ë¤Î»ÈÍÑË¡¤Ë¤Ä¤¤¤Æ¤Ï¡¢¸å½Ò¤·¤Þ¤¹¡£    

¤½¤ì°Ê¹ß¡¢¥·¥§¥ë¤Ï¼¡¤ÎÆ°ºî¤ò·«¤êÊÖ¤·¼Â¹Ô¤¹¤ë»ö¤Ë¤Ê¤ê¤Þ¤¹¡£¥³¥Þ¥ó¥É°ì¹ÔÊ¬¤¬ÆÉ¤ß¼è¤é¤ì¡¢¥ï¡¼¥É¤ÎÃ±°Ì¤ËÊ¬²ò¤µ¤ì¤Þ¤¹¡£¤³¤ì¤é¤Î¥ï¡¼¥É¤Ï¡¢¥³¥Þ¥ó¥É¡¦¥Ò¥¹¥È¥ê¤Î¥ê¥¹¥ÈÃæ¤ËÊÂ¤Ù¤ÆÃÖ¤«¤ì¤¿¸å¡¢²òÀÏ¤µ¤ì¤Þ¤¹¡£ºÇ¸å¤Ë¡¢¸½ºß¹Ô¤Î¤½¤ì¤¾¤ì¤Î¥³¥Þ¥ó¥É¤¬¼Â¹Ô¤µ¤ì¤Þ¤¹¡£

¥í¥°¥¤¥ó¡¦¥·¥§¥ë¤¬½ªÎ»¤¹¤ë»þ¡¢¥Û¡¼¥à¡¦¥Ç¥£¥ì¥¯¥È¥ê¤Ë¤¢¤ë `.logout' ¥Õ¥¡¥¤¥ë¤ÎÃæ¤Î¥³¥Þ¥ó¥É¤ò¼Â¹Ô¤·¤Þ¤¹¡£

    ¡Î»ú¶ç¹½Â¤¡Ï

¥·¥§¥ë¤Ï°Ê²¼¤ÎÎã³°¤ò½ü¤¤¤Æ¡¢ÆþÎÏ¹Ô¤ò¥Ö¥é¥ó¥¯¤È¥¿¥ÖËè¤Ë¶èÀÚ¤Ã¤Æ¡¢¥ï¡¼¥É¤ËÊ¬²ò¤·¤Þ¤¹¡£°Ê²¼¤ÎÊ¸»ú `&' `|' `;' `<' `>' `(' `)' ¤Ï¡¢¥ï¡¼¥É¤Î¶èÀÚ¤ê¤Ë¤Ê¤ê¤Þ¤¹¡£Æó½Å¤Ë¤Ê¤Ã¤¿¾ì¹ç¡¢¤Ä¤Þ¤ê `&&', `||', `<<', `>>' ¤Ï¡¢¤³¤ì¤é¼«¿È¤¬¡¢ÆÈÎ©¤·¤¿¥ï¡¼¥É¤Ë¤Ê¤ê¤Þ¤¹¡£¤³¤ì¤é²òÀÏÍÑ¤Î¥á¥¿¡¦¥­¥ã¥é¥¯¥¿¤ÏÂ¾¤Î¥ï¡¼¥É¤Î°ìÉôÊ¬¤Ë¤Ê¤ë¤³¤È¤â¤¢¤ì¤Ð¡¢Ä¾Á°¤Ë `\' ¤òÈ¼¤¦¾ì¹ç¤Ï¤½¤ÎÆÃÊÌ¤Î°ÕÌ£¤òÂÇ¤Á¾Ã¤µ¤ì¤ë¤³¤È¤Ë¤Ê¤ê¤Þ¤¹¡£`\' ¤Ç»Ï¤Þ¤ë¿·¤·¤¤¹Ô¤Ï1¸Ä¤Î¶õÇò¤È¸«¤Ê¤µ¤ì¤Þ¤¹¡£

°ìÂÐ¤Î°úÍÑÉä¤Ç°Ï¤Þ¤ì¤¿Ê¸»úÎó¡¼¤¹¤Ê¤ï¤Á¡¢`'', ``', `"' ¤Ï¥ï¡¼¥É¤Î°ìÉô¤È¤Ê¤ê¤Þ¤¹¡£Ê¸»úÎó¤ÎÃæ¤Î¥á¥¿¡¦¥­¥ã¥é¥¯¥¿¡Ê¶õÇò¤È¥¿¥Ö¤ò´Þ¤ß¤Þ¤¹¡Ë¤Ï¥ï¡¼¥É¤Ë¤Ï¶èÀÚ¤ê¤Þ¤»¤ó¡£¤³¤ì¤é¤Î°úÍÑÉä¤Ï¸å¤Ç½Ò¤Ù¤ëÆÃÊÌ¤Ê°ÕÌ£¤ò»ý¤Ä¤³¤È¤Ë¤Ê¤ê¤Þ¤¹¡£`'' ¤¢¤ë¤¤¤Ï `"' ¤Ç°Ï¤Þ¤ì¤¿¾ì¹ç¤Ë¤Ï¡¢`\' ¤ËÂ³¤¯¥Ë¥å¡¼¥é¥¤¥ó¡Ê²þ¹Ô¡Ë¤Ï¡¢ËÜÅö¤Î¥Ë¥å¡¼¥é¥¤¥ó¤È¤Ê¤ê¤Þ¤¹¡£

¥·¥§¥ë¤Ø¤ÎÆþÎÏ¤¬Ã¼Ëö¤«¤é¤Ç¤Ê¤¤¾ì¹ç¡¢`#' ¤Ï¤½¤Î¹Ô¤Î½ª¤ï¤ê¤Þ¤Ç¥³¥á¥ó¥È¤Ç¤¢¤ë¤³¤È¤ò¼¨¤·¤Þ¤¹¡£¤½¤Î¾ì¹ç¤Ç¤â¡¢`\' ¤¬Æ¬¤ËÉÕ¤¤¤Æ¤¤¤ë¾ì¹ç¡¢¤¢¤ë¤¤¤Ï¡¢``',`'' ¤â¤·¤¯¤Ï `"' ¤Î°úÍÑÉä¤Ë°Ï¤Þ¤ì¤¿¾ì¹ç¤Ë¤Ï¡¢¤½¤ÎÆÃ¼ì¤Ê°ÕÌ£¤Ï¾Ã¤¨¤Þ¤¹¡£

    ¡Î¥³¥Þ¥ó¥É¡Ï

Ã±½ã¥³¥Þ¥ó¥É¤Ï¡¢°ìÏ¢¤Î¥ï¡¼¥É¤«¤éÀ®¤ê¡¢ºÇ½é¤Î¥ï¡¼¥É¤¬¡¢¼Â¹Ô¤µ¤ì¤ë¥³¥Þ¥ó¥É¤ò¼¨¤·¤Þ¤¹¡£Ã±½ã¥³¥Þ¥ó¥É¤¢¤ë¤¤¤Ï¡¢°ìÏ¢¤ÎÃ±½ã¥³¥Þ¥ó¥É¤¬¡¢`|' ¤Ç¶èÀÚ¤é¤ì¤Æ¤¤¤ë¾ì¹ç¤Ï¥Ñ¥¤¥×¥é¥¤¥ó¤ò·ÁÀ®¤·¤Þ¤¹¡£¥Ñ¥¤¥×¥é¥¤¥óÃæ¤Î¥³¥Þ¥ó¥É¤Î½ÐÎÏ¤Ï¡¢¤½¤ì¤¾¤ì¼¡¤Î¥³¥Þ¥ó¥É¤ÎÆþÎÏ¤Ë¤Ê¤ê¤Þ¤¹¡£°ìÏ¢¤Î¥Ñ¥¤¥×¥é¥¤¥ó¤Ï¡¢`;' ¤Ç¶èÀÚ¤ë¤³¤È¤â¤Ç¤­¡¢¤³¤Î¾ì¹ç½çÈÖ¤Ë¼Â¹Ô¤µ¤ì¤Þ¤¹¡£¤Þ¤¿¡¢`&' ¤òÉÕ¤±¤ë¤³¤È¤Ë¤è¤ê¡¢Ä¾Á°¤Î¥³¥Þ¥ó¥É¤Î½ªÎ»¤òÂÔ¤¿¤º¤Ë¼Â¹Ô¤¹¤ë¤³¤È¤â¤Ç¤­¤Þ¤¹¡£¤Þ¤¿¡¢¥Ñ¥¤¥×¥é¥¤¥ó¤òC¸À¸ì¤ÈÆ±¤¸ÍÍ¤Ë `||' ¤¢¤ë¤¤¤Ï `&&' ¤Ç¶èÀÚ¤ë¤³¤È¤â²ÄÇ½¤Ç¤¹¡£¤³¤Î¾ì¹ç¡¢ºÇ½é¤ÎÉôÊ¬¤¬¼ºÇÔ¡Ê¸å¼Ô¤Î¾ì¹çÀ®¸ù¡Ë¤·¤¿»þ¤Ë¸Â¤ê¡¢¼¡¤ÎÉôÊ¬¤¬¼Â¹Ô¤µ¤ì¤Þ¤¹¡£¡Ê¡Ø¼°¤È±é»»»Ò¡Ù¤Î¹à¤ò»²¾È¤·¤Æ²¼¤µ¤¤¡£¡Ë

    ¡Î¥¸¥ç¥ÖÀ©¸æ¡Ï

¥·¥§¥ë¤Ï¥Ñ¥¤¥×¥é¥¤¥ó¤ò»È¤Ã¤Æ¥¸¥ç¥Ö¤ò·ë¹ç¤µ¤»¤Þ¤¹¡£¥·¥§¥ë¤Ï¡¢¸½ºß¤Î¥¸¥ç¥Ö³Æ¡¹¤ËÀ°¿ôÃÍ¤ò³ä¤êÅö¤Æ¤¿¥Æ¡¼¥Ö¥ë¤òÊÝ¤Á¤Þ¤¹¡£¤³¤ì¤Ï jobs ¥³¥Þ¥ó¥É¤Ë¤è¤Ã¤ÆÉ½¼¨¤µ¤ì¤Þ¤¹¡£¤Ò¤È¤Ä¤Î¥¸¥ç¥Ö¤¬ `&' ¤òÉÕ¤±¤é¤ì¤ÆÈóÆ±´üÅª ¡Ê¤½¤Î¥¸¥ç¥Ö¤Î½ªÎ»¤òÂÔ¤¿¤º¤ËÊÌ¤Î¥¸¥ç¥Ö¤ò¼Â¹Ô¤¹¤ë¤³¤È¡Ë¤Ë³«»Ï¤µ¤ì¤¿¾ì¹ç¡¢¥·¥§¥ë¤Ï¼¡¤ÎÍÍ¤Ê¹Ô¤òÉ½¼¨¤·¤Þ¤¹¡£

             [1] 1234 

¤³¤ì¤Ï¡¢ÈóÆ±´üÅª¤Ë³«»Ï¤µ¤ì¤¿¤½¤Î¥¸¥ç¥Ö¤¬¡¢¥¸¥ç¥ÖÈÖ¹æ1¤Ç¤¢¤ê¡¢¥×¥í¥»¥¹ÈÖ¹æ¤¬ 1234 ¤Î¥È¥Ã¥×¥ì¥Ù¥ë¤Î¥×¥í¥»¥¹¤ò»ý¤Ã¤Æ¤¤¤ë¤³¤È¤ò¼¨¤·¤Þ¤¹¡£

¥¸¥ç¥Ö¼Â¹ÔÃæ¤Ë¡¢²¿¤«Â¾¤Î»ö¤ò¤·¤¿¤¯¤Ê¤Ã¤¿¾ì¹ç¤Ë¤Ï¡¢^Z (control-Z) ¤ò¥­¡¼¥¤¥ó¤¹¤ë¤³¤È¤Ë¤è¤ê¡¢¸½ºß¤Î¥¸¥ç¥Ö¤ËÄä»ß¥·¥°¥Ê¥ë¤òÁ÷¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£¤³¤Î»þ¡¢¥·¥§¥ë¤ÏÄÌ¾ï¤½¤Î¥¸¥ç¥Ö¤¬Ää»ß¤µ¤ì¤¿¤³¤È¤òÃÎ¤é¤»¤Þ¤¹¡£¤½¤Î¸å¡¢¤³¤Î¥¸¥ç¥Ö¤Î¾õÂÖ¤òÁàºî¤¹¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£bg ¥³¥Þ¥ó¥É¤Ë¤è¤ê¥Ð¥Ã¥¯¡¦¥°¥é¥¦¥ó¥É¤Ø°Ü¤·¡¢Â¾¤Î¥³¥Þ¥ó¥É¤ò¼Â¹Ô¤µ¤»¤¿¸å¡¢ºÇ¸å¤Ë fg ¥³¥Þ¥ó¥É¤Ë¤è¤ê¥Õ¥©¥¢¡¦¥°¥é¥¦¥ó¥É¤ØÌá¤·¤Æ¤ä¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£ ^Z ¤Ï¡¢Â¨ºÂ¤Ë¼Â¹Ô¤µ¤ì¡¢¥Ú¥ó¥Ç¥£¥ó¥°Ãæ¤Î½ÐÎÏ¤äÆÉ¤ß¼è¤êÅÓÃæ¤ÎÆþÎÏ¤¬´þ¤Æ¤é¤ì¤ë¤È¤¤¤¦ÅÀ¤Ç¤Ï¡¢³ä¤ê¹þ¤ß¤Ë»÷¤Æ¤¤¤Þ¤¹¡£ÊÌ¤ÎÆÃ¼ì¤Ê¥­¡¼¤È¤·¤Æ¡¢^Z ¤Ï¥×¥í¥°¥é¥à¤¬ read(2) ¤ò¤·¤è¤¦¤È¤¹¤ëËø¤ÏÄä»ß¥·¥°¥Ê¥ë¤òÈ¯À¸¤µ¤»¤Þ¤»¤ó¡£¤³¤ì¤Ï¡¢¤¢¤ë¥³¥Þ¥ó¥É¤ò¥¸¥ç¥Ö¤¬ÆÉ¤ß¼è¤Ã¤¿¸å¡¢Ää»ß¤µ¤»¤¿¤¤¾ì¹ç¤ËÁ°¤â¤Ã¤Æ¥¿¥¤¥×¤·¤Æ¤ª¤±¤ÐÊØÍø¤Ç¤¹¡£

¥Ð¥Ã¥¯¡¦¥°¥é¥¦¥ó¥É¤ÇÁö¤Ã¤Æ¤¤¤ë¥¸¥ç¥Ö¤¬¡¢Ã¼Ëö¤«¤é¤ÎÆþÎÏ¤òÆÉ¤ß¼è¤í¤¦¤È¤·¤¿¾ì¹ç¤½¤Î¥¸¥ç¥Ö¤ÏÄä»ß¤·¤Þ¤¹¡£¥Ð¥Ã¥¯¡¦¥°¥é¥¦¥ó¥É¤Î¥¸¥ç¥Ö¤ÏÄÌ¾ï½ÐÎÏ¤òÀ¸À®¤¹¤ë¤³¤È¤Ïµö¤µ¤ì¤Þ¤¹¤¬¡¢¥³¥Þ¥ó¥É ``stty tostop'' ¤Ë¤è¤ê¤³¤Î¤³¤È¤ÏÌµ¸ú¤Ë¤Ê¤ê¤Þ¤¹¡£¤³¤Î tty ¥ª¥×¥·¥ç¥ó¤òÀßÄê¤¹¤ë¤È¡¢¥Ð¥Ã¥¯¡¦¥°¥é¥¦¥ó¥É¤Î¥¸¥ç¥Ö¤Ï¡¢ÆþÎÏ¤òÆÉ¤ß¼è¤í¤¦¤·¤¿¾ì¹ç¤ÈÆ±ÍÍ¤Ë¡¢½ÐÎÏ¤òÀ¸À®¤·¤è¤¦¤È¤·¤¿¾ì¹ç¤Ë¤âÄä»ß¤·¤Þ¤¹¡£

¥·¥§¥ëÃæ¤Î¥¸¥ç¥Ö¤ò»²¾È¤¹¤ë¤Ë¤Ï¡¢¤¤¤¯¤Ä¤«¤ÎÊýË¡¤¬¤¢¤ê¤Þ¤¹¡£`%' ¤Ï¥¸¥ç¥ÖÌ¾¤òÉ½¼¨¤µ¤»¤Þ¤¹¡£¥¸¥ç¥ÖÈÖ¹æ1¤ò»²¾È¤·¤¿¤¤¤È¤­¤Ï¡®%1¡­¤È¤·¤Þ¤¹¡£¤³¤Î¾ì¹ç¡¢¤½¤Î¥¸¥ç¥Ö¤Ï¥Õ¥©¥¢¡¦¥°¥é¥¦¥ó¥É¤Ë»ý¤Ã¤Æ¤³¤é¤ì¤ë¤³¤È¤Ë¤Ê¤ê¤Þ¤¹¡£½¾¤Ã¤Æ¡¢`fg %1' ¤ÈÆ±¤¸¸úÎÏ¤ò»ý¤Á¡¢¥¸¥ç¥Ö1¤ò¥Õ¥©¥¢¡¦¥°¥é¥¦¥ó¥É¤ËÌá¤¹¤³¤È¤Ë¤Ê¤ê¤Þ¤¹¡£Æ±»þ¤Ë `%1 &' ¤Ï¡¢¥¸¥ç¥Ö¤ò¥Ð¥Ã¥¯¡¦¥°¥é¥¦¥ó¥É¤ÇºÆ³«¤µ¤»¤ë¤³¤È¤Ë¤Ê¤ê¤Þ¤¹¡£¤Þ¤¿³«»Ï¤µ¤»¤¿»þ¤ËÂÇ¤Ã¤¿Ê¸»úÎó¤ÎÀèÆ¬ÉôÊ¬¤ÎÊ¸»ú¡Ê¥×¥ì¥Õ¥£¥Ã¥¯¥¹¡Ë¤ò»È¤Ã¤Æ¡¢¥¸¥ç¥Ö¤ò»ØÄê¤¹¤ë¤³¤È¤â¤Ç¤­¤Þ¤¹¡£ÀèÆ¬ÉôÊ¬¤ÎÊ¸»ú¤¬ÉÔ³Î¤«¤Ê¾ì¹ç¤Ç¤â¡¢¤¿¤È¤¨¤Ð `%ex' ¤Ï¤â¤·¥¸¥ç¥ÖÌ¾¤¬ `ex' ¤Ç»Ï¤Þ¤ëÃæ»ß¾õÂÖ¤Î¤¿¤À¤Ò¤È¤Ä¤¢¤Ã¤¿¤È¤¹¤ì¤Ð¡¢¤½¤Î ex(1) ¤Î¥¸¥ç¥Ö¤òºÆ³«¤µ¤»¤Þ¤¹¡£`%?string' ¤Ï string ¤ò´Þ¤à¥¸¥ç¥Ö¤¬¤¿¤À¤Ò¤È¤ÄÂ¸ºß¤¹¤ë¤Ê¤é¤Ð¡¢¤½¤Î¥¸¥ç¥Ö¤òÆÃÄê¤·¤Þ¤¹¡£

¥·¥§¥ë¤Ï¥¸¥ç¥Ö¤Ë¤Ä¤¤¤Æ¡Ö¸½ºß¤Î¡×¥«¥ì¥ó¥È¡¦¥¸¥ç¥Ö¤È¡Ö°ÊÁ°¤Î¡×¥×¥ê¥Ó¥¢¥¹¡¦¥¸¥ç¥Ö¤ò¶èÊÌ¤¹¤ë³µÇ°¤ò»ý¤Ã¤Æ¤¤¤Þ¤¹¡£¥¸¥ç¥Ö¤Ë´Ø¤¹¤ë½ÐÎÏ¤Ç¤Ï¥«¥ì¥ó¥È¡¦¥¸¥ç¥Ö¤Ï `+' ¤¬¥×¥ê¥Ó¥¢¥¹¡¦¥¸¥ç¥Ö¤Ë¤Ï `-' ¤Ç¤½¤ì¤¾¤ì¥Þ¡¼¥¯¤µ¤ì¤Þ¤¹¡£¤·¤¿¤¬¤Ã¤Æ `%+' ¤Ï¥«¥ì¥ó¥È¡¦¥¸¥ç¥Ö¤ò `%-' ¤Ï¥×¥ê¥Ó¥¢¥¹¡¦¥¸¥ç¥Ö¤ò¤½¤ì¤¾¤ì»²¾È¤·¤Þ¤¹¡£¸å½Ò¤¹¤ë¥Ò¥¹¥È¥êµ¡¹½¤Î¹½Ê¸¤È¤ÎÀµ³Î¤Ê°ì´ÓÀ­¤òÊÝ¤Ä¤¿¤á `%%' ¤Ï¥«¥ì¥ó¥È¡¦¥¸¥ç¥Ö¤ÎÆ±µÁ¸ì¤Ë¤Ê¤ê¤Þ¤¹¡£

    ¡Î¾õÂÖ¤ÎÊó¹ð¡Ï

¥·¥§¥ë¤Ï¥×¥í¥»¥¹¤Î¾õÂÖ¤ËÊÑ²½¤¬µ¯¤³¤ë¤È¡¢¤½¤ÎÊÑ²½¤òÂ¨ºÂ¤ËÇÄ°®¤·¤Þ¤¹¡£ÄÌ¾ï ¡¢¥·¥§¥ë¤Ï¤¢¤ë¥¸¥ç¥Ö¤Ë¾ã³²¤¬È¯À¸¤·¡¢¤½¤ì°Ê¾å¤Î½èÍý¤¬ÉÔ²ÄÇ½¤Ë¤Ê¤Ã¤¿¾ì¹ç¤Ï¡¢¤½¤Î¤³¤È¤òÃÎ¤é¤»¤Þ¤¹¤¬¡¢¤³¤ì¤Ï¥×¥í¥ó¥×¥È¤òÉ½¼¨¤¹¤ë°ÊÁ°¤Ë¸Â¤é¤ì¤Þ¤¹¡£¤³¤ì¤Ï¥æ¡¼¥¶¤Îºî¶È¤ÎÂ³¹Ô¤òË¸¤²¤Ê¤¤¤è¤¦¤Ë¤¹¤ë¤¿¤á¤Ç¤¹¡£¤·¤«¤·¡¢¥·¥§¥ëÊÑ¿ônotify ¤òÀßÄê¤·¤¿¾ì¹ç¤Ï¡¢¥Ð¥Ã¥¯¥°¥é¥¦¥ó¥É¤Î¥¸¥ç¥Ö¤Î¾õÂÖ¤ÎÊÑ²½¤òÂ¨ºÂ¤ËÃÎ¤é¤»¤Þ¤¹¡£¥·¥§¥ë¥³¥Þ¥ó¥É¤Î notify ¤Ï¤¢¤ë¤Ò¤È¤Ä¤Î¥×¥í¥»¥¹¤ò»ØÄê¤·¡¢¤½¤Î¾õÂÖ¤ÎÊÑ²½¤ÎÊó¹ð¤òÆÀ¤ë¤¿¤á¤Ë»È¤ï¤ì¤Þ¤¹¡£¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¡¢notify ¤Ï¸½ºß¤Î¥×¥í¥»¥¹¤ò´Æ»ë¤·¤Þ¤¹¡£¥Ð¥Ã¥¯¡¦¥°¥é¥¦¥ó¥É¤Ç³«»Ï¤µ¤»¤¿¥¸¥ç¥Ö¤Î¾õÂÖ¤ÎÄÌÃÎ¤ò¤µ¤»¤ë¤Ë¤Ï¡¢Ã±¤Ë `notify' ¤È¥¿¥¤¥×¤·¤Æ²¼¤µ¤¤¡£

¥¸¥ç¥Ö¤¬Ää»ß¤·¤Æ¤¤¤ë¤È¤­¤Ë¡¢¥·¥§¥ë¤òÈ´¤±¤è¤¦¤È¤·¤¿¾ì¹ç¤Ï¡¢`You have stopped jobs' ¤Î·Ù¹ð¤¬½Ð¤µ¤ì¤Þ¤¹¡£jobs ¥³¥Þ¥ó¥É¤Ë¤è¤ê¤½¤ì¤é¤Î¥¸¥ç¥Ö¤ò³ÎÇ§¤Ç¤­¤Þ¤¹¡£¤¬¡¢¤³¤Î¾ì¹ç¤ª¤è¤ÓÂ³¤±¤Æ¡¢¥·¥§¥ë¤«¤é¤Ç¤è¤¦¤È¤·¤¿¤È¤­¤Ï¡¢2ÅÙÌÜ¤Î·Ù¹ð¤Ï½Ð¤µ¤ì¤Þ¤»¤ó¡£¤³¤Î¾ì¹ç¡¢Ãæ»ß¤µ¤ì¤¿¥¸¥ç¥Ö¤Ï½ªÎ»¤µ¤ì¤Þ¤¹¡£
    
    ¡Î¥Õ¥¡¥¤¥ëÌ¾¤Î´°Á´²½¡Ï

¥·¥§¥ëÊÑ¿ô filec¡Êset ¤ò»²¾È¡Ë¤¬¥»¥Ã¥È¤µ¤ì¡¢¥Õ¥¡¥¤¥ëÌ¾¤Î´°Á´²½µ¡Ç½¤¬¡¢ÀßÄê¤µ¤ì¤Æ¤¤¤ë¾ì¹ç¡¢C¥·¥§¥ë¤Ï¥Õ¥¡¥¤¥ëÌ¾¤È¥æ¡¼¥¶Ì¾¤ò¥æ¥Ë¡¼¥¯¤ÊÀÜÆ¬»Ò¡Ê¥×¥ì¥Õ¥£¥Ã¥¯¥¹¡Ë¤ËÂ³¤±¤Æ¥¨¥¹¥±¡¼¥×Ê¸»ú¡Ê¥¨¥¹¥±¡¼¥×¥­¡¼¤¢¤ë¤¤¤Ï¡¢Control-[¡Ë¤òÆþÎÏ¤·¤Æ¤ä¤ë¤³¤È¤Ë¤è¤ê¤³¤ì¤ò¤â¤È¤Ë¥Õ¥¡¥¤¥ëÌ¾¤òÂÐÏÃÅª¤Ë´°Á´¤Ê¤â¤Î¤Ë¤·¤Þ¤¹¡£Îã¤¨¤Ð¡¢¸½ºß¤Î¥Ç¥£¥ì¥¯¥È¥ê¤¬¼¡¤ÎÍÍ¤Ç¤¢¤Ã¤¿¤È¤·¤Þ¤¹¡£
		DSC.OLD	bin		cmd		lib		xmpl.c
		DSC.NEW	chaosnet	cmtest	mail		xmpl.o
		bench		class		dev		mbox		xmpl.out        
¼¡¤Î¤è¤¦¤ËÆþÎÏ¤¹¤ë¤È¡¢
                  % vi ch<escape>
csh ¤ÏÀÜÆ¬»Ò ``ch'' ¤ÈÍ£°ì¥Þ¥Ã¥Á¤¹¤ë ``chaosnet'' ¤È¤¤¤¦¥Õ¥¡¥¤¥ëÌ¾¤ËÅ¸³«¤·¡¢ÆþÎÏ¥é¥¤¥ó¤ò
                  % vi chaosnet 
¤ËÊÑ´¹¤µ¤»¤Þ¤¹¡£¤·¤«¤·¡¢
                  % vi D<escape>
¤ÈÆþÎÏ¤µ¤ì¤¿¾ì¹ç¤Ï¡¢csh ¤ÏÆþÎÏ¤òÃ±¤Ë
                  % vi DSC
¤ÈÅ¸³«¤¹¤ë¤Ë¤È¤É¤Þ¤ê¤Þ¤¹¡£¤³¤Î¾ì¹ç¤ÏÀÜÆ¬»Ò ``D'' ¤Ë¥Þ¥Ã¥Á¤¹¤ë¥Õ¥¡¥¤¥ëÌ¾¤ÏÆó¤Ä¤¢¤ë¤Î¤Ç¡¢´°Á´²½¤Ï¼ºÇÔ¤Ë½ª¤ï¤Ã¤¿¤³¤È¤òÃ¼Ëö¤Î¥Ù¥ë²»¤È¤È¤â¤ËÃÎ¤é¤»¤Þ¤¹¡£

¥¨¥é¡¼¤ÎÈ¯À¸¤ª¤è¤ÓÀÜÆ¬»Ò¤Ë¥Þ¥Ã¥Á¤¹¤ë¥Õ¥¡¥¤¥ëÌ¾¤¬Ê£¿ôÂ¸ºß¤¹¤ë¤³¤È¤òÃÎ¤é¤»¤ë¥Ù¥ë¤òÌÄ¤é¤Ê¤¤ÍÍ¤Ë¤¹¤ë¤Ë¤Ï¡¢ÊÑ¿ô¤ò nobeep ¤Ë¥»¥Ã¥È¤·¤Æ¤ª¤­¤Þ¤¹¡£

    ¡ÎÃÖ´¹¡Ï

¼¡¤Ë¡¢¥·¥§¥ë¤¬ÆþÎÏ¤Ë¤¿¤¤¤·¤Æ½èÍý¤·¤Æ¤¤¤¯ÍÍ¡¹¤ÊÊÑ´¹ÊýË¡¤ò¤½¤Î½èÍý¤Î½ç½ø¤Ë±è¤Ã¤Æ½Ò¤Ù¤Þ¤¹¡£

    ¡Î¥Ò¥¹¥È¥êÃÖ´¹¡Ï

¥Ò¥¹¥È¥êÃÖ´¹¤Ë¤è¤Ã¤Æ°ÊÁ°¤Î¥³¥Þ¥ó¥ÉÆþÎÏÃæ¤Î¥ï¡¼¥É¤ò¿·¤·¤¤¥³¥Þ¥ó¥É¤Î°ìÉô¤È¤·¤Æ»È¤¨¤ë¤è¤¦¤Ë¤·¤Þ¤¹¡£¤³¤ì¤Ë¤è¤ê¡¢°ÊÁ°»È¤Ã¤¿¥³¥Þ¥ó¥É¤ä°ú¿ô¤ò¸½ºß¤Î¥³¥Þ¥ó¥É¤ÇºÆ»ÈÍÑ¤¹¤ë¤³¤È¤ä¡¢Ä¾Á°¤ËÆþÎÏ¤·¤¿¥³¥Þ¥ó¥É¤Î¥¹¥Ú¥ë¥ß¥¹¤òÄûÀµ¤·¤Æ¡¢³Î¼Â¤Ë¼Â¹Ô¤¹¤ë¤³¤È¤¬½ÐÍè¤ëÍÍ¤Ë¤Ê¤ê¤Þ¤¹¡£¥Ò¥¹¥È¥êÃÖ´¹¤Ï `!' ¤Ç»Ï¤á¤Þ¤¹¡£¤Þ¤¿ÆþÎÏ¥¹¥È¥ê¡¼¥à¤Î¤É¤³¤«¤é¤Ç¤â»Ï¤á¤é¤ì¤Þ¤¹¡£¡ÊÃ¢¤·¡¢Æþ¤ì»Ò¹½Â¤¤Ë¤Ï¤Ç¤­¤Þ¤»¤ó¡Ë¤³¤Î `!' ¤â `\' ¤Ë¤è¤ê¤½¤ÎÆÃ¼ì¤Ê°ÕÌ£¤òÂÇ¤Á¾Ã¤¹¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£¤Þ¤¿¡¢ÊØÍø¤µ¤Î¤¿¤á¤Ë¡¢¶õÇò¤ä¡¢¥¿¥Ö¡¢¥Ë¥å¡¼¥é¥¤¥ó¡¢`=' ¤ä `(' ¤Ê¤É¤â¡¢`!'¤ËÂ³¤±¤é¤ì¤¿¾ì¹ç¤Ï¡¢¤½¤ÎÆÃ¼ì¤Ê°ÕÌ£¤¬ÂÇ¤Á¾Ã¤µ¤ì¤ë¤³¤È¤Ë¤Ê¤ê¤Þ¤¹¡£¡Ê¥Ò¥¹¥È¥êÃÖ´¹¤ÏÆþÎÏ¹Ô¤¬¡¢`^' ¤Ç»Ï¤Þ¤ë¾ì¹ç¤Ë¤âµ¯¤³¤ê¤Þ¤¹¡£¤³¤ì¤Ë¤Ä¤¤¤Æ¤Ï¸å½Ò¤·¤Þ¤¹) ¥Ò¥¹¥È¥êÃÖ´¹¤ò´Þ¤àÆþÎÏ¹Ô¤Ï¼Â¹Ô¤µ¤ì¤ëÁ°¤Ë¡¢¥Ò¥¹¥È¥êÃÖ´¹¤ò»È¤ï¤º¥¿¥¤¥×¤µ¤ì¤¿ÍÍ¤ËÃ¼Ëö¤Ë¥¨¥³¡¼¤µ¤ì¤Þ¤¹¡£

1¤Ä¤¢¤ë¤¤¤ÏÊ£¿ô¤Î¥ï¡¼¥É¤«¤éÀ®¤ëÃ¼Ëö¤«¤é¤Î¥³¥Þ¥ó¥ÉÆþÎÏ¤Ï¥Ò¥¹¥È¥ê¡¦¥ê¥¹¥È¤ËÊÝÂ¸¤µ¤ì¤Þ¤¹¡£¤³¤ì¤é¤ÎÊÝÂ¸¤µ¤ì¤¿¥³¥Þ¥ó¥É¤«¤é¥Ò¥¹¥È¥êÃÖ´¹¤Ï¡¢°ìÏ¢¤Î¥ï¡¼¥É¤ò¤È¤ê½Ð¤·¡¢ÆþÎÏ¥¹¥È¥ê¡¼¥à¤Ë½ñ¤­½Ð¤·¤Þ¤¹¡£¥Ò¥¹¥È¥ê¥ê¥¹¥È¤ÎÂç¤­¤µ¤Ï¥Ò¥¹¥È¥êÊÑ¿ô¤ÇÊÑ¹¹¤Ç¤­¤Þ¤¹¤¬¡¢¤½¤ÎÂç¤­¤µ¤Ë´Ø·¸¤Ê¤¯Ä¾Á°¤Î¥³¥Þ¥ó¥É¤Ï¤¤¤Ä¤âÊÝ»ý¤µ¤ì¤ë¤³¤È¤Ë¤Ê¤ê¤Þ¤¹¡£¥³¥Þ¥ó¥É¤Ï1¤«¤é½çÈÖ¤Ë¥Ê¥ó¥Ð¥ê¥ó¥°¤µ¤ì¤ÆÊÝÂ¸¤µ¤ì¤Þ¤¹¡£

Íý²ò¤ò³Î¼Â¤Ë¤¹¤ë¤¿¤á¡¢¥Ò¥¹¥È¥ê¡¦¥³¥Þ¥ó¥É¤Ë¤è¤ë¼¡¤Î½ÐÎÏ¤ò¸«¤Æ¤ß¤Þ¤¹¡£

              9   write michael
             10  ex write.c 
             11  cat oldwrite.c 
             12  diff *write.c

¤³¤ì¤é¤Î¥³¥Þ¥ó¥É¤Ï¡¢¥¤¥Ù¥ó¥ÈÈÖ¹æ¤È¶¦¤ËÉ½¼¨¤µ¤ì¤Æ¤¤¤Þ¤¹¡£¥¤¥Ù¥ó¥ÈÈÖ¹æ¤Î»ÈÍÑ¤Ï¡¢¤¤¤Ä¤âÉ¬Í×¤È¤¤¤¦¤ï¤±¤Ç¤Ï¤¢¤ê¤Þ¤»¤ó¤¬¡¢¥×¥í¥ó¥×¥ÈÊ¸»úÎó¤Ë¡¢`!' ¤òÃÖ¤¯¤³¤È¤Ë¤è¤ê¡¢¸½ºß¤Î¥¤¥Ù¥ó¥ÈÈÖ¹æ¤ò¥×¥í¥ó¥×¥È¤Î°ìÉô¤Ë¼è¤ê¹þ¤à¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£

¸½ºß¤Î¥¤¥Ù¥ó¥ÈÈÖ¹æ¤¬ 13 ¤È¤¹¤ì¤Ð¡¢¤½¤ì°ÊÁ°¤Î¥¤¥Ù¥ó¥È¤ò¡¢Îã¤¨¤Ð¡¢¥¤¥Ù¥ó¥ÈÈÖ¹æ 11 ¤Ï¡¢`!11' ¤È¤¹¤ë¤³¤È¤Ë¤è¤ê»²¾È¤Ç¤­¤Þ¤¹¡£¤³¤ì¤ÏÁêÂÐ»ØÄê¤ò»È¤Ã¤Æ`!-2'¡ÊÆ±¤¸¥¤¥Ù¥ó¥È¤ò»ØÄê¡Ë¤È¤¹¤ë¤³¤È¤ä¡¢¥³¥Þ¥ó¥É¤Î¥ï¡¼¥É¤ÎÀÜÆ¬»Ò `!wri'¤ä¡¢`!d' ¤ò»È¤Ã¤Æ¤½¤ì¤¾¤ì¥¤¥Ù¥ó¥È 9 ¤ä¥¤¥Ù¥ó¥È 12 ¤ò¡¢¤Þ¤¿¡¢¥³¥Þ¥ó¥É¤Ë´Þ¤Þ¤ì¤ëÊ¸»úÎó¤ò¡¢`!?mic?' ¤Î·Á¤Ç»ØÄê¤·¡¢¥¤¥Ù¥ó¥È 9 ¤ò»²¾È¤¹¤ë¤³¤È¤â¤Ç¤­¤Þ¤¹¡£°Ê¾å¤Î·Á¼°¤Ï¡¢¤³¤ì°Ê¾å½¤Àµ¤»¤º¤Ë¡¢»ØÄê¤µ¤ì¤¿¥¤¥Ù¥ó¥È¤Î¥ï¡¼¥É1¸Ä¤Î¶õÇò¤Ç¶èÀÚ¤Ã¤ÆºÆ¸½¤·¤Þ¤¹¡£ÆÃ¼ì¤Ê¥±¡¼¥¹¤È¤·¤Æ¡¢`!!' ¤ÏÄ¾Á°¤Î¥³¥Þ¥ó¥É¤ò»Ø¤¹¤³¤È¤Ë¤Ê¤ê¤Þ¤¹¤«¤é¡¢»ö¼Â¾å redo ¤ÈÆ±¤¸¤³¤È¤Ë¤Ê¤ê¤Þ¤¹¡£

`:' ¤Î¸å¤Ë¡¢ÂÐ¾Ý¤Î¥ï¡¼¥É¤Î»ØÄê¤ò¥¤¥Ù¥ó¥È¤Î»ØÄê¤ËÂ³¤±¤ë¤³¤È¤Ë¤è¤Ã¤Æ¡¢¤¢¤ë¥¤¥Ù¥ó¥È¤«¤é¤µ¤é¤ËÆÃÄê¤Î¥ï¡¼¥É¤òÁªÂò¤¹¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£ÆþÎÏ¥é¥¤¥óÃæ¤Î¥ï¡¼¥É¤Ï 0 ¤«¤é¥Ê¥ó¥Ð¥ê¥ó¥°¤µ¤ì¤Þ¤¹¡£½¾¤Ã¤ÆºÇ½é¤Î¥ï¡¼¥É¡ÊÄÌ¾ï¤Ï¥³¥Þ¥ó¥É¡Ë¤Ï 0¡¢2 ÈÖÌÜ¤Î¥ï¡¼¥É¡ÊºÇ½é¤Î°ú¿ô¡Ë¤Ï1¡¢°Ê²¼ 2¡¢3¡¢4¡¢... ¤È¤Ê¤ê¤Þ¤¹¡£´ðËÜÅª¤Ê»ØÄê»Ò¤ò°Ê²¼¤Ë¼¨¤·¤Þ¤¹¡£

0			ºÇ½é¤Î¥ï¡¼¥É¡Ê¥³¥Þ¥ó¥É¡Ë
n			n ÈÖÌÜ¤Î°ú¿ô
^			ºÇ½é¤Î°ú¿ô¡¢¤Ä¤Þ¤ê `1'
$			ºÇ¸å¤Î°ú¿ô
%		?s? ¥µ¡¼¥Á¤Ë¤è¤Ã¤Æ¥Þ¥Ã¥Á¤·¤¿¡ÊÄ¾Á°¤«¤éÀè¹Ô¤¹¤ë¡Ë¥ï¡¼¥É
x-y	x-y ¤ÎÈÏ°Ï¤Ë¤¢¤ë¥ï¡¼¥É
-y		`0-y' ¤Î¾ÊÎ¬·Á
*			`^-$' ¤Î¾ÊÎ¬·Á¡¢¥¤¥Ù¥ó¥ÈÃæ¤Î¥ï¡¼¥É¤¬1¤Ä¤Ç¤¢¤ì¤Ð²¿¤â°ÕÌ£¤·¤Ê¤¤
x*		`x-$' ¤Î¾ÊÎ¬·Á
x~		x*¤ÈÆ±ÍÍ¤Ç¤¹¤¬¡¢`$' ¤ò¾ÊÎ¬¤·¤Æ¤¤¤Þ¤¹¡£

¤Þ¤¿¥¤¥Ù¥ó¥È¤Î»ØÄê¤È¥ï¡¼¥É¤Î»ØÄê»Ò¤ò¶èÀÚ¤Ã¤Æ¤¤¤ë `:' ¤Ï¡¢°ú¿ô¤Ç¤¢¤ë¥»¥ì¥¯¥¿¡Ê¥ï¡¼¥É¤Î»ØÄê»Ò¡Ë¤¬ `^', `$', `*', `-' ¤ª¤è¤Ó `%' ¤Ç»Ï¤Þ¤ë¾ì¹ç¡¢¾ÊÎ¬¤¹¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£¥ª¥×¥·¥ç¥ó¤Ç¥ï¡¼¥É¤Î»ØÄê»Ò¤Î¸å¤Ë `:' ¤ËÂ³¤¯Ê£¿ô¤Î½¤¾þ»Ò¤òÃÖ¤¯¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£¼¡¤Î½¤¾þ»Ò¤¬ÍÑ°Õ¤µ¤ì¤Æ¤¤¤Þ¤¹¡£

h   ¥ï¡¼¥É¤Î¥Ñ¥¹Ì¾ÀèÆ¬ÉôÊ¬¤ò»Ä¤·¡¢»Ä¤ê¤Î¸å¤ÎÉôÊ¬¤ò½ü¤­¤Þ¤¹¡£            
r    ¥ï¡¼¥É¤Î¥Ñ¥¹Ì¾¥ë¡¼¥ÈÌ¾¤ò»Ä¤·¡¢`.xxx' ÉôÊ¬¤ò½ü¤­¤Þ¤¹¡£             
e   ¥ï¡¼¥É¤Î¥Ñ¥¹Ì¾³ÈÄ¥»Ò `.xxx' ¤ÎÉôÊ¬¤À¤±¤ò»Ä¤·¡¢»Ä¤êÁ´¤Æ¤ò½ü¤­¤Þ¤¹¡£    
s/l/r/
  l ¤ò r ¤ÇÃÖ¤­´¹¤¨¤Þ¤¹¡£
 t    ¸åÉôÊ¬¤ò»Ä¤·¡¢Àè¹Ô¤¹¤ëÁ´¤Æ¤Î¥Ñ¥¹Ì¾¤ÎÉôÊ¬¤ò½ü¤­¤Þ¤¹¡£            
&   Ä¾Á°¤Ë»È¤Ã¤¿ÃÖ¤­´¹¤¨¤ò·«¤êÊÖ¤·»ÈÍÑ¤·¤Þ¤¹¡£
g    & ¤ÎÁ°¤ËÉÕ¤±¡¢& ¤ÎÃÖ¤­´¹¤¨¤ò¥°¥í¡¼¥Ð¥ë¤ËÅ¬ÍÑ¤µ¤»¤Þ¤¹¡£Îã¤¨¤Ð `g&'
p    ¿·¤·¤¤¥³¥Þ¥ó¥É¤òÉ½¼¨¤µ¤»¤Þ¤¹¤¬¡¢¼Â¹Ô¤Ï¤·¤Þ¤»¤ó¡£             
q    ÃÖ´¹¤µ¤ì¤¿¥ï¡¼¥É¤ò°úÍÑ¡Ê¥¯¥©¡¼¥È¡Ë¤·¡¢¤½¤ì°Ê¾å¤ÎÃÖ´¹¤ò¶Ø»ß¤Ë¤·¤Þ¤¹¡£
x     q ¤ÈÆ±ÍÍ¤Ç¤¹¤¬¡¢¥ï¡¼¥É¤ò¶õÇò¤È¥¿¥Ö¤È¥Ë¥å¡¼¥é¥¤¥óËè¤Ë¶èÀÚ¤ê¤Þ¤¹¡£

`g' ¤¬»ØÄê¤µ¤ì¤Ê¤¤¸Â¤ê¡¢½¤¾þ»Ò¤Ï¡¢ºÇ½é¤Î½¤¾þ²ÄÇ½¤Ê¥ï¡¼¥É¤Ë¤Î¤ßÅ¬ÍÑ¤µ¤ì¤Þ¤¹¡£ÃÖ´¹¤Ë¤Ä¤¤¤Æ¤Ï¡¢Å¬ÍÑ¤¹¤ë¥ï¡¼¥É¤¬¤Ê¤¤¾ì¹ç¤Ï¥¨¥é¡¼¤È¤·¤Þ¤¹¡£

 `s/l/r' ¤ÎÃÖ´¹¤Îº¸Â¦ÉôÊ¬¤Ï¥¨¥Ç¥£¥¿¤Ç¤ÎÄÌ¾ï¤ÎÉ½¸½ÊýË¡¤È¤Ï°·¤¤¤¬°ã¤¤¡¢Ê¸»úÎó¤Ë¶á¤¯¤Ê¤Ã¤Æ¤¤¤Þ¤¹¡£`/' ¤ËÂå¤ï¤Ã¤Æ¤É¤ÎÍÍ¤ÊÊ¸»ú¤â¶èÀÚ¤êÊ¸»ú¤È¤·¤Æ»ÈÍÑ²ÄÇ½¤Ç¤¹¡£`\' ¤Ï l ¤ª¤è¤Ó r ¤ÎÊ¸»úÎó¤ò¶èÀÚ¤ë¥Ç¥ê¥ß¥¿¤ò¥¯¥©¡¼¥È¡Ê°úÍÑ¡Ë¤·¤Þ¤¹¡£`\' ¤Ï¤Þ¤¿ `&' ¤ò¥¯¥©¡¼¥È¤·¤Þ¤¹¡£ `&' Ê¸»ú¤ò»È¤¦¤È¡¢º¸Â¦¤ÎÊ¸»úÎó¤ò¡¢±¦Â¦¤ÎÊ¸»úÎó¤ÎÃæ¤Ç¤½¤Ã¤¯¤ê¤½¤Î¤Þ¤Þ·«¤êÊÖ¤·¤Þ¤¹¡£l ¤¬¥Ì¥ë¤Î¾ì¹ç¤ÏÄ¾Á°¤ÎÊ¸»úÎó¤Î l ¤Þ¤¿¤Ï `!?s?' ¤Î s ¤Ë¤è¤ë¥µ¡¼¥Á¤ò»È¤¤¤Þ¤¹¡£ºÇ¸å¤Î¶èÀÚ¤êÊ¸»ú¤Ï¥Ë¥å¡¼¥é¥¤¥ó¤¬¤¹¤°Â³¤¤¤Æ¤¤¤ë¾ì¹ç¤Ï¡¢`?' ¤Ë¤è¤ëÁöºº¤Î¾ì¹ç¤ÈÆ±¤¸¤¯¾ÊÎ¬¤Ç¤­¤Þ¤¹¡£

¥Ò¥¹¥È¥ê¡¦¥ê¥¹¥È¤Î»²¾È¤Ï¥¤¥Ù¥ó¥È¤ÎÆÃÄê¤Ê¤·¤Ë¡ÊÎã¤¨¤Ð `!$' ¤ÎÍÍ¤Ë¡Ë¤¢¤¿¤¨¤ë¤³¤È¤â¤¢¤ê¤Þ¤¹¡£¤³¤Î¾ì¹ç¡¢Æ±¤¸¹Ô¤ÇÄ¾Á°¤Î¥Ò¥¹¥È¥ê¡¦¥ê¥¹¥È¤Î»²¾È¤¬¤ª¤³¤Ê¤ï¤ì¤Æ¤¤¤ë¾ì¹ç¤Ï¤½¤Î·«¤êÊÖ¤·¤Ë¤Ê¤ê¡¢¤Þ¤¿Ä¾Á°¤Î»²¾È¤¬¤ª¤Ê¤¸¹Ô¤Ç¤ª¤³¤Ã¤Æ¤¤¤ë¤Î¤Ç¤Ê¤±¤ì¤ÐÄ¾Á°¤Î¥³¥Þ¥ó¥É¤Ë»²¾È¤¬¹Ô¤ï¤ì¤Þ¤¹¡£¤·¤¿¤¬¤Ã¤Æ¡¢`!?foo?^ !$'¤Ï `?foo?' ¤Ë¥Þ¥Ã¥Á¤¹¤ë¥³¥Þ¥ó¥É¤ÎºÇ½é¤ÈºÇ¸å¤Î°ú¿ô¤ò¤¢¤¿¤¨¤Þ¤¹¡£

ÆþÎÏ¹Ô¤ÎºÇ½é¤Ë½Ð¤Æ¤¯¤ë¶õÇò¤Ç¤Ê¤¤Ê¸»ú¤¬ `^' ¤Î¤È¤­¥Ò¥¹¥È¥êÃÖ´¹¤ÎÆÃÊÌ¤Ê¾ÊÎ¬¤¬¹Ô¤ï¤ì¤Þ¤¹¡£¤³¤Î¥±¡¼¥¹¤Ç¤Ï `!:s^' ¤Ä¤Þ¤êÄ¾Á°¤Î¹Ô¤Î¥Æ¥­¥¹¥È¤òÃÖ´¹¤µ¤»¤ëÆ¯¤­¤ò¤·¤Þ¤¹¡£¤·¤¿¤¬¤Ã¤Æ¡¢`^lb^lib' ¤ÏÄ¾Á°¤Î¥³¥Þ¥ó¥É¤Ë¤¢¤é¤ï¤ì¤Æ¤¤¤ë`lb' ¤Î¥¹¥Ú¥ë¤òÄûÀµ¤·¤Þ¤¹¡£¤Þ¤¿ ¡¢¥Ò¥¹¥È¥êÃÖ´¹¤Ï¡¢`{' ¤È `}' ¤Ç³ç¤Ã¤Æ¸åÂ³¤ÎÊ¸»ú¤«¤é³ÖÎ¥¤¹¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£¤·¤¿¤¬¤Ã¤Æ `ls -ld ~paul' ¤Î¸å¤«¤é `!{l}a' ¤È¥¿¥¤¥×¤¹¤ë¤È¡¢`ls -ld ~paula' ¤ÈÉ¾²Á¤µ¤ì¤Þ¤¹¡£°ìÊý¡¢`!la' ¤Ç¤Ï `la' ¤Ç»Ï¤Þ¤ë¥³¥Þ¥ó¥É¤òÁÜ¤¹¤³¤È¤Ë¤Ê¤ê¤Þ¤¹¡£

¡Î' ¤È " ¤Ë¤è¤ë°úÍÑ¡Ï

 `'' ¤È `"' ¤Ë¤è¤ë°úÍÑ¤Ï¡¢Ê¸»úÎó¤ÎÁ´ÂÎ¤¢¤ë¤¤¤Ï°ìÉôÊ¬¤Î¡¢¤½¤ì°Ê¾å¤ÎÃÖ´¹¤ò¶Ø»ß¤µ¤»¤Þ¤¹¡£`'' ¤Ç°Ï¤Þ¤ì¤¿Ê¸»úÎó¤Ë¤Ï¡¢¤½¤ì°Ê¾å¤Î¤É¤ó¤ÊÅ¸³«¤â¹Ô¤ï¤ì¤Þ¤»¤ó¡£`"' ¤Ç°Ï¤Þ¤ì¤¿Ê¸»úÎó¤Ï¡¢¸å¤Ë½Ò¤Ù¤ëÍÍ¤ËÅ¸³«¤µ¤ì¤Þ¤¹¡£

¤É¤Á¤é¤Î¾ì¹ç¤Ë¤â¡¢·ë²Ì¤È¤·¤Æ¤Î¥Æ¥­¥¹¥È¤ÏÃ±°ì¥ï¡¼¥É¤½¤ì¼«¿È¤¢¤ë¤¤¤Ï¤½¤Î°ìÉô¤È¤Ê¤ê¤Þ¤¹¡£¤¿¤À¤Ò¤È¤Ä¤ÎÎã³°¤È¤·¤Æ¡Ê¸å½Ò¤Î¥³¥Þ¥ó¥ÉÃÖ´¹¤ò»²¾È¡Ë`'' ¤Ç°úÍÑ¤µ¤ì¤¿Ê¸»úÎó¤¬¡¢2¤Ä°Ê¾å¤Î¥ï¡¼¥É¤Î°ìÉôÊ¬¤È¤Ê¤ë¤³¤È¤¬¤¢¤ê¤Þ¤¹¡£`'' ¤Ç°úÍÑ¤µ¤ì¤¿Ê¸»úÎó¤Ç¤Ïµ¯¤³¤ê¤¨¤Þ¤»¤ó¡£

¡ÎÊÌÌ¾¤ÎÃÖ´¹¡Ï

¥·¥§¥ë¤ÏÊÌÌ¾¤Î¥ê¥¹¥È¤ò´ÉÍý¤·¤Æ¤ª¤ê¡¢alias ¥³¥Þ¥ó¥É¤È unalias ¥³¥Þ¥ó¥É¤Ë¤è¤êºîÀ®¡¢É½¼¨¤¢¤ë¤¤¤ÏÊÑ¹¹¤¬²ÄÇ½¤Ç¤¹¡£¥³¥Þ¥ó¥É¹Ô¤¬Áöºº¤µ¤ì¤ë¤È¡¢¼¡¤Ë¤Ò¤È¤Ä¤º¤Ä¤Î¥³¥Þ¥ó¥É¤Ë²òÀÏ¤µ¤ì¡¢¤½¤Î¤½¤ì¤¾¤ì¤ÎºÇ½é¤Î¥ï¡¼¥É¤¬º¸¤«¤é±¦¤ØÊÌÌ¾¤ò»ý¤Ã¤Æ¤¤¤ë¤«¤É¤¦¤«¤¬¥Á¥§¥Ã¥¯¤µ¤ì¤Þ¤¹¡£¤â¤·ÊÌÌ¾¤ò»ý¤Ã¤Æ¤¤¤ì¤Ð¤½¤Î¥³¥Þ¥ó¥É¤ËÂÐ±þ¤¹¤ë¥Æ¥­¥¹¥È¤¬¡¢¤½¤Î¥³¥Þ¥ó¥É¤¬°ÊÁ°¤Ë¥¿¥¤¥×¤µ¤ì¤¿ÆþÎÏ¹Ô¤Ç¤¢¤ë¤«¤ÎÍÍ¤Ë¡¢¥Ò¥¹¥È¥êµ¡¹½¤ò»È¤Ã¤Æ¡¢ºÆÅÙÆÉ¤ß¹þ¤Þ¤ì¤Þ¤¹¡£·ë²Ì¤È¤·¤ÆÆÀ¤é¤ì¤¿¥ï¡¼¥É¤Ï¥³¥Þ¥ó¥É¤È°ú¿ô¥ê¥¹¥È¤ò½ñ¤­´¹¤¨¤Þ¤¹¡£¥Ò¥¹¥È¥ê¡¦¥ê¥¹¥È¤ËÂÐ¤·²¿¤â»²¾È¤¬¤Ê¤¤¾ì¹ç¤Ë¤Ï¡¢°ú¿ô¥ê¥¹¥È¤Ï¤½¤Î¤Þ¤Þ¤Î¾õÂÖ¤Ë¤È¤É¤Þ¤ê¤Þ¤¹¡£

½¾¤Ã¤Æ¡¢`ls' ¤ÎÊÌÌ¾¤¬ `ls -l' ¤Ç¤¢¤Ã¤¿¤È¤¹¤ë¤È¡¢`ls /usr' ¥³¥Þ¥ó¥É¤Ï¡¢ `ls -l /usr' ¤ÈÅ¸³«¤µ¤ì°ú¿ô¥ê¥¹¥È¤Ï²¿¤âÊÑ¤ï¤ê¤Þ¤»¤ó¡£Æ±ÍÍ¤Ë¡¢`lookup' ¤ÎÊÌÌ¾¤¬¡¢`grep !^ /etc/passwd' ¤Ç¤¢¤Ã¤¿¤È¤¹¤ë¤È¡¢`lookup bill' ¤Ï¡¢`grep bill /etc/passwd' ¤ÈÅ¸³«¤µ¤ì¤Þ¤¹¡£

 ÊÌÌ¾¤¬¸«¤Ä¤«¤ë¤ÈÆþÎÏ¥Æ¥­¥¹¥È¤Î¥ï¡¼¥É¤ÎÊÑ´¹¤¬¹Ô¤ï¤ì¤¿¤Î¤Á¡¢¤½¤ÎÊÑ´¹¸å¤ÎÆþÎÏ¹Ô¤Ë¤¿¤¤¤·¤ÆºÆ¤ÓÊÌÌ¾¤ò¸«¤Ä¤±¤ë¥×¥í¥»¥¹¤¬³«»Ï¤µ¤ì¤Þ¤¹¡£ÊÑ´¹Á°¤ÈÊÑ´¹¸å¤Î¥Æ¥­¥¹¥È¤ÎºÇ½é¤Î¥ï¡¼¥É¤¬Æ±°ì¤Ç¤½¤ì°Ê¾å¤ÎÊÌÌ¾¤Î»ÈÍÑ¤ò¶Ø»ß¤¹¤ë¥Õ¥é¥°¤¬¤¿¤Ã¤Æ¤¤¤ë¤Ê¤é¤Ð¡¢¥ë¡¼¥×¤Ï¹Ô¤ï¤ì¤Þ¤»¤ó¡£¤½¤ì°Ê³°¤Î¥ë¡¼¥×¤¬¸«¤Ä¤±¤é¤ì¤ë¤È¥¨¥é¡¼¤ò°ú¤­µ¯¤³¤·¤Þ¤¹¡£

¤Þ¤¿¤³¤Îµ¡Ç½¤Ï¡¢²òÀÏÍÑ¤Î¥á¥¿¹½Ê¸¤ò»È¤¦¤³¤È¤â¤Ç¤­¤ë¤³¤È¤ËÃíÌÜ¤·¤Æ²¼¤µ¤¤¡£Îã¤¨¤Ð¡¢`alias print 'pr \!* | lpr'' ¤Ï pr ¤Î¤â¤Ä°ú¿ô¤ò¥é¥¤¥ó¥×¥ê¥ó¥¿¤Ë³ä¤êÅö¤Æ¤ë¥³¥Þ¥ó¥É¤òºîÀ®¤·¤Þ¤¹¡£

¡ÎÊÑ´¹¤ÎÃÖ´¹¡Ï

¥·¥§¥ë¤Ï¥¼¥í¤Þ¤¿¤Ï¤Ò¤È¤Ä°Ê¾å¤Î¥ï¡¼¥É¤òÃÍ¤È¤·¤Æ¤â¤ÄÊÑ¿ô¤Î¥»¥Ã¥È¤ò´ÉÍý¤·¤Þ¤¹¡£¤³¤ì¤é¤ÎÊÑ¿ô¤Ï¥·¥§¥ë¤Ë¤è¤ê¥»¥Ã¥È¤µ¤ì¡¢¤Þ¤¿¥·¥§¥ë¤Ë¤è¤ê»²¾È¤µ¤ì¤Þ¤¹¡£Îã¤¨¤Ð¡¢argv ÊÑ¿ô¤Ï¥·¥§¥ë¤Î°ú¿ô¥ê¥¹¥È¤ò»Ø¤·¤Þ¤¹¡£¤³¤ÎÊÑ¿ô¤ÎÃÍ¤È¤·¤Æ¤Î¥ï¡¼¥É¤Ï¤¤¤¯¤Ä¤«¤ÎÊýË¡¤Ç»²¾È¤µ¤ì¤Þ¤¹¡£ÊÑ¿ô¤ÎÃÍ¤Ï¡¢set ¤È unset ¥³¥Þ¥ó¥É¤Ë¤è¤êÉ½¼¨¡¢¤Þ¤¿ÊÑ¹¹¤Ç¤­¤Þ¤¹¡£¥·¥§¥ë¤Ë¤è¤ê»²¾È¤µ¤ì¤ëÊÑ¿ô¤Î¤¦¤Á¡¢¿ô»ú¤ÏÃ±¤Ë¥È¥°¥ë¡¦¥¹¥¤¥Ã¥Á¤È¤·¤Æ¤ß¤Ê¤µ¤ì¤Þ¤¹¡£¤Ä¤Þ¤ê¥·¥§¥ë¤Ï¤³¤Î¤È¤­¡¢¤½¤ÎÃÍ¤¬¤¤¤¯¤Ä¤Ç¤¢¤ë¤«¤ÏÌäÂê¤Ë¤»¤º¡¢¥»¥Ã¥È¤µ¤ì¤Æ¤¤¤ë¤«¤½¤¦¤Ç¤Ê¤¤¤«¤À¤±¤òÈ½ÃÇ¤·¤Þ¤¹¡£Îã¤¨¤Ð¡¢verbose ÊÑ¿ô¤Ï¥³¥Þ¥ó¥ÉÆþÎÏ¤¬¥¨¥³¡¼¤µ¤ì¤ë¤«¤É¤¦¤«¤Î¥È¥°¥ë¡¦¥¹¥¤¥Ã¥Á¤Ë¤Ê¤ê¤Þ¤¹¡£¤³¤ÎÊÑ¿ô¤ÎÀßÄê¤Ï -v ¥³¥Þ¥ó¥É¤ÎÆþÎÏ¤Î¥ª¥×¥·¥ç¥ó¤ÎÀßÄê¤Ë¤è¤ê¤Þ¤¹¡£

Â¾¤ÎÁàºî¤Ç¤Ï¡¢ÊÑ¿ô¤ò¿ô³ØÅª¤Ë¼è¤ê°·¤¤¤Þ¤¹¡£`@' ¤Ï¿ô³ØÅª±é»»¤ò»Ü¤·¡¢¤½¤Î·ë²Ì¤òÊÑ¿ô¤Ë³ä¤êÅö¤Æ¤Þ¤¹¡£¤·¤«¤·¤Ê¤¬¤é¡¢ÊÑ¿ô¤Î¤â¤ÄÃÍ¤Ï¤¤¤Ä¤â¥¼¥í¤Þ¤¿¤Ï¤Ò¤È¤Ä°Ê¾å¤ÎÊ¸»úÎó¤È¤·¤ÆÉ½¸½¤µ¤ì¤Þ¤¹¡£¿ô³ØÅª±é»»¤Î°ì´ÓÀ­¤òÊÝ¤Ä¤¿¤á¡¢¥Ì¥ëÊ¸»úÎó¤Ï¥¼¥í¤È¸«¤Ê¤µ¤ì¤Þ¤¹¡£¤³¤Î¤È¤­¡¢Ê£¿ô¥ï¡¼¥É¤ÎÃÍ¤È¤·¤Æ2ÈÖÌÜ°Ê¹ß¤Î¥ï¡¼¥É¤ÏÌµ»ë¤µ¤ì¤Þ¤¹¡£

ÆþÎÏ¥é¥¤¥ó¤¬ÊÌÌ¾¤ÇÃÖ¤­´¹¤¨¤é¤ì²òÀÏ¤µ¤ì¤¿¸å¡¢¤½¤ì¤¾¤ì¤Î¥³¥Þ¥ó¥É¤¬¼Â¹Ô¤µ¤ì¤ëÁ°¤Ë¡¢ÊÑ¿ô¤ÎÃÖ´¹¤¬ `$' Ê¸»ú¤ò¥­¡¼¤Ë¤·¤Æ¹Ô¤ï¤ì¤Þ¤¹¡£¤³¤ÎÊÑ¿ô¤ÎÃÖ´¹¤Ï¡¢`$' ¤ÎÁ°¤Ë `\' ¤¬ÉÕ¤¤¤Æ¤¤¤¿¤È¤­¤Ï¤ª¤³¤Ê¤ï¤ì¤Þ¤»¤ó¡£Æó½Å°úÍÑÉä `"' ¤Ç°Ï¤Þ¤ì¤¿ÆâÉô¤Ë¤¢¤ë¤È¤­¤Ï¥¨¥¹¥±¡¼¥×¤µ¤ì¤Þ¤¹¤¬¡¢Ã±°ì°úÍÑÉä `'' ¤Ç°Ï¤Þ¤ì¤¿ÆâÉô¤Ë¤¢¤ë¤È¤­¤Ï `\' ¤Ç¤Î¥¨¥¹¥±¡¼¥×¤¬Ìµ¸ú¤Ë¤Ê¤êÃÖ´¹¤¬¼Â¹Ô¤µ¤ì¤Þ¤»¤ó¡£¡ÊµÕ°úÍÑÉä¡Ë``' ¤Ç°úÍÑ¤µ¤ì¤¿Ê¸»úÎó¤Ï¸å¤Ë¤Ê¤Ã¤Æ²ò¼á¡Ê¸å½Ò¤Î¥³¥Þ¥ó¥ÉÃÖ´¹¤ò»²¾È¡Ë¤µ¤ì¤ë¤Î¤Ç¡¢`$' ¤Ë¤è¤ëÃÖ´¹¤Ï¡¢¾¯¤Ê¤¯¤È¤â¤³¤³¤Ç¤Ïµ¯¤³¤ê¤Þ¤»¤ó¡£`$' ¤Ë¶õÇò¡¢¥¿¥Ö¡¢¤½¤Î¹Ô¤Î½ª¤ï¤ê¤¬Â³¤¤¤¿¾ì¹ç¤Ï¡¢`$' ¤ÏÃÖ´¹¤µ¤ì¤Þ¤»¤ó¡£

ÆþÎÏ¤È½ÐÎÏ¤Î¥ê¥À¥¤¥ì¥¯¥È¤Ï¡¢ÊÑ¿ô¤òÅ¸³«¤¹¤ëÁ°¤Ë¤Ä¤Þ¤êÊÑ¿ô¤¬ÊÌ¡¹¤ËÅ¸³«¤µ¤ì¤ëÁ°¤Ë¼±ÊÌ¤µ¤ì¤ë¤³¤È¤Ë¤Ê¤ê¤Þ¤¹¡£¤³¤ì°Ê³°¤Î¾ì¹ç¤Ç¤Ï¡¢¥³¥Þ¥ó¥ÉÌ¾¤È°ú¿ô¥ê¥¹¥ÈÁ´ÂÎ¤Ï¤Þ¤È¤á¤Æ¤ËÅ¸³«¤µ¤ì¤Þ¤¹¡£½¾¤Ã¤Æ¡¢¤³¤Î»þÅÀ¤ÇºÇ½é¤Î¥ï¡¼¥É¡Ê¥³¥Þ¥ó¥É¡Ë¤¬2¸Ä°Ê¾å¤Î¥ï¡¼¥É¤òÀ¸À®¤·¡¢¤½¤ÎºÇ½é¤Î¥ï¡¼¥É¤¬¥³¥Þ¥ó¥É¤È¤Ê¤ê»Ä¤ê¤¬°ú¿ô¤Ë¤Ê¤ë¤³¤È¤â¤¢¤ê¤¨¤Þ¤¹¡£

`"' ¤Ç°Ï¤Þ¤ì¤¿¾ì¹ç¤â¤·¤¯¤Ï `:q' ½¤¾þ»Ò¤¬Â¸ºß¤¹¤ë¾ì¹ç¤ò½ü¤­¡¢ÊÑ¿ô¤ÎÃÖ´¹¤ÏºÇ½ªÅª¤Ë¥³¥Þ¥ó¥É¤È¥Õ¥¡¥¤¥ëÌ¾¤ÎÃÖ´¹¤Ëµ¢·ë¤·¤Þ¤¹¡£`"' ¤Ç°Ï¤Þ¤ì¤¿ÆâÉô¤Ç¤Ï¡¢ÃÍ¤¬Ê£¿ô¤Î¥ï¡¼¥É¤Ç¤¢¤ëÊÑ¿ô¤Ï¶õÇò¤Ë¤è¤Ã¤Æ¥ï¡¼¥É¤¬¤Ò¤È¤Ä¤Ò¤È¤Ä¶èÀÚ¤é¤ì¡¢¤Ò¤È¤Ä¤Î¥ï¡¼¥É¤Ë¤¢¤ë¤¤¤Ï¤½¤Î°ìÉô¤ËÅ¸³«¤µ¤ì¤Þ¤¹¡£`:q' ½¤¾þ»Ò¤¬ÃÖ´¹¤ËÅ¬ÍÑ¤µ¤ì¤¿¾ì¹ç¤Ë¤Ï¡¢ÊÑ¿ô¤¬ÃÖ´¹¤µ¤ì¤¿·ë²Ì¤½¤ì¤¾¤ì¤Î¥ï¡¼¥É¤Ï¶õÇò¤Ç¶èÀÚ¤é¤ì¡¢°úÍÑ¤µ¤ì¤¿¡Ê°Ê¹ß¤Î¥³¥Þ¥ó¥É¤¢¤ë¤¤¤Ï¥Õ¥¡¥¤¥ëÌ¾ÃÖ´¹¤òÁË»ß¤µ¤ì¤Þ¤¹¡ËÊ£¿ô¤Î¥ï¡¼¥É¤ËÅ¸³«¤µ¤ì¤Þ¤¹¡£

°Ê²¼¤ËÎóµó¤¹¤ë¥á¥¿¡¦¥·¡¼¥±¥ó¥¹¤ÏÊÑ¿ô¤ÎÃÍ¤ò¥·¥§¥ë¤Ø¤ÎÆþÎÏ¤ËÅêÆþ¤¹¤ë¤¿¤á¤ËÍÑ°Õ¤·¤Æ¤¢¤ê¤Þ¤¹¡£µ­ºÜ¤·¤Æ¤¢¤ë°Ê³°¤ÎÊÑ¿ô¤Î»²¾È¤Ï¥¨¥é¡¼¤ò°ú¤­µ¯¤³¤·¤Þ¤¹¡£

$name 
${name} 
name ¤È¤¤¤¦ÊÑ¿ô¤ÎÃÍ¤Ç¤¢¤ë¥ï¡¼¥É¤Ë¤è¤Ã¤Æ¶õÇò¤Ë¤è¤Ã¤Æ¶èÀÚ¤é¤ì¤¿·Á¤ÇÃÖ¤­´¹¤¨¤é¤ì¤Þ¤¹¡£Ãæ¤«¤Ã¤³ `{', `}' ¤Ï¤½¤Î¸å¤ËÏ¢·ë¤¹¤ëÊ¸»ú¤Î°ìÉô¤È¤Ï¸«¤Ê¤µ¤ì¤Ê¤¤¤è¤¦ name ¤ò³ÖÀä¤µ¤»¤Þ¤¹¡£¥·¥§¥ëÊÑ¿ô¤Ï±ÑÊ¸»ú¤«¤é»Ï¤Þ¤ë20Ê¸»ú¤Þ¤Ç¤Î±ÑÊ¸»ú¤È¿ô»ú¤«¤éÀ®¤ê¤¿¤Á¤Þ¤¹¡£²¼ÀþÊ¸»ú¤Ï±ÑÊ¸»ú¤È¤ß¤Ê¤µ¤ì¤Þ¤¹¡£
name ¤¬¥·¥§¥ëÊÑ¿ô¤Ç¤Ï¤Ê¤¤¾ì¹ç¤Ç¤â¡¢´Ä¶­Ãæ¤ËÀßÄê¤µ¤ì¤Æ¤¤¤ì¤Ð¡¢ÃÍ¤òÊÖ¤·¤Þ¤¹¡ÊÃ¢¤·¡¢¤³¤Î¾ì¹ç¤Ç¤â½¤¾þ»Ò¤ä²¼µ­¤Î·Á¼°¤Ç¤ÏÃÍ¤ÏÊÖ¤µ¤ì¤Þ¤»¤ó¡Ë¡£

$name[selector] 
${name[selector]}
name ÊÑ¿ô¤ÎÃÍ¤Î¥ï¡¼¥É¤ò¤¤¤¯¤Ä¤«ÁªÂò¤¹¤ë¾ì¹ç¤Ë»È¤¤¤Þ¤¹¡£¥»¥ì¥¯¥¿¤Ï¡¢`$' ¤Ë¤è¤ëÃÖ´¹¤ÎÂÐ¾Ý¤Ë¤Ê¤ê¤Þ¤¹¡£¤Þ¤¿¤Ò¤È¤Ä¤Î¿ô»ú¤« `-' ¤Ç¶èÀÚ¤é¤ì¤¿¤Õ¤¿¤Ä¤Î¿ô»ú¤«¤é¹½À®¤µ¤ì¤ë¤³¤È¤â¤¢¤ê¤Þ¤¹¡£ÊÑ¿ô¤ÎÃÍ¤Ç¤¢¤ëºÇ½é¤Î¥ï¡¼¥É¤Ï `1' ¤Ë¥Ê¥ó¥Ð¥ê¥ó¥°¤µ¤ì¤Þ¤¹¡£ÈÏ°Ï¤Ç»Ø¼¨¤¹¤ë»þ¡¢»ÏÃÍ¤¬µ­½Ò¤µ¤ì¤Æ¤¤¤Ê¤±¤ì¤Ð¥Ç¥Õ¥©¥ë¥È¤Ï `1' ¤Ë¤Ê¤ê¤Þ¤¹¡£Æ±ÍÍ¤Ë½ªÃÍ¤¬¾Ê¤«¤ì¤Æ¤¤¤ë¤È¤­¤Ë¤Ï¡¢¥Ç¥Õ¥©¥ë¥È¤Ï `$#name' ¤È¤Ê¤ê¤Þ¤¹¡£¥»¥ì¥¯¥¿ `*' ¤ÏÁ´¤Æ¤Î¥ï¡¼¥É¤òÁªÂò¤µ¤»¤Þ¤¹¡£2ÈÖÌÜ¤Î°ú¿ô¤¬¾ÊÎ¬¤µ¤ì¤Æ¤¤¤ë¤«¤¢¤ë¤¤¤Ï»ØÄê¤·¤¿ÈÏ°Ï¤¬¶õ¤Ç¤â¥¨¥é¡¼¤Ë¤Ï¤Ê¤ê¤Þ¤»¤ó¡£

$#name
${#name}
ÊÑ¿ô¤Î¤Ê¤«¤Î¥ï¡¼¥É¿ô¤òÃÎ¤é¤»¤Þ¤¹¡£¤³¤ì¤Ï¸å¤Ç `[selector]' Ãæ¤Ë»È¤¦¤ÈÊØÍø¤Ç¤¹¡£

$0
µ¯Æ°¤µ¤ì¤¿¥×¥í¥°¥é¥àÌ¾¤ò»Ø¤·¤Þ¤¹¡£¥Õ¥¡¥¤¥ëÌ¾¤¬Ì¤ÃÎ¤Î¾ì¹ç¤Ï¡¢¥¨¥é¡¼¤Ë¤Ê¤ê¤Þ¤¹¡£

$number 
${number} 
`$argv[number]' ¤ÈÅù¤·¤¯¤Ê¤ê¤Þ¤¹¡£

$*
`$argv[*]' ¤ÈÅù¤·¤¯¤Ê¤ê¤Þ¤¹¡£

`:h', `:t', `:r', `:q', `:x' ½¤¾þ»Ò¤Ï¤Þ¤¿ `:gh', `:gt', `:gr' ¤Î·Á¼°¤Ç¤¢¤¿¤¨¤ë¤³¤È¤â¤Ç¤­¤Þ¤¹¡£¤â¤·Ãæ¤«¤Ã¤³ `{', `}' ¤¬¥³¥Þ¥ó¥ÉÃæ¤Ë¤¢¤ë¾ì¹ç¤Ë¤Ï¡¢½¤¾þ»Ò¤Ï¤Þ¤¿Ãæ¤«¤Ã¤³Ãæ¤Ë¤Ê¤±¤ì¤Ð¤Ê¤ê¤Þ¤»¤ó¡£¸½¹Ô¤Î¥Ð¡¼¥¸¥ç¥ó¤Ç¤Ï¤Ò¤È¤Ä¤Î `$' ¤Ë¤è¤ëÅ¸³«¤Ë¤Ä¤­¡¢°ì¸Ä¤Î `:' ½¤¾þ»Ò¤Î»ØÄê¤Î¤ß¤¬¥µ¥Ý¡¼¥È¤µ¤ì¤Þ¤¹¡£

°Ê²¼¤ÎÃÖ´¹¤Ï `:' ½¤¾þ»Ò¤Ë¤è¤ë½¤¾þ¤Ï¤Ç¤­¤Þ¤»¤ó¡£

$?name
${?name}   
name ¤¬¥»¥Ã¥È¤µ¤ì¤Æ¤¤¤ì¤Ð¡¢`1' ¤½¤¦¤Ç¤Ê¤±¤ì¤Ð `0' ¤òÂåÆþ¤·¤Þ¤¹¡£

$?0 
¸½ºß¤ÎÆþÎÏ¥Õ¥¡¥¤¥ëÌ¾¡Ê¥¹¥¯¥ê¥×¥È¡¦¥Õ¥¡¥¤¥ë¤ÎÌ¾Á°¡Ë¤¬ÄêµÁºÑ¤Ç¤¢¤ì¤Ð¡¢`1' ¤½¤¦¤Ç¤Ê¤±¤ì¤Ð `0' ¤òÂåÆþ¤·¤Þ¤¹¡£

$$
¡Ê¿Æ¡Ë¥·¥§¥ë¤Î¡Ê10 ¿ÊÉ½¼¨¤Î¡Ë¥×¥í¥»¥¹ÈÖ¹æ¤òÂåÆþ¤·¤Þ¤¹¡£

$<
É¸½àÆþÎÏ¤«¤é1¹Ô¤ò°Ê¹ß¤Î²òÀÏ¤ò¤µ¤»¤Ê¤¤¾ò·ï¤ÇÂåÆþ¤·¤Þ¤¹¡£¥·¥§¥ë¡¦¥¹¥¯¥ê¥×¥È¤Ë¤ª¤¤¤Æ¥­¡¼¥Ü¡¼¥É¤«¤é¤ÎÆþÎÏ¤òÆÉ¤ß¼è¤ë¾ì¹ç¤Ë»È¤ï¤ì¤Þ¤¹¡£

¡Î¥³¥Þ¥ó¥É¤È¥Õ¥¡¥¤¥ëÌ¾¤ÎÃÖ´¹¡Ï

»Ä¤ë¤Ï¥³¥Þ¥ó¥É¤È¥Õ¥¡¥¤¥ëÌ¾¤ÎÃÖ´¹¤Ë¤Ê¤ê¤Þ¤¹¤¬¡¢¤³¤ì¤é¤ÏÁÈ¤ß¹þ¤ß¥³¥Þ¥ó¥É¤Î°ú¿ô¤ËÁªÂòÅª¤ËÅ¬ÍÑ¤µ¤ì¤Þ¤¹¡£¤³¤ì¤Ï¼°¤Î¤¦¤Á¤ÎÉ¾²Á¤µ¤ì¤Ê¤¤ÉôÊ¬¤Ï¡¢¤³¤ì¤é¤ÎÅ¸³«¤ÎÂÐ¾Ý¤Ë¤Ï¤Ê¤ê¤Þ¤»¤ó¡£¤³¤ì¤é¥·¥§¥ë¤ÎÆâÉô¤ËÂ¸ºß¤·¤Ê¤¤¥³¥Þ¥ó¥É¤Ë¤Ä¤¤¤Æ¤Ï¡¢¥³¥Þ¥ó¥ÉÌ¾¤Ï°ú¿ô¥ê¥¹¥È¤ò»È¤Ã¤ÆÊÌ¡¹¤ËÃÖ´¹¤µ¤ì¤Þ¤¹¡£¤³¤ì¤ÏÆþÎÏ¡¼½ÐÎÏ¥ê¥À¥¤¥ì¥¯¥È¤¬¼Â¹Ô¤µ¤ì¤¿¸å¡¢¤«¤Ê¤êÃÙ¤¤¥¿¥¤¥ß¥ó¥°¤Ç¥á¥¤¥ó¡¦¥·¥§¥ë¤Î»Ò¤Ë¤ª¤¤¤Æ¹Ô¤ï¤ì¤Þ¤¹¡£

¡Î¥³¥Þ¥ó¥ÉÃÖ´¹¡Ï

¥³¥Þ¥ó¥ÉÃÖ´¹¤Ï¡ÊµÕ°úÍÑÉä¡Ë``' ¤Ç°Ï¤Þ¤ì¤¿¥³¥Þ¥ó¥É¤Ë¤è¤Ã¤Æ»ØÄê¤·¤Þ¤¹¡£¤³¤Î·ë²ÌÆÀ¤é¤ì¤ë½ÐÎÏ¤ÏÄÌ¾ï¶õÇò¡¢¥¿¥Ö¡¢¥Ë¥å¡¼¥é¥¤¥óËè¤Ë¶èÀÚ¤Ã¤¿°ìÏ¢¤Î¥ï¡¼¥É¤Ë¤Ê¤ê¤Þ¤¹¡£¤³¤Î¤È¤­¡¢¥Ì¥ë¥ï¡¼¥É¤Ï½üµî¤µ¤ì¤Þ¤¹¡£`"' ¤Ç°Ï¤Þ¤ì¤¿ÆâÉô¤Ç¤Ï¥Ë¥å¡¼¥é¥¤¥ó¤Î¤ß¤¬¡¢¿·¤·¤¤¥ï¡¼¥É¤ò°ÕÌ£¤·¤Þ¤¹¡£¶õÇò¤È¥¿¥Ö¤Ï¤½¤Î¤Þ¤ÞÊÝ»ý¤µ¤ì¤Þ¤¹¡£

¤É¤ÎÍÍ¤Ê¾ì¹ç¤Ç¤â¡¢ºÇ¸å¤Î¥Ë¥å¡¼¥é¥¤¥ó¤¬¿·¤·¤¤¥ï¡¼¥É¤¬¼¡¤Ë¸½¤ì¤ë¤³¤È¤ò°ÕÌ£¤·¤Æ¤¤¤ë¤ï¤±¤Ç¤Ï¤¢¤ê¤Þ¤»¤ó¡£¤·¤¿¤¬¤Ã¤Æ¡¢¥³¥Þ¥ó¥É¤Î¼Â¹Ô·ë²Ì¤¬¡¢´°Á´¤Ê¹Ô¤Î·Á¼°¤Ë¤Ê¤Ã¤Æ¤¤¤Æ¤â¡¢¥³¥Þ¥ó¥ÉÃÖ´¹¤Î·ë²Ì¤Ë¤è¤Ã¤Æ¤Ò¤È¤Ä¤Î¥ï¡¼¥É¤Î°ìÉôÊ¬¤À¤±        ¤¬¤Ä¤¯¤é¤ì¤ë¤³¤È¤â¤¢¤ê¤Þ¤¹¡£

¡Î¥Õ¥¡¥¤¥ëÌ¾ÃÖ´¹¡Ï

¥ï¡¼¥É¤¬ `*', `?', `[' ¤¢¤ë¤¤¤Ï `{' ¤Î¤¦¤Á¤É¤ì¤«¤ò´Þ¤ó¤Ç¤¤¤ë¾ì¹ç¤â¤·¤¯¤Ï`~' ¤Ç»Ï¤Þ¤ë¾ì¹ç¤Ë¤Ï¡¢¤½¤Î¥ï¡¼¥É¤Ï¥Õ¥¡¥¤¥ëÌ¾ÃÖ´¹¡Ê¥°¥í¡¼¥Ó¥ó¥°¡Ë¤ÎÂÐ¾Ý¤Ë¤Ê¤ê¤Þ¤¹¡£¤³¤ì¤é¤Î¥ï¡¼¥É¤Ï¥Ñ¥¿¡¼¥ó¤È¤·¤ÆÇ§¼±¤µ¤ì¡¢¥¢¥ë¥Õ¥¡¥Ù¥Ã¥È½ç¤Ë¥½¡¼¥È¤µ¤ì¤¿¥Õ¥¡¥¤¥ëÌ¾¤Î¥ê¥¹¥È¤ò»È¤Ã¤Æ¥Þ¥Ã¥Á¥ó¥°¤µ¤ì¤Þ¤¹¡£¥Õ¥¡¥¤¥ëÌ¾ÃÖ´¹¤ò¤ª¤³¤Ê¤¦¥ï¡¼¥É¤Î¥ê¥¹¥È¤Ë¡¢Â¸ºß¤¹¤ë¥Õ¥¡¥¤¥ëÌ¾¤Ç¥Þ¥Ã¥Á¤¹¤ë¤â¤Î¤¬¤Ê¤¤¾ì¹ç¤Ï¥¨¥é¡¼¤È¤Ê¤ê¤Þ¤¹¤¬¡¢¤³¤ì¤Ï¶¯À©¤Ç¤Ï¤¢¤ê¤Þ¤»¤ó¡£`*', `?', `[' ¤Î¥á¥¿¥­¥ã¥é¥¯¥¿¤Î¤ß¤¬¥Ñ¥¿¡¼¥ó¤Î¥Þ¥Ã¥Á¥ó¥°¤ò°ÕÌ£¤·¤Þ¤¹¡£`~' ¤È `{' ¤Ï¾ÊÎ¬·Á¤Ë¶á¤¤°ÕÌ£¤ò»ý¤Á¤Þ¤¹¡£

¥Õ¥¡¥¤¥ëÌ¾¤Î¥Þ¥Ã¥Á¥ó¥°¤Ç¤Ï¡¢¥Õ¥¡¥¤¥ëÌ¾¤ÎÀèÆ¬¤Î¥Ô¥ê¥ª¥É `.' ¤È¥Õ¥¡¥¤¥ëÌ¾¤ËÂ³¤¯¥¹¥é¥Ã¥·¥å `/' ¤ª¤è¤ÓÊ¸»ú¤È¤·¤Æ¤Î `/' ¤ÏÌÀ¼¨Åª¤Ë¥Þ¥Ã¥Á¤·¤Ê¤±¤ì¤Ð¤Ê¤ê¤Þ¤»¤ó¡£`*' ¤Ï¥Ì¥ëÊ¸»úÎó¤ò´Þ¤áÁ´¤Æ¤ÎÊ¸»úÎó¤È¥Þ¥Ã¥Á¤·¤Þ¤¹¡£`?' ¤Ï¤É¤Î°ìÊ¸»ú¤Ë¤â¥Þ¥Ã¥Á¤·¤Þ¤¹¡£`[...]' ¤Ç°Ï¤Þ¤ì¤¿¾ì¹ç¡¢¤½¤ÎÃæ¤Î¤É¤ÎÊ¸»ú¤â¥Þ¥Ã¥Á¤¹¤ë¤³¤È¤Ë¤Ê¤ê¤Þ¤¹¡£Æ±ÍÍ¤Ë¡¢`[...]' ÆâÉô¤Ç `-' ¤Ç¶èÀÚ¤Ã¤¿2¤Ä¤ÎÊ¸»ú¤Ç»ØÄê¤µ¤ì¤¿¾ì¹ç¤Ï¡¢¥¢¥ë¥Õ¥¡¥Ù¥Ã¥È½ç¤Ë¤½¤ÎÈÏ°ÏÆâ¤Ë¤¢¤ë¤É¤ÎÊ¸»ú¤â¥Þ¥Ã¥Á¤·¤Þ¤¹¡£

`~' ¤¬¥Õ¥¡¥¤¥ë¤ÎÀèÆ¬¤ËÉÕ¤¤¤¿¾ì¹ç¥Û¡¼¥à¡¦¥Ç¥£¥ì¥¯¥È¥ê¤ò»Ø¤¹¤¿¤á¤Ë»ÈÍÑ¤µ¤ì¤Þ¤¹¡£Ã±ÆÈ¤Ç½Ð¤Æ¤­¤¿¾ì¹çÎã¤¨¤Ð¡¢`~' ¤Ï¡¢¥æ¡¼¥¶¤Î¥Û¡¼¥à¡¦¥Ç¥£¥ì¥¯¥È¥ê¤ËÅ¸³«¤µ¤ì¥·¥§¥ë¤Î home ÊÑ¿ô¤ÎÃÍ¤ËÈ¿±Ç¤µ¤ì¤Þ¤¹¡£±ÑÊ¸»ú¡¢¿ô»ú¡¢¤ª¤è¤Ó `-' ¤«¤é¹½À®¤µ¤ì¤ë¥Õ¥¡¥¤¥ëÌ¾¤¬ `~' ¤ËÂ³¤¤¤¿¾ì¹ç¡¢¥·¥§¥ë¤Ï¥æ¡¼¥¶¥Ç¥£¥ì¥¯¥È¥ê¤Î¤Ê¤«¤òÃµºº¤·¡¢¥Û¡¼¥à¡¦¥Ç¥£¥ì¥¯¥È¥ê¤òÃÖ´¹¤·¤Þ¤¹¡£½¾¤Ã¤Æ `~' ¤Ï `/usr/ken'¤Ë¡¢`~ken/chmach' ¤Ï `/usr/ken/chmach' ¤Ë¤½¤ì¤¾¤ìÅ¸³«¤µ¤ì¤Þ¤¹¡£¤â¤· `~'¤ËÂ³¤¯¤Î¤¬±ÑÊ¸»ú°Ê³°¤« `/' ¤Ç¤¢¤ë¾ì¹ç¡¢¤â¤·¤¯¤Ï `~' ¤¬¥ï¡¼¥É¤ÎºÇ½é¤Ë¤Ê¤¤¾ì¹ç¤Ë¤Ï¡¢ÃÖ´¹¤Ï¤ª¤³¤Ê¤ï¤ì¤Þ¤»¤ó¡£

¥á¥¿É½¸½ `a{b,c,d}e' ¤Ï `abe ace ade' ¤Î´ÊÎ¬²½É½¸½¤Ç¤¹¡£º¸¤«¤é±¦¤Ø¤Î½ç½ø¤ÏÊÝ»ý¤µ¤ì¤Þ¤¹¡£¤³¤ì¤é¤ÎÊ¸»ú¤Ë¥Þ¥Ã¥Á¤·¤¿¥Õ¥¡¥¤¥ëÌ¾¤Ï¡¢¤½¤ì¤¾¤ì¤Î¤³¤Î½ç½ø¤Î¤Ê¤«¤Ç¡¢ÊÌ¡¹¤Ë¥½¡¼¥È¤µ¤ì¤ë¤³¤È¤Ë¤Ê¤ê¤Þ¤¹¡£¤³¤ì¤Ï¡¢Æþ¤ì»Ò¤Ë¤¹¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£½¾¤Ã¤Æ¡¢`~source/sl/{oldls,ls}.c' ¤Ï `/usr/source/sl/oldls.c /usr/source/sl/ls.c' ¤ËÅ¸³«¤µ¤ì¤Þ¤¹¡£¤³¤Î¾ì¹ç¡¢¤à¤í¤ó¥Û¡¼¥à¡¦¥Ç¥£¥ì¥¯¥È¥êÃæ¤Î `source' ¤¬¡¢`/usr/source' ¤Ë¤Ê¤ëÍÍ¤Ê¥¨¥é¡¼¤¬µ¯¤êÆÀ¤Ê¤¤¤³¤È¤«¤é¡¢¤³¤ÎÍÍ¤Ê¥Õ¥¡¥¤¥ë¤Ï¼Âºß¤·¤Þ¤»¤ó¡£Æ±ÍÍ¤Ë¡¢`../{memo,*box}' ¤Ï `../memo ../box ../mbox' ¤ËÅ¸³«¤µ¤ì¤Þ¤¹¡£`memo' ¤Ï `*box' ¤Ë¤è¤ë¥Þ¥Ã¥Á¥ó¥°¤Î·ë²Ì¤È°ì½ï¤Ë¥½¡¼¥È¤µ¤ì¤Æ¤¤¤Ê¤¤¤³¤È¤ËÃí°Õ¤·¤Æ¤¯¤À¤µ¤¤¡£Îã³°¤È¤·¤Æ `{' ,`}' ,`{}' ¤ÏÊÑ¹¹¤ò¼õ¤±¤Þ¤»¤ó¡£

¡ÎÆþÎÏ¤È½ÐÎÏ¤Î¥ê¥À¥¤¥ì¥¯¥È¡Ï

¥³¥Þ¥ó¥É¤ÎÉ¸½àÆþÎÏ¤ÈÉ¸½à½ÐÎÏ¤Ï¡¢°Ê²¼¤Îµ¬Â§¤Ë¤è¤Ã¤Æ¥ê¥À¥¤¥ì¥¯¥È¤µ¤ì¤Þ¤¹¡£        

< name
¥Õ¥¡¥¤¥ëÌ¾ name¡Ê¥³¥Þ¥ó¥É¤È¥Õ¥¡¥¤¥ëÌ¾¤ÎºÇ½é¤ÎÊÑ¿ô¤Ç¤¹¡Ë¤Î¥Õ¥¡¥¤¥ë¤òÉ¸½àÆþÎÏ¤È¤·¤Æ¥ª¡¼¥×¥ó¤·¤Þ¤¹¡£

<< word 
word ¤À¤±¤¬½ñ¤«¤ì¤¿¹Ô¤¬¼¡¤Ë¸½¤ï¤ì¤ë¤Þ¤Ç¡¢¤³¤Î¹Ô¤ËÂ³¤¯¹Ô¤ò¥·¥§¥ë¤Ø¤ÎÆþÎÏ¤È¤·¤ÆÆÉ¤ß¼è¤ê¤Þ¤¹¡£¤³¤Î word ¤ÏÊÑ¿ô¡¢¥Õ¥¡¥¤¥ëÌ¾¡¢¥³¥Þ¥ó¥É¤ÎÃÖ´¹¤Ï¼õ¤±¤Þ¤»¤ó¤·¡¢¤½¤ì¤¾¤ì¤ÎÆþÎÏ¹Ô¤Ï¡¢ÃÖ´¹¤¬¤ª¤³¤Ê¤ï¤ì¤ëÁ°¤Ë word¤ÈÈæ³Ó¤µ¤ì¤Þ¤¹¡£`\', `"', `'', ``' ¤Î°úÍÑÉä¤¬ word Æâ¤Ë¤¢¤ë¾ì¹ç¤ò½ü¤­¡¢ÊÑ¿ô¤È¥³¥Þ¥ó¥ÉÃÖ´¹¤¬¤½¤Î´Ö¤Ë¤¢¤ë¹Ô¤Ë¹Ô¤ï¤ì¤Þ¤¹¡£¤³¤Î¤È¤­¡¢`\' ¤Ç `$', `\', ¤ª¤è¤Ó ``' ¤â¥¯¥©¡¼¥È¤Ç¤­¤Þ¤¹¡£¥³¥Þ¥ó¥ÉÃÖ´¹¤Î¼Â¹Ô¸å¤âºÇ¸åÈø¤Î¥Ë¥å¡¼¥é¥¤¥ó°Ê³°¤ÏÍî¤µ¤ì¤Þ¤¹¤¬¡¢¤½¤ì°Ê³°¤ÎÁ´¤Æ¤Î¶õÇò¡¢¥¿¥Ö¡¢¥Ë¥å¡¼¥é¥¤¥ó¤ÏÊÝ»ý¤µ¤ì¤Þ¤¹¡£·ë²Ì¤È¤·¤ÆÆÀ¤é¤ì¤¿¥Æ¥­¥¹¥È¤Ï¡¢¥Õ¥¡¥¤¥ëÌ¾¤Î¤Ê¤¤°ì»þ¥Õ¥¡¥¤¥ë¤ËÃÖ¤«¤ì¡¢É¸½àÆþÎÏ¤È¤·¤Æ¥³¥Þ¥ó¥É¤ËÅÏ¤µ¤ì¤Þ¤¹¡£

> name
>! name 
>& name 
>&! name
¥Õ¥¡¥¤¥ëÌ¾ name ¤Î¥Õ¥¡¥¤¥ë¤ÏÉ¸½à½ÐÎÏ¤È¤Ê¤ê¤Þ¤¹¡£¤½¤Î¥Õ¥¡¥¤¥ë¤¬Â¸ºß¤·¤Ê¤¤¾ì¹ç¡¢¿·µ¬¤ËºîÀ®¤µ¤ì¡¢´û¤ËÂ¸ºß¤¹¤ë¾ì¹ç¤Ï¥Õ¥¡¥¤¥ë¤ÎÃæ¿È¤Ï¾ÃÌÇ¤·¤Þ¤¹¡£

ÊÑ¿ô noclobber ¤¬¥»¥Ã¥È¤µ¤ì¤Æ¤¤¤ë¾ì¹ç¡¢¤½¤Î¥Õ¥¡¥¤¥ë¤Ï´û¤ËÂ¸ºß¤·¤Æ¤¤¤ë¤³¤È¤òµö¤·¤Þ¤»¤ó¡£¤¢¤ë¤¤¤Ï¡¢Â¸ºß¤·¤Æ¤âÊ¸»ú¤ÎÆÃ¼ì¥Õ¥¡¥¤¥ë¡ÊÃ¼Ëö¤¢¤ë¤¤¤Ï `/dev/null' ¡Ë¤«¡¢¤â¤·¤¯¤Ï¥¨¥é¡¼·ë²Ì¤Ç¤Ê¤±¤ì¤Ð¤Ê¤ê¤Þ¤»¤ó¡£¤³¤ì¤Ë¤è¤ê¡¢¶öÈ¯Åª¤Ë¥Õ¥¡¥¤¥ë¤òÇË²õ¤¹¤ë¤³¤È¤¬ËÉ»ß¤µ¤ì¤Þ¤¹¡£¤³¤Î¾ì¹ç¤Ç¤â¡¢¤Ò¤È¤Ä¤Î¥³¥Þ¥ó¥É¤Ç noclobber ¤òÌµ»ë¤¹¤ë¤Ë¤Ï `!' ¤ò»È¤¤¤Þ¤¹¡£

`&' ¤ò»È¤Ã¤¿·Á¼°¤ÏÉ¸½à½ÐÎÏ¤Ë²Ã¤¨»ØÄê¤·¤¿¥Õ¥¡¥¤¥ë¤Ë¤â¿ÇÃÇÅª¤Ê½ÐÎÏ¤ò¤¤¤ì¤Þ¤¹¡£`<' ÆþÎÏ¥Õ¥¡¥¤¥ëÌ¾¤¬Å¸³«¤µ¤ì¤ë¤Î¤ÈÆ±¤¸ÊýË¡¤Ç name ¤ÏÅ¸³«¤µ¤ì¤Þ¤¹¡£

>> name
>>& name 
>>! name 
>>&! name
¤³¤ì¤é¤Ï name ¤ÎÌ¾Á°¤Î¥Õ¥¡¥¤¥ë¤ò `>' ¤Î¾ì¹ç¤ÈÆ±ÍÍÉ¸½à½ÐÎÏ¤È¤·¤Þ¤¹¤¬¡¢`>>' ¤Ç¤Ï¥Õ¥¡¥¤¥ë¤ÎºÇ¸å¤Ë½ÐÎÏ¤òÃÖ¤­¤Þ¤¹¡£ÊÑ¿ô noclobber ¤¬¥»¥Ã¥È¤µ¤ì¤Æ¤¤¤ë¾ì¹ç `!' ·Á¼°¤Î¤¤¤º¤ì¤«¤¬»ØÄê¤µ¤ì¤Æ¤¤¤ë¾ì¹ç¤ò½ü¤¤¤Æ¡¢¥Õ¥¡¥¤¥ë¤¬Â¸ºß¤·¤Ê¤¤¤È¤¤¤¦¤³¤È¤Ç¥¨¥é¡¼¤È¤Ê¤ê¤Þ¤¹¡£¤½¤ÎÂ¾¤Î¾ì¹ç¤Ë¤Ï¡¢`>'¤Ç¤Îµ¬Â§¤Ë½¾¤¤¤Þ¤¹¡£

¥³¥Þ¥ó¥É¤ÏÆþÎÏ¤ä½ÐÎÏ¤Î¥Ñ¥é¥á¡¼¥¿¤ä¥Ñ¥¤¥×¥é¥¤¥óÃæ¤Î¥³¥Þ¥ó¥É¤ÎÂ¸ºß¤Ë¤è¤Ã¤ÆÊÑ¹¹¤ò¼õ¤±¤ÆÎ©¤Á¾å¤¬¤Ã¤¿¥·¥§¥ë¤Î´Ä¶­¤Î¤Ê¤«¤Ë¤¢¤ê¤Þ¤¹¡£½¾¤Ã¤Æ¥·¥§¥ë¡¦¥³¥Þ¥ó¥É¤Î¥Õ¥¡¥¤¥ë¤«¤é¼Â¹Ô¤µ¤ì¤¿¥³¥Þ¥ó¥É¤Ï¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¥³¥Þ¥ó¥É¤Î¥Æ¥­¥¹¥È¤Ë¥¢¥¯¥»¥¹¤¹¤ë¤³¤È¤Ï¤Ç¤­¤Þ¤»¤ó¡£¤È¤¤¤¦¤è¤ê¤â¥ª¥ê¥¸¥Ê¥ë¤ÊÉ¸½àÆþÎÏ¤ò¼õ¤±¤ë¤ï¤±¤Ç¤¹¡£`<<' ¤Ï»È¤Ã¤¿ÆþÎÏ¤ÎÄÉ²Ãµ¡Ç½¤ò»È¤Ã¤Æ inline¡ÊËä¹þ¤ß¡ËÊ¸½ñ¤òºîÀ®¤¹¤ë¾ì¹ç¤Ë»È¤ï¤ì¤Þ¤¹¡£¤³¤ì¤Ë¤è¤Ã¤Æ¥·¥§¥ë¡¦¥¹¥¯¥ê¥×¥È¤¬¥Ñ¥¤¥×¥é¥¤¥ó¤Î°ìÍ×ÁÇ¤È¤·¤Æµ¡Ç½¤·¡¢¤Þ¤¿¤³¤ì¤òÉ¸½àÆþÎÏ¤È¤·¤ÆÆÉ¤ß¼è¤ë¤³¤È¤¬²ÄÇ½¤Ë¤Ê¤ê¤Þ¤¹¡£¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¥Ç¥¿¥Ã¥Á¤µ¤ì¤¿¥³¥Þ¥ó¥É¤Ø¤ÎÉ¸½àÆþÎÏ¤Ï¡¢¶õ¤Î¥Õ¥¡¥¤¥ë `/dev/null' ¤Ë¤ÏÊÑ¹¹¤Ç¤­¤Þ¤»¤ó¡£É¸½àÆþÎÏ¤Ï¥ª¥ê¥¸¥Ê¥ë¤Ê¥·¥§¥ë¤Ø¤ÎÉ¸½àÆþÎÏ¤È¤·¤Æ¤½¤Î¤Þ¤Þ»Ä¤ê¤Þ¤¹¡£É¸½àÆþÎÏ¤¬Ã¼Ëö¤Ç¥×¥í¥»¥¹¤¬ÆÉ¤ß¼è¤í¤¦¤È¤·¤¿¤È¤­¥×¥í¥»¥¹¤ÏÄä»ß¤·¡¢¥æ¡¼¥¶¤Ë¤½¤Î¤³¤È¤òÄÌÃÎ¤·¤Þ¤¹¡Ê¡Ø¥¸¥ç¥ÖÀ©¸æ¡Ù¤Î¹à¤ò»²¾È¡Ë¡£

¿ÇÃÇÅª¤Ê½ÐÎÏ¤Ï¥Ñ¥¤¥×¤ò»È¤Ã¤ÆÉ¸½à½ÐÎÏ¤È¤È¤â¤Ë½ÐÎÏÀè¤ò»ØÄê¤Ç¤­¤Þ¤¹¡£¤³¤Î¤È¤­ `|' ¤È¤»¤º¤Ë `|&' ¤Î·Á¼°¤ò»È¤Ã¤Æ¤¯¤À¤µ¤¤¡£

¡Î¼°¤È±é»»»Ò¡Ï

ÁÈ¹þ¤ß¥³¥Þ¥ó¥É¡Ê¸å½Ò¤·¤Þ¤¹¡Ë¤Î¤¦¤ÁÂçÂ¿¿ô¤Î¤â¤Î¤ÏC¸À¸ì¤ÈÎà»÷¤¹¤ë±é»»»Ò¤ª¤è¤ÓÆ±¤¸Í¥Àè½ç°Ì¤òÅ¬ÍÑ¤¹¤ë¼°¤Î·Á¤ò¤È¤ê¤Þ¤¹¡£¤³¤ì¤é¤Ï @, exit,  if,  while ¤Î¥³¥Þ¥ó¥ÉÃæ¤Ë¸½¤ì¤Þ¤¹¡£±é»»»Ò¤È¤·¤Æ°Ê²¼¤Î¤â¤Î¤¬ÍÑ°Õ¤µ¤ì¤Æ¤¤¤Þ¤¹¡£

          ||   &&   |   ^   &   ==   !=   =~   !~   <=   >=   <   >   <<   >>   +   -   *   /   %   !   ~   (   )

¤³¤³¤Ç±¦¤Ë¤¤¤¯¤Û¤ÉÍ¥Àè½ç°Ì¤Ï¹â¤¯¤Ê¤ê¤Þ¤¹¡£`==' `!=' `=~' ¤½¤·¤Æ `!~'¡¢`<=' `>=' `<' ¤½¤·¤Æ `>'¡¢`<<' ¤È `>>'¡¢`+' ¤È `-'¡¢`*' `/' ¤½¤·¤Æ `%'¡¢¤Ï¤ª¤Ê¤¸¥°¥ë¡¼¥×¤ËÂ°¤¹¤Î¤ÇÆ±¤¸Í¥Àè½ç°Ì¤È¤Ê¤ê¤Þ¤¹¡£`==' `!=' `=~' ¤½¤·¤Æ`!=' ±é»»»Ò¤Ï°ú¿ô¤òÊ¸»úÎó¤È¤·¤Æ¤¢¤Ä¤«¤¤¤Þ¤¹¡£¤½¤ì°Ê³°¤ÏÁ´¤Æ¿ô»ú¤È¤·¤Æ½èÍý¤·¤Þ¤¹¡£`=~', `!=' ±é»»»Ò¤Ï¤³¤ì¤é¤Î±¦Â¦¤¬¥Ñ¥¿¡¼¥ó¤Ç¤¢¤Ã¤Æ¡ÊÎã¤¨¤Ð `*',`?' ¤ä `[...]' ¤ò´Þ¤ó¤À¡Ëº¸Â¦¤Î¥ª¥Ú¥é¥ó¥É¤È¥Þ¥Ã¥Á¥ó¥°¤µ¤ì¤ëÅÀ¤ò½ü¤±¤Ð¡¢`==', `!=' ¤Ë»÷¤Æ¤¤¤Þ¤¹¡£¤³¤ì¤Ë¤è¤ê¥Ñ¥¿¡¼¥ó¥Þ¥Ã¥Á¥ó¥°¤Î¤ß¤ò¤ª¤³¤Ê¤¤¤¿¤¤¾ì¹ç¤Ç¤Ï¡¢¥·¥§¥ë¥¹¥¯¥ê¥×¥ÈÃæ¤Ç¤Î¥¹¥¤¥Ã¥ÁÊ¸¤ò»È¤¦É¬Í×À­¤¬¸º¤ê¤Þ¤¹¡£

`0' ¤Ç»Ï¤Þ¤ëÊ¸»úÎó¤Ï8¿Ê¿ô¤È¤ß¤Ê¤µ¤ì¤Þ¤¹¡£¥Ì¥ë¤¢¤ë¤¤¤Ï°ú¿ô¤¬Ìµ¤¤¾ì¹ç¤Ë¤Ï`0' ¤È¤ß¤Ê¤µ¤ì¤Þ¤¹¡£Á´¤Æ¤Î¼°¤Î·ë²Ì¤ÏÊ¸»úÎó¤È¤Ê¤ê¡¢10¿Ê¿ô¤ÎÉ½¸½¤È¤Ê¤ê¤Þ¤¹¡£¤³¤³¤Ç½ÅÍ×¤Ê¤Î¤Ï¤Ò¤È¤Ä¤Î¥ï¡¼¥É¤Ë¤Ï¼°Ãæ¤ÎÍ×ÁÇ¤ÏÆó¸Ä¤¢¤é¤ï¤ì¤ë¤³¤È¤Ï¤¢¤ê¤Þ¤»¤ó¡£¤¿¤À¤·²òÀÏÍÑ¤Îµ­¹æ¡Ê`&' `|' `<' `>' `(' `)'¡Ë¤Ë·ë¤Ó¤Ä¤¯¼°Ãæ¤ÎÍ×ÁÇ¤ËÎÙÀÜ¤·¤Æ¤¤¤ë¥±¡¼¥¹¤ÏÎã³°¤È¤Ê¤ê¤Þ¤¹¡£¤³¤Î¤è¤¦¤Ê¥±¡¼¥¹¤Ç¤Ï¶õÇò¤Ç°Ï¤ó¤Ç¤ª¤¯¤Ù¤­¤Ç¤¹¡£

¼°¤ÎÃæ¤Ç»È¤¨¤ëÂ¾¤ÎÍ×ÁÇÅª¤Ê¥ª¥Ú¥é¥ó¥É¤È¤·¤Æ¤Ï `{' ¤È `}' ¤Ç°Ï¤Þ¤ì¤¿¥³¥Þ¥ó¥É¤Î¼Â¹Ô¤ª¤è¤Ó `-l file' ·Á¼°¤Ç¤Î¥Õ¥¡¥¤¥ë¤ÎÌä¤¤¹ç¤ï¤»¤¬¤¢¤ê¤Þ¤¹¡£¤³¤³¤Ç`l' ¤Ï¼¡¤Î¤¦¤Á¤Î¤¤¤º¤ì¤«¤Ç¤¹¡£

r	¥æ¡¼¥¶¤¬ÆÉ¤ß¹þ¤ßµö²Ä¤ò¤â¤Ä¾ì¹ç¤Ë¿¿¡¢¤¹¤Ê¤ï¤Á 1 ¤òÊÖ¤·¡¢¤½¤ÎÂ¾¤Î¾ì¹ç¤Ë¤Ïµ¶¡¢¤¹¤Ê¤ï¤Á 0 ¤òÊÖ¤·¤Þ¤¹¡£
w	¥æ¡¼¥¶¤¬½ñ¤­¹þ¤ßµö²Ä¤ò¤â¤Ä¾ì¹ç¤Ë¿¿¤È¤Ê¤ê¤Þ¤¹¡£
x	¥æ¡¼¥¶¤¬¼Â¹Ôµö²Ä¡Ê¤Þ¤¿¤Ï¥Ç¥£¥ì¥¯¥È¥ê¾å¤Î¥µ¡¼¥Áµö²Ä¡Ë¤ò¤â¤Ä¾ì¹ç¤Ë¿¿¤È¤Ê¤ê¤Þ¤¹¡£
e	file ¤¬Â¸ºß¤¹¤ì¤Ð¿¿¤È¤Ê¤ê¤Þ¤¹¡£
o	¥æ¡¼¥¶¤Ï file ¤Î½êÍ­¼Ô¤Ç¤¢¤ì¤Ð¿¿¤È¤Ê¤ê¤Þ¤¹¡£
z	file ¤Î¥µ¥¤¥º¤¬ 0¡Ê¶õ¡Ë¤Ç¤¢¤ì¤Ð¿¿¤È¤Ê¤ê¤Þ¤¹¡£
f	file ¤¬ÄÌ¾ï¤Î¥Õ¥¡¥¤¥ë¡Ê¥Ç¥£¥ì¥¯¥È¥ê¤Ç¤Ï¤Ê¤¤¡Ë¤Ç¤¢¤ì¤Ð¿¿¤È¤Ê¤ê¤Þ¤¹¡£
d	file ¤¬¥Ç¥£¥ì¥¯¥È¥ê¤Ç¤¢¤ì¤Ð¿¿¤È¤Ê¤ê¤Þ¤¹¡£

»ØÄê¤µ¤ì¤¿ file ¤Ï¥³¥Þ¥ó¥É¤ª¤è¤Ó¥Õ¥¡¥¤¥ëÌ¾¤ÎÅ¸³«¤µ¤ì¤¿¤â¤Î¤Ç¼¡¤Ë¥æ¡¼¥¶¤ËÂÐ¤·¤Æ»ØÄê¤µ¤ì¤¿´Ø·¸¤ò»ý¤Ä¤«¤É¤¦¤«¤¬Ä´¤Ù¤é¤ì¤Þ¤¹¡£¥Õ¥¡¥¤¥ë¤¬Â¸ºß¤·¤Ê¤¤¤«¤¢¤ë¤¤¤Ï¥¢¥¯¥»¥¹¤Ç¤­¤Ê¤¤¤ÈÁ´¤Æ¤ÎÌä¤¤¹ç¤ï¤»¤Ïµ¶¤¹¤Ê¤ï¤Á `0' ¤òÊÖ¤·¤Þ¤¹¡£¥³¥Þ¥ó¥É¤Î¼Â¹Ô¤Ë¤Ä¤¤¤Æ¤Ï¤½¤Î¥³¥Þ¥ó¥É¤¬¾õÂÖ `0' ¤ÇÂ¸ºß¤¹¤ì¤Ð¿¿¤Ä¤Þ¤ê `1'¤ò¤½¤¦¤Ç¤Ê¤±¤ì¤Ð¼ºÇÔ¤·¤¿¤È¤¤¤¦°ÕÌ£¤Ç `0' ¤òÊÖ¤·¤Þ¤¹¡£¤³¤ì°Ê¾å¤Î¾Ü¤·¤¤¾õÂÖ¤Ë´Ø¤¹¤ë¾ðÊó¤¬ÆÀ¤¿¤¤¾ì¹ç¤Ë¤Ï¥³¥Þ¥ó¥É¤Ï¼°¤Î³°¤Ç¼Â¹Ô¤µ¤ì¤ë¤Ù¤­¤Ç statusÊÑ¿ô¤òÄ´¤Ù¤Æ¤¯¤À¤µ¤¤¡£

¡ÎÀ©¸æ¤ÎÎ®¤ì¡Ï

¥·¥§¥ë¤Ï¥³¥Þ¥ó¥É¥Õ¥¡¥¤¥ë¡Ê¥·¥§¥ë¥¹¥¯¥ê¥×¥È¡Ë¤ª¤è¤ÓÃ¼Ëö¤«¤é¤ÎÆþÎÏ¡ÊÆÃÊÌ¤Î¥±¡¼¥¹¡¢¤¿¤À¤·Í­¸ú¤Ê»È¤¤¤ß¤Á¤Ç¤¹¡Ë¤ÎÀ©¸æ¤ÎÎ®¤ì¤ò¥³¥ó¥È¥í¡¼¥ë¤¹¤ë¤¤¤¯¤Ä¤«¤Î¥³¥Þ¥ó¥É¤ò»ý¤Ã¤Æ¤¤¤Þ¤¹¡£¤³¤ì¤é¤Î¥³¥Þ¥ó¥É¤ÏÁ´¤Æ¥·¥§¥ë¤ËÂÐ¤·ÆþÎÏ¤òºÆÅÙÆÉ¤ß¹þ¤Þ¤»¤¿¤ê¥¹¥­¥Ã¥×¤µ¤»¤ë¤³¤È¤Ë¤è¤ê¡¢¤Þ¤¿¥³¥Þ¥ó¥É¤Î¤¦¤Á¤Î¤¤¤¯¤Ä¤«¤Î»ÈÍÑ¤ËÀ©¸Â¤ò²Ã¤¨¤ë¤³¤È¤Ë¤è¤Ã¤Æ¡Ê¸½¹Ô¥Ð¡¼¥¸¥ç¥ó¤Ç¤Î¥¤¥ó¥×¥ê¥á¥ó¥Æ¡¼¥·¥ç¥ó¤«¤é¤¯¤ëÀ©Ìó¡Ëµ¡Ç½¤·¤Þ¤¹¡£

foreach, switch ¤½¤·¤Æ while Ê¸¤Ç¤Ï if-then-else ·Á¼°¤Ç¤Î if Ê¸¤ÈÆ±¤¸¤è¤¦¤Ë¥á¥¸¥ã¡¼¡¦¥­¡¼¥ï¡¼¥É¤¬²¼¤ÎÎã¤Ë¼¨¤¹¤è¤¦¤ËÆþÎÏ¹Ô¤Î¤Ê¤«¤Î¤Ò¤È¤Ä¤ÎÃ±°ì¥³¥Þ¥ó¥ÉÆâ¤Ë¤Ê¤±¤ì¤Ð¤Ê¤ê¤Þ¤»¤ó¡£

¤â¤·¤â¥·¥§¥ë¤Ø¤ÎÆþÎÏ¤¬¥·¡¼¥¯ÉÔ²Ä¤Ç¤¢¤Ã¤¿¾ì¹ç¡¢¥·¥§¥ë¤Ï¥ë¡¼¥×¤¬ÆÉ¤ß¼è¤é¤ì¤ë¤È¤¤¤Ä¤âÆþÎÏ¤ò¥Ð¥Ã¥Õ¥¡¥ê¥ó¥°¤·¤³¤ÎÆâÉô¥Ð¥Ã¥Õ¥¡¤ÎÃæ¤ò¥ë¡¼¥×¤¬°Å¼¨¤¹¤ëºÆÆÉ¤ß¼è¤ê¤ò¤ª¤³¤Ê¤¦¤¿¤á¤Ë¥·¡¼¥¯¤·¤Þ¤¹¡£¡Ê¤³¤Î¥á¥«¥Ë¥º¥à¤¬µö¤¹ÈÏ°Ï¤Ç¥·¡¼¥¯ÉÔ²Ä¤ÎÆþÎÏÃæ¤Ç¤â¸åÊý¤Ø¤Î goto ¤¬À®Î©¤·¤Þ¤¹¡£¡Ë

¡ÎÁÈ¤ß¹þ¤ß¥³¥Þ¥ó¥É¡Ï

ÁÈ¤ß¹þ¤ß¥³¥Þ¥ó¥É¤Ï¥·¥§¥ëÆâÉô¤Ç¼Â¹Ô¤µ¤ì¤Þ¤¹¡£ÁÈ¤ß¹þ¤ß¥³¥Þ¥ó¥É¤¬¥Ñ¥¤¥×¥é¥¤¥ó¤Î²áÄø¤ÇÈ¯À¸¤·¤¿¾ì¹ç¡ÊºÇ¸å¤Ç¤¢¤ë¾ì¹ç¤ò½ü¤¤¤Æ¡Ë¤Ë¤Ï¥µ¥Ö¡¦¥·¥§¥ë¤Î¤Ê¤«¤Ç¼Â¹Ô¤µ¤ì¤Þ¤¹¡£

alias 
alias name
alias name wordlist 
ºÇ½é¤Î·Á¼°¤Ï¡¢Á´¤Æ¤ÎÊÌÌ¾¤òÉ½¼¨¤µ¤»¤Þ¤¹¡£¼¡¤Î·Á¼°¤Ï¡¢name ¤ËÂÐ¤¹¤ëÊÌÌ¾¤òÉ½¼¨¤µ¤»¤Þ¤¹¡£ºÇ¸å¤Î·Á¼°¤Ç¤Ï¡¢wordlist ¤òÊÌÌ¾¤ÎÌ¾Á°¤È¤·¤Æ³ä¤êÅö¤Æ¤Æ¤¤¤Þ¤¹¡£wordlist ¤Ï¥³¥Þ¥ó¥É¤È¥Õ¥¡¥¤¥ëÌ¾¤¬ÃÖ´¹¤µ¤ì¤¿¤â¤Î¤Ç¤¹¡£name ¤ò alias ¤¢¤ë¤¤¤Ï unalias ¤¹¤ë¤³¤È¤Ï¤Ç¤­¤Þ¤»¤ó¡£

alloc 
³ÎÊÝ¤µ¤ì¤¿¥À¥¤¥Ê¥ß¥Ã¥¯¡¦¥á¥â¥ê¤ÎÎÌ¤ò¡¢»ÈÍÑ¤µ¤ì¤Æ¤¤¤ë¤â¤Î¤ÈÌ¤»ÈÍÑÊ¬¤ËÊ¬¤±¤ÆÉ½¼¨¤·¤Þ¤¹¡£°ú¿ô¤ò»ØÄê¤¹¤ì¤Ð»ÈÍÑ¤µ¤ì¤Æ¤¤¤ë¤â¤Î¤ÈÌ¤»ÈÍÑÊ¬¤Î¥Ö¥í¥Ã¥¯¤ò¤½¤ì¤¾¤ì¤Î¥µ¥¤¥º¤ÇÉ½¼¨¤·¤Þ¤¹¡£¤½¤ÎÃ±°Ì¤ÏºÇ½é 8 ¤Ç¥¹¥¿¡¼¥È¤·¤½¤ì°Ê¹ß¤ÏÇÜ¤º¤ÄÁý¤¨¤ë¤³¤È¤Ë¤Ê¤ê¤Þ¤¹¡£¤³¤Î¥³¥Þ¥ó¥É¤Î·ë²Ì¤Ï¥·¥¹¥Æ¥à¤Î¥¿¥¤¥×¤Ë¤è¤Ã¤Æ¤½¤Î¥á¥â¥ê¤Î¥¢¥í¥±¡¼¥¿¤¬°ã¤¦¤Î¤Ç¥·¥¹¥Æ¥à¤´¤È¤Ë°Û¤Ê¤Ã¤Æ¤­¤Þ¤¹¡£

bg
bg %job ... 
¸½ºß¤Î¤¢¤ë¤¤¤Ï»ØÄê¤·¤¿¥¸¥ç¥Ö¤ò¥Ð¥Ã¥¯¥°¥é¥¦¥ó¥É¤ËÃÖ¤­¤Þ¤¹¡£¤â¤·¤½¤Î¥¸¥ç¥Ö¤¬»ß¤á¤é¤ì¤Æ¤¤¤¿¾ì¹ç¤ÏºÆ³«¤µ¤»¤Þ¤¹¡£

break 
ºÇ¤â¶á¤¯¤Ë¤¢¤ë foreach ¤¢¤ë¤¤¤Ï while ¥ë¡¼¥×¤Î½ª¤ê¤ò¼¨¤¹ end ¤Ç¼Â¹Ô¤òºÆ³«¤µ¤»¤Þ¤¹¡£¸½ºß¹Ô¤Î»Ä¤ê¤Î¥³¥Þ¥ó¥É¤Ï¼Â¹Ô¤µ¤ì¤Þ¤¹¡£¤³¤Î¤è¤¦¤Ë¤·¤Æ¤¤¤¯¤Ä¤«¤Î¥ì¥Ù¥ë¤Ç¤Î¥Ö¥ì¡¼¥¯¥Ý¥¤¥ó¥È¤¬1¹ÔÃæ¤Ëµ­½Ò¤¹¤ë¤³¤È¤Ë¤è¤ê²ÄÇ½¤Ë¤Ê¤ê¤Þ¤¹¡£

breaksw 
switch ¤«¤é¤Î¥Ö¥ì¡¼¥¯¥Ý¥¤¥ó¥È¤ò¥»¥Ã¥È¤·¤Þ¤¹¡£endsw ¤Î¸å¤«¤éºÆ³«¤·¤Þ¤¹¡£

case label: 
¸å½Ò¤¹¤ë switch Ê¸¤Î¤Ê¤«¤Î¥é¥Ù¥ë¤ò¼¨¤·¤Þ¤¹¡£

cd
cd name 
chdir 
chdir name
¥·¥§¥ë¤Îºî¶È¥Ç¥£¥ì¥¯¥È¥ê¤ò name ¤Ç¼¨¤¹¥Ç¥£¥ì¥¯¥È¥ê¤ËÊÑ¹¹¤·¤Þ¤¹¡£¤³¤Î°ú¿ô¤¬¤Ê¤¤¾ì¹ç¥æ¡¼¥¶¤Î¥Û¡¼¥à¡¦¥Ç¥£¥ì¥¯¥È¥ê¤ËÊÑ¹¹¤·¤Þ¤¹¡£ name ¤Ç»ØÄê¤·¤¿¥Ç¥£¥ì¥¯¥È¥ê¤¬¥«¥ì¥ó¥È¡¦¥Ç¥£¥ì¥¯¥È¥ê¤Î¥µ¥Ö¡¦¥Ç¥£¥ì¥¯¥È¥ê¤ËÂ¸ºß¤·¤Ê¤¤¾ì¹ç¡Ê¤«¤Ä name ¤¬ `/', `./', `../' ¤Ç»Ï¤Þ¤é¤Ê¤¤¾ì¹ç¡Ë¡¢ÊÑ¿ô cdpath ¤Î³ÆÍ×ÁÇ¤¬ name ¤È¤¤¤¦Ì¾Á°¤Î¥µ¥Ö¡¦¥Ç¥£¥ì¥¯¥È¥ê¤ò»ý¤Ã¤Æ¤¤¤Ê¤¤¤«¤¬Ä´¤Ù¤é¤ì¤Þ¤¹¡£¤º¤Ã¤ÈÄ´¤Ù¤Æ¤¤¤Ã¤Æ¡¢ºÇ½ªÅª¤Ë name ¤¬¥·¥§¥ëÊÑ¿ô¤Ç¤½¤ÎÃÍ¤¬ `/' ¤Ç»Ï¤Þ¤ë¤â¤Î¤¬¸«¤Ä¤«¤Ã¤¿¾ì¹ç¤³¤ì¤¬¥Ç¥£¥ì¥¯¥È¥ê¤«¤É¤¦¤«¤¬Ä´¤Ù¤é¤ì¤Þ¤¹¡£

continue
ºÇ¤â¶á¤¯¤Ë¤¢¤ë foreach ¤¢¤ë¤¤¤Ï while ¥ë¡¼¥×¤Î¼Â¹Ô¤ò·ÑÂ³¤µ¤»¤Þ¤¹¡£¸½ºß¹Ô¤Î»Ä¤ê¤Î¥³¥Þ¥ó¥É¤Ï¼Â¹Ô¤µ¤ì¤Þ¤¹¡£

default:
switch Ê¸¤Ç¤Î¥Ç¥Õ¥©¥ë¥È¡Ê¤É¤Î¾ò·ï¤Ë¤â¥Þ¥Ã¥Á¤·¤Ê¤¤¾ì¹ç¤Î½èÍý¡Ë¤Î¥±¡¼¥¹¤Î¥é¥Ù¥ë¤È¤Ê¤ê¤Þ¤¹¡£¥Ç¥Õ¥©¥ë¥È¤ÏÁ´¤Æ¤Î case ¥é¥Ù¥ë¤è¤ê¸å¤Ë¤Ê¤±¤ì¤Ð¤Ê¤ê¤Þ¤»¤ó¡£

dirs
¥Ç¥£¥ì¥¯¥È¥ê¡¦¥¹¥¿¥Ã¥¯¤òÉ½¼¨¤·¤Þ¤¹¡£¥¹¥¿¥Ã¥¯¤ÎºÇ½é¤Î¥Ç¥£¥ì¥¯¥È¥ê¤Ï¥«¥ì¥ó¥È¡¦¥Ç¥£¥ì¥¯¥È¥ê¤Ê¤Î¤Ç¥¹¥¿¥Ã¥¯¤Î°ìÈÖ¾å¤¬º¸¤Ë¤¯¤ë¤³¤È¤Ë¤Ê¤ê¤Þ¤¹¡£

echo wordlist 
echo -n wordlist
¥Ò¥¹¥È¥êÊÑ¿ô¡¢¥Õ¥¡¥¤¥ëÌ¾Å¸³«¤ò¹Ô¤Ê¤Ã¤¿¤¢¤È¤Î°ú¿ô¤òÉ½¼¨¤¹¤ë¡£¥ï¡¼¥É¤Ï¶õÇò¤Ç¶èÀÚ¤é¤ì¡¢-n ¤ò»ØÄê¤·¤Ê¤¤¸Â¤ê¥Ë¥å¡¼¥é¥¤¥ó¤Ç½ª¤ë¥·¥§¥ë¤ÎÉ¸½àÆþÎÏ¤È¤Ê¤ë¡£

else
end 
endif 
endsw 
¸å½Ò¤¹¤ë foreach, if, switch, while Ê¸¤ÎÀâÌÀ¤ò»²¾È¤·¤Æ¤¯¤À¤µ¤¤¡£

eval arg ...
sh(1) ¤Î¾ì¹ç¤ÈÆ±¤¸ÍÍ¤Ë°ú¿ô¤Ï¥·¥§¥ë¤Ø¤ÎÆþÎÏ¤È¤·¤ÆÆÉ¤ß¼è¤é¤ì¤Þ¤¹¡£¤Þ¤¿¡¢·ë²Ì¤È¤·¤Æ¥³¥Þ¥ó¥É¤Ï¥«¥ì¥ó¥È¡¦¥·¥§¥ë¤Î¥³¥ó¥Æ¥­¥¹¥È¡Ê´Ä¶­¡Ë¤Î¤Ê¤«¤Ç¼Â¹Ô¤µ¤ì¤Þ¤¹¡£ÄÌ¾ï¤³¤ì¤Ï¥³¥Þ¥ó¥É¤äÊÑ¿ô¤ÎÃÖ´¹¤Î·ë²Ì¤È¤·¤Æ¥³¥Þ¥ó¥É¤ò¼Â¹Ô¤µ¤»¤ë¤¿¤á¤Ë»ÈÍÑ¤µ¤ì¤Þ¤¹¡£¤È¤¤¤¦¤Î¤Ï²òÀÏ¤¬ÃÖ´¹¤Ë¤µ¤­¤À¤Ã¤Æ¹Ô¤ï¤ì¤ë¤«¤é¤Ç¤¹¡£eval ¤Î»ÈÍÑÎã¤Ë¤Ä¤¤¤Æ¤Ï tset(1) ¤ò»²¾È¤·¤Æ¤¯¤À¤µ¤¤¡£

exec command
»ØÄê¤·¤¿¥³¥Þ¥ó¥É¤¬¥«¥ì¥ó¥È¡¦¥·¥§¥ë¤ËÂå¤ï¤Ã¤Æ¼Â¹Ô¤µ¤ì¤Þ¤¹¡£

exit
exit(expr)
¥·¥§¥ë¤Ï status ÊÑ¿ô¤ÎÃÍ¤òÊÖ¤·¤Æ¡ÊÃ±¤Ë exit ¤È¤·¤¿¾ì¹ç¡Ë½ªÎ»¤·¡¢¤¢¤ë¤¤¤Ï (expr) ¤Ç»ØÄê¤·¤¿¼°¤ÎÃÍ¤òÊÖ¤·¡Ê2ÈÖÌÜ¤Î·Á¼°¡Ë½ªÎ»¤·¤Þ¤¹¡£

fg
fg %job ... 
¥«¥ì¥ó¥È¡¦¥·¥§¥ë¤Þ¤¿¤Ï»ØÄê¤·¤¿¥¸¥ç¥Ö¤ò¥Õ¥©¥¢¡¦¥°¥é¥¦¥ó¥É¤Ë»ý¤Ã¤Æ¤­¤Þ¤¹¡£¥¸¥ç¥Ö¤¬Ää»ß¤·¤Æ¤¤¤¿¾ì¹çºÆ³«¤µ¤ì¤Þ¤¹¡£

foreach name (wordlist) 

	...
end 
name ¤Ç»ØÄê¤¹¤ëÊÑ¿ô¤Ë¡¢wordlist ¤Î¤½¤ì¤¾¤ì¤ÎÍ×ÁÇ¤ò¥»¥Ã¥È¤µ¤»¡¢¤³¤Î¥³¥Þ¥ó¥É¤È end ¤Î´Ö¤Ë¤¢¤ë°ìÏ¢¤Î¥³¥Þ¥ó¥É¤¬¼Â¹Ô¤µ¤ì¤Þ¤¹¡£
¡Êforeach ¤È end ¤ÏÊÌ¤Î¹Ô¤Ë¤¢¤ê¡¢¤Þ¤¿¤É¤Á¤é¤âÃ±ÆÈ¤Ç¸½¤ì¤Æ¤¤¤Ê¤±¤ì¤Ð¤Ê¤ê¤Þ¤»¤ó¡£¡ËÁÈ¤ß¹þ¤ß¥³¥Þ¥ó¥É continue ¤È break ¤Ï¥ë¡¼¥×¤ò¾ò·ïÀ®Î©°ÊÁ°¤Ë·ÑÂ³ (continue) ¤¢¤ë¤¤¤Ï¡¢(break) ¤µ¤»¤ë¤¿¤á¤Ë»È¤ï¤ì¤Þ¤¹¡£¤³¤ì¤é¤Î¥³¥Þ¥ó¥É¤¬Ã¼Ëö¤«¤éÆÉ¤ß¹þ¤Þ¤ì¤¿¤È¤­¡¢¥ë¡¼¥×Æâ¤ÎÊ¸¤¬¼Â¹Ô¤µ¤ì¤ëÁ°¤Ë¤½¤Î¥ë¡¼¥×¤Ï¤Ò¤È¤Þ¤ºÆÉ¤ß¼è¤é¤ì `?' ¤Î¥×¥í¥ó¥×¥È¤òÊÖ¤·¤Æ¤­¤Þ¤¹¡£¥ë¡¼¥×Æâ¤Ë¥¿¥¤¥Ô¥ó¥°¤Î¥ß¥¹¤¬¤¢¤Ã¤¿¾ì¹ç¤½¤Î¥ß¥¹¤òÄûÀµ¤Ç¤­¤Þ¤¹¡£

glob wordlist 
echo ¤Ë»÷¤Æ¤¤¤Þ¤¹¤¬¡¢¥¨¥¹¥±¡¼¥×Ê¸»ú `\' ¤ÏÇ§¤á¤é¤ì¤Þ¤»¤ó¡£¤Þ¤¿¥ï¡¼¥É¤Ï½ÐÎÏ¤Ç¤Ï¥Ì¥ëÊ¸»ú¤Ç¶èÀÚ¤é¤ì¤Þ¤¹¡£¥·¥§¥ë¤Ë¥Õ¥¡¥¤¥ëÌ¾¤ÎÅ¸³«¤ò¤µ¤»¤Æ¥ï¡¼¥É¤Î¥ê¥¹¥È¤ò½ÐÎÏ¤µ¤»¤ë¥·¥§¥ë¡¦¥×¥í¥°¥é¥à¤ËÍ­ÍÑ¤Ç¤¹¡£

goto word 
»ØÄê¤·¤¿ word ¤Ï¥³¥Þ¥ó¥É¤È¥Õ¥¡¥¤¥ëÌ¾¤ÎÅ¸³«¤Ç `label' ¤Î·Á¼°¤ÎÊ¸»úÎó¤ò¤Ä¤¯¤ê¤Þ¤¹¡£¥·¥§¥ë¤Ï²ÄÇ½¤Ê¸Â¤êÆþÎÏ¤ò¥ê¥ï¥¤¥ó¥É¤·¡¢¼¡¤ËÂ¿Ê¬¶õÇò¤«¥¿¥Ö¤¬Àè¹Ô¤·¤Æ¤¤¤ë¤È»×¤ï¤ì¤Þ¤¹¤¬ `label' ¤Î·Á¼°¤Î¹Ô¤ò¥µ¡¼¥Á¤·¤Þ¤¹¡£¼Â¹Ô¤Ï¥µ¡¼¥Á¤·¤Æ¸«¤Ä¤«¤Ã¤¿¹Ô¤«¤éÂ³¤±¤é¤ì¤Þ¤¹¡£

hashstat
¥³¥Þ¥ó¥É¤Î¥í¥±¡¼¥È¤È exec ¤Î²óÈò¤Ë¤É¤ì¤¯¤é¤¤ÆâÉô¤Î¥Ï¥Ã¥·¥å¡¦¥Æ¡¼¥Ö¥ë¤¬Í­¸ú¤ËÆ¯¤¤¤Æ¤¤¤ë¤«¤ÎÅý·×¤òÉ½¼¨¤·¤Þ¤¹¡£¥Ï¥Ã¥·¥å´Ø¿ô¤¬¥Ò¥Ã¥È¤Î²ÄÇ½À­¤ò¤·¤á¤¹¡¢¤¢¤ë¤¤¤Ï `/' ¤Ç»Ï¤Þ¤é¤Ê¤¤ path Ãæ¤Î¤½¤ì¤¾¤ì¤ÎÍ×ÁÇ¤ËÂÐ¤·¤Æexec ¤¬»î¤ß¤é¤ì¤Þ¤¹¡£

history 
history n 
history -r n
history -h n
¥¤¥Ù¥ó¥È¤Î¥Ò¥¹¥È¥ê¡¦¥ê¥¹¥È¤¬É½¼¨¤µ¤ì¤Þ¤¹¡£ n ¤¬»ØÄê¤µ¤ì¤Æ¤¤¤ë¾ì¹ç¡¢Ä¾Á°¤Î n ¸Ä¤Î¥¤¥Ù¥ó¥È¤¬É½¼¨¤µ¤ì¤Þ¤¹¡£-r ¥ª¥×¥·¥ç¥ó¤ÏÉ½¼¨¤Î½çÈÖ¤òµÕÅ¾¤µ¤»¡¢Ä¾Á°¤«¤é¤Ç¤Ï¤Ê¤¯¸Å¤¤¤â¤Î¤«¤é½çÈÖ¤ËÉ½¼¨¤µ¤»¤Þ¤¹¡£-h ¥ª¥×¥·¥ç¥ó¤Ï¥Ò¥¹¥È¥ê¡¦¥ê¥¹¥È¤òÀèÆ¬¤Î½çÈÖ¤ò¼¨¤¹¿ô»ú¤Ê¤·¤ËÉ½¼¨¤µ¤»¤Þ¤¹¡£¤³¤ì¤ò¡¢source ¤È¤·¤Æ»È¤¦¤Î¤ËÅ¬¤·¤¿¥Õ¥¡¥¤¥ë¤ò¤Ä¤¯¤ë¤Î¤ËÍøÍÑ¤·¤Þ¤¹¡£

if (expr) command 
»ØÄê¤·¤¿¼°¤ÎÃÍ¤¬¿¿¤ËÉ¾²Á¤µ¤ì¤¿¤È¤­°ú¿ôÉÕ¤­¤Î¥·¥ó¥°¥ë¡¦¥³¥Þ¥ó¥É¤¬¼Â¹Ô¤µ¤ì¤Þ¤¹¡£¥³¥Þ¥ó¥É¤ÎÊÑ¿ôÃÖ´¹¤ÏÁá¤¤¥¿¥¤¥ß¥ó¥°¤Ç¹Ô¤ï¤ì¡¢¤³¤Î if ¥³¥Þ¥ó¥É¤Î»Ä¤ê¤ÎÉôÊ¬¤ËÂÐ¤¹¤ëÃÖ´¹¤ÈÆ±»þ¤Ë¹Ô¤ï¤ì¤Þ¤¹¡£¥³¥Þ¥ó¥É¤ÏÃ±°ì¥³¥Þ¥ó¥É¤Ç¤Ê¤±¤ì¤Ð¤Ê¤é¤º¡¢¥Ñ¥¤¥×¥é¥¤¥ó¤ä¥³¥Þ¥ó¥É¡¦¥ê¥¹¥È¤ä¤«¤Ã¤³¤Ç°Ï¤Þ¤ì¤¿¥³¥Þ¥ó¥É¡¦¥ê¥¹¥È¤Ê¤É¤Ç¤¢¤Ã¤Æ¤Ï¤¤¤±¤Þ¤»¤ó¡£ÆþÎÏ/½ÐÎÏ¥ê¥À¥¤¥ì¥¯¥È¤Ï¤¿¤È¤¨expr ¤¬µ¶¤Ç¡¢¥³¥Þ¥ó¥É¤¬¼Â¹Ô¤µ¤ì¤Ê¤¯¤Æ¤â¼Â¹Ô¤µ¤ì¤Þ¤¹¡£¡Ê¤³¤ì¤Ï¥Ð¥°¤Ç¤¹¡£¡Ë

if (expr) then
           ...
else if (expr2) 
           ...
else
           ...

endif 
»ØÄê¤·¤¿ expr¡Ê¼°¡Ë¤ÎÃÍ¤¬¿¿¤Ç¤¢¤ì¤ÐºÇ½é¤Î else ¤Þ¤Ç¤Î¥³¥Þ¥ó¥É¤¬¼Â¹Ô¤µ¤ì¡¢¤½¤¦¤Ç¤Ê¤±¤ì¤Ð expr2¡Ê¼°2¡Ë¤ÎÃÍ¤¬¿¿¤Ç¤¢¤ì¤Ð2ÈÖÌÜ¤Î else ¤Þ¤Ç¤Î¥³¥Þ¥ó¥É¤¬¼Â¹Ô¤µ¤ì¤Þ¤¹¡£else-if ¤ÎÂÐ¤Ï¤¤¤¯¤Ä¤Ç¤â¥»¥Ã¥È¤Ç¤­¤Þ¤¹¤¬¡¢1¸Ä¤Î endif ¤¬É¬Í×¤Ç¤¹¡£else Éô¤Ï¤Ê¤¯¤Æ¤â¹½¤¤¤Þ¤»¤ó¡£¡Êelse ¤È endif ¤ÏÆþÎÏ¹Ô¤ÎºÇ½é¤«¤é»Ï¤á¤Ê¤±¤ì¤Ð¤¤¤±¤Þ¤»¤ó¡£¤Þ¤¿ endif ¤Ï1¹Ô¤ÎÃæ¤ÇÃ±ÆÈ¤Ë¤Ê¤Ã¤Æ¤¤¤ë¤«¡¢¤¢¤ë¤¤¤Ï else ¤Î¤¢¤È¤Ë¤Ê¤±¤ì¤Ð¤¤¤±¤Þ¤»¤ó¡£¡Ë

jobs
jobs -l 
³èÆ°¾õÂÖ¤Î¥¸¥ç¥Ö¤Î¥ê¥¹¥È¤òÉ½¼¨¤·¤Þ¤¹¡£-l ¤Î¥ª¥×¥·¥ç¥ó¤ÏÄÌ¾ïÆÀ¤é¤ì¤ë    ¾ðÊó¤Ë²Ã¤¨¤Æ¥×¥í¥»¥¹ id ¤òÄÉ²Ã¤·¤Þ¤¹¡£

kill %job 
kill -sig %job ...
kill pid
kill -sig pid ... 
kill -l 
TERM¡Ê½ªÎ»¡Ë¥·¥°¥Ê¥ë¤«¡¢»ØÄê¤µ¤ì¤¿¥·¥°¥Ê¥ë¤ò¥¸¥ç¥Ö¤ä¥×¥í¥»¥¹¤ËÁ÷¤ê¤Þ¤¹¡£¥·¥°¥Ê¥ë¤Ï¿ô»ú¤â¤·¤¯¤ÏÌ¾Á°¡Ê<signal.h> ¤ËÍÑ°Õ¤·¤Æ¤¢¤ê¤Þ¤¹¡£ÀÜÆ¬»Ò ``SIG'' ¤Ï¼è¤ê½ü¤¤¤Æ¤¢¤ê¤Þ¤¹¡£) ¤ÇÍ¿¤¨¤Þ¤¹¡£¥·¥°¥Ê¥ëÌ¾¤Î¥ê¥¹¥È¤Ï ``kill -l'' ¤ÇÆÀ¤é¤ì¤Þ¤¹¡£¤³¤ì¤é¤Ë¤Ï¥Ç¥Õ¥©¥ë¥È¤ËÀßÄê¤µ¤ì¤Æ¤¤¤Ê¤¤¤Î¤Ç¡¢Ã±¤Ë `kill' ¤À¤±¤Ç¤Ï¥«¥ì¥ó¥È¡¦¥¸¥ç¥Ö¤Ø¥·¥°¥Ê¥ë¤òÁ÷¤ê¤Þ¤»¤ó¡£Á÷¤é¤ì¤¿¥·¥°¥Ê¥ë¤¬ TERM¡Ê½ªÎ»¡Ë¡¢¤¢¤ë¤¤¤Ï HUP¡Ê¥Ï¥ó¥°¥¢¥Ã¥×¡Ë¤Î¾ì¹ç¤Ï¡¢¤Þ¤¿ CONT¡Ê·ÑÂ³¡Ë¥·¥°¥Ê¥ë¤¬Á÷¤é¤ì¤Þ¤¹¡£

limit 
limit resource
limit resource maximum-use
limit -h
limit -h resource 
limit -h resource maximum-use 
»ØÄê¤¹¤ë resource ¤Î¥«¥ì¥ó¥È¡¦¥×¥í¥»¥¹¤äÂ¾¤Î¥×¥í¥»¥¹¤Ë¤è¤ë¥ê¥½¡¼¥¹¤Î¾ÃÈñÎÌ¤¬¡¢¤½¤ì¤¾¤ìÃ±ÆÈ¤Ç muximum-use ¤ò±Û¤¨¤Ê¤¤ÍÍ¤ËÀ©¸Â¤·¤Þ¤¹¡£
maximum-use ¤¬Í¿¤¨¤é¤ì¤Æ¤¤¤Ê¤±¤ì¤Ð¡¢¸½ºß¤Î¾ÃÈñ¤ÎÀ©¸ÂÃÍ¤òÉ½¼¨¤·¤Þ¤¹¡£
resource ¤¬»ØÄê¤µ¤ì¤Æ¤¤¤Ê¤±¤ì¤Ð¡¢Á´¤Æ¤ÎÀ©¸ÂÃÍ¤òÉ½¼¨¤·¤Þ¤¹¡£-h ¥Õ¥é¥°¤¬¤¿¤Ã¤Æ¤¤¤ë¤È¤­¸½ºßÀßÄê¤µ¤ì¤Æ¤¤¤ëÀ©¸ÂÃÍ¤ÎÂå¤ê¤Ë¡¢¥Ï¡¼¥É¾å¤ÎÀ©¸Â¤¬¼¨¤µ¤ì¤Þ¤¹¡£¤Þ¤¿¸½ºß¤ÎÀ©¸ÂÃÍ¤Î¾å¸Â¤Ï¥Ï¡¼¥É¾å¤ÎÀ©¸Â¤Ë¤è¤Ã¤Æ·èÄê¤µ¤ì¤Þ¤¹¡£¥¹¡¼¥Ñ¡¦¥æ¡¼¥¶¤Î¤ß¤¬¥Ï¡¼¥É¾å¤ÎÀ©¸ÂÃÍ¤òÄì¾å¤²¤¹¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹¤¬¡¢¥æ¡¼¥¶¤Ç¤â¸½ºß¤ÎÀ©¸ÂÃÍ¤ò²¼¤²¤ë¤³¤È¤ä¡¢µö¤µ¤ì¤¿ÈÏ°ÏÆâ¤ÇÄì¾å¤²¤¹¤ë¤³¤È¤Ï¤Ç¤­¤Þ¤¹¡£        

À©¸æ²ÄÇ½¤Ê¥ê¥½¡¼¥¹¤Ï¼¡¤Ëµó¤²¤ë¤â¤Î¤Ç¤¹¡£cputime¡Ê¤Ò¤È¤Ä¤Î¥×¥í¥»¥¹¤Ë    Í¿¤¨¤é¤ì¤ë cpu-seconds ¤ÎºÇÂçÃÍ¡Ë¡¢filesize¡ÊÃ±°ì¤Î¥Õ¥¡¥¤¥ë¤È¤·¤ÆºîÀ®¤Ç¤­¤ë¥µ¥¤¥º¤ÎºÇÂçÃÍ¡Ë¡¢datasize¡Ê¥×¥í¥°¥é¥à¤Î¥Æ¥­¥¹¥ÈÉô¤òÄ¶¤¨¤Ædata+stack ÎÎ°è¤¬ sbrk(2) ¤ò»È¤Ã¤Æ¡¢³ÈÄ¥¤¹¤ëºÇÂçÃÍ¡Ë¡¢stacksize¡Ê¼«Æ°Åª¤Ë³ÈÄ¥¤µ¤ì¤ë¥¹¥¿¥Ã¥¯ÎÎ°è¤Î¥µ¥¤¥º¤ÎºÇÂçÃÍ¡Ë¡¢¤½¤·¤Æ coredumpsize¡ÊºîÀ®¤µ¤ì¤ëºÇ¤âÂç¤­¤Ê¥³¥¢¡¦¥À¥ó¥×¤Î¥µ¥¤¥º¡Ë¤Ç¤¹¡£

maximum-use ¤ÏÉâÆ°¾®¿ôÅÀ¤¢¤ë¤¤¤ÏÀ°¿ôÃÍ¤ËÃ±°Ì¤òÉÕ¤±¤ÆÍ¿¤¨¤Þ¤¹¡£cputime °Ê³°¤Î resource ¤ËÂÐ¤¹¤ë¥Ç¥Õ¥©¥ë¥È¤ÎÃ±°Ì¤Ï `k' ¤¢¤ë¤¤¤Ï¡¢`kilobytes'¡Ê1024¥Ð¥¤¥È¡Ë¤ÇÍ¿¤¨¤é¤ì¤Þ¤¹¡£Ã±°Ì¤È¤·¤Æ `m' ¤¢¤ë¤¤¤Ï¡¢`megabytes' ¤ò»È¤¦¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£cputime ¤Ë¤Ä¤¤¤Æ¤Î¥Ç¥Õ¥©¥ë¥È¤ÎÃ±°Ì¤Ï `seconds' ¤Ç¤¹¤¬¡¢Ê¬Ã±°Ì¤È¤·¤Æ `m' ¡¢»þ´ÖÃ±°Ì¤Ç `h' ¡¢¤¢¤ë¤¤¤Ï¡¢`mm:ss' ·Á¼°¤ÇÊ¬¤ÈÉÃ¤Ë¤è¤ë»ØÄê¤â²ÄÇ½¤Ç¤¹¡£

¥ê¥½¡¼¥¹Ì¾¤ÈÃ±°Ì¤ò»ØÄê¤¹¤ëºÝ¡¢Ì¾Á°¤Î¥×¥ì¥Õ¥£¥Ã¥¯¥¹¤òÍ¿¤¨¤Æ¤ä¤ì¤Ð¡¢¤½¤ì¤ÇÆÃÄê¤Ç¤­¤ì¤Ð¤½¤ì¤Ç¤â½½Ê¬¤Ç¤¹¡£

login 
¥í¥°¥¤¥ó¡¦¥·¥§¥ë¤ò½ªÎ»¤·¤Þ¤¹¡£Æ±»þ¤Ë¡¢/bin/login ¤Î¥¤¥ó¥¹¥¿¥ó¥¹¤ò¸Æ¤Ó½Ð¤·¤Þ¤¹¡£¤³¤ì¤Ï¥í¥°¥ª¥Õ¤Î°ìÊýË¡¤Ç sh(1) ¤È¤Î¥³¥ó¥Ñ¥Á¥Ó¥ê¥Æ¥£¤Î¤Ò¤È¤Ä¤Ç¤¹¡£

logout
¥í¥°¥¤¥ó¡¦¥·¥§¥ë¤ò½ªÎ»¤·¤Þ¤¹¡£ignoreeof ¤¬¥»¥Ã¥È¤µ¤ì¤Æ¤¤¤ë¾ì¹ç»ÈÍÑ¤»¤Í¤Ð¤Ê¤ê¤Þ¤»¤ó¡£

nice
nice +number
nice command
nice +number command
ºÇ½é¤Î·Á¤Ï¤³¤Î¥·¥§¥ë¤ËÂÐ¤¹¤ë¥¹¥±¥¸¥å¡¼¥ê¥ó¥°¤Î¥×¥é¥¤¥ª¥ê¥Æ¥£¤ÎÃÍ¤ò 4¤Ë¥»¥Ã¥È¤·¤Þ¤¹¡£¼¡¤Î·Á¤Ï¥×¥é¥¤¥ª¥ê¥Æ¥£ÃÍ¤ò number ¤Ç»ØÄê¤·¤Æ¤¤¤Þ¤¹¡£¥×¥é¥¤¥ª¥ê¥Æ¥£ÃÍ¤¬¹â¤±¤ì¤Ð¤½¤ì¤À¤±¥×¥í¥»¥¹¤ÎÍ¥ÀèÅÙ¤¬Äã¤¯¡¢¼Â¹ÔÂ®ÅÙ¤¬ÃÙ¤¯¤Ê¤ê¤Þ¤¹¡£ºÇ¸å¤Î¤Õ¤¿¤Ä¤Î·Á¤Ï¡¢Á°¼Ô¤Ï¥³¥Þ¥ó¥É¤ò¥×¥é¥¤¥ª¥ê¥Æ¥£ÃÍ 4¤Ç¼Â¹Ô¤µ¤»¡¢¸å¼Ô¤Ï»ØÄê¤·¤¿ÃÍ¤Ç¼Â¹Ô¤µ¤»¤Þ¤¹¡£number ¤¬Âç¤­¤¯¤Ê¤ë¤Ë¤·¤¿¤¬¤Ã¤Æ¡¢¥×¥í¥»¥¹¤Ë³ä¤êÅö¤Æ¤é¤ì¤ë cpu ¤Ï¾¯¤Ê¤¯¤Ê¤ê¤Þ¤¹¡£¥¹¡¼¥Ñ¡¦¥æ¡¼¥¶¤Ï¡¢`nice-number ...' ¤È¤·¤Æ¡¢Éé¤Î¥×¥é¥¤¥ª¥ê¥Æ¥£¤ò»È¤¦¤³¤È¤â¤Ç¤­¤Þ¤¹¡£¥³¥Þ¥ó¥É¤Ï¡¢¾ï¤Ë¥µ¥Ö¡¦¥·¥§¥ëÆâ¤Ç¼Â¹Ô¤µ¤ì¡¢¥³¥Þ¥ó¥É¤ËÃ±½ã¤Ê ifÊ¸¤òÃÖ¤¤¤Æ¡¢À©¸Â¤òÀß¤±¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£

nohup 
nohup command 
¾å¤Î·Á¤Ï¥·¥§¥ë¡¦¥¹¥¯¥ê¥×¥ÈÆâ¤Ç»È¤¤¡¢HUP ¥·¥°¥Ê¥ë¤òÈ¯À¸¤µ¤»¤Þ¤¹¤¬¡¢¥¹¥¯¥ê¥×¥È¤Î»Ä¤ê¤ÎÉôÊ¬¤ËÂÐ¤·¤Æ¤Ï¤³¤ì¤òÌµ»ë¤µ¤»¤Þ¤¹¡£²¼¤Î·Á¤Ï»ØÄê¤·¤¿¥³¥Þ¥ó¥É command ¤ò HUP ¤òÌµ»ë¤·¤Æ¡¢¼Â¹Ô¤µ¤»¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£`&' ¤Ç³«»Ï¤·¤¿¥×¥í¥»¥¹¤Ï»ö¼Â¾å¡¢nohup »ØÄê¤·¤¿¤Î¤ÈÆ±¤¸¤³¤È¤Ê¤ê¤Þ¤¹¡£

notify
notify %job ... 
¥«¥ì¥ó¥È¥¸¥ç¥Ö¤Þ¤¿¤Ï»ØÄê¤·¤¿¥¸¥ç¥Ö¤Î¾õÂÖ¤¬ÊÑ¤ï¤Ã¤¿¤È¤­¤Ë¡¢¥·¥§¥ë¤¬¥æ¡¼¥¶¤Ë¤½¤Î¤³¤È¤òÈóÆ±´üÅª¤ËÃÎ¤é¤»¤ëÍÍ¤Ë¤·¤Þ¤¹¡£ÄÌ¾ï¤½¤ÎÄÌÃÎ¤Ï¥×¥í¥ó¥×¥È¤ÎÁ°¤ËÉ½¼¨¤µ¤ì¤Þ¤¹¡£¥·¥§¥ëÊÑ¿ô notify ¤¬¥»¥Ã¥È¤µ¤ì¤Æ¤¤¤ì¤Ð¡¢ÆÃ¤Ë»ØÄê¤Ï¤¤¤ê¤Þ¤»¤ó¡£

onintr
onintr -
onintr label
¥·¥§¥ë¤ËÂÐ¤¹¤ë³ä¤ê¹þ¤ß¤òÀ©¸æ¤·¤Þ¤¹¡£ºÇ½é¤Î·Á¼°¤Ç¤Ï¡¢onintr ¤¬¥·¥§¥ë¤Î³ä¤ê¹þ¤ß»þ¤ÎÆ°ºî¤ò¾ÊÎ¬»þ¤Î¤â¤Î¤ËÌá¤·¤Þ¤¹¡£¡Ê¥·¥§¥ë¤Ï¥·¥§¥ë¡¦¥¹¥¯¥ê¥×¥È¤ò½ªÎ»¤·¡¢Ã¼Ëö¤ÎÆþÎÏ¥ì¥Ù¥ë¤ËÉüµ¢¤·¤Þ¤¹¡Ë¡£2ÈÖÌÜ¤Î·Á¼°¤Î¤è¤¦¤Ë¡¢`-' ¤Î°ú¿ô¤òÉÕ¤±¤ë¤È¡¢Á´¤Æ¤Î³ä¤ê¹þ¤ß¤òÌµ»ë¤·¤Þ¤¹¡£ºÇ¸å¤Î·Á¼°¤Ï¡¢³ä¤ê¹þ¤ß¤¬È¯À¸¤¹¤ë¤«¡¢¤¢¤ë¤¤¤Ï³ä¤ê¹þ¤ß¤Î¤¿¤á¤Ë»Ò¥×¥í¥»¥¹¤¬½ªÎ»¤·¤¿»þ¤Ë¡¢¥·¥§¥ë¤Ï `goto label' ¤ò¼Â¹Ô¤·¤Þ¤¹¡£¤É¤Î¾ì¹ç¤Ë¤â¡¢¥·¥§¥ë¤¬¥Ç¥¿¥Ã¥Á¤µ¤ì¤¿¾õÂÖ¤Ç¡¢³ä¤ê¹þ¤ß¤¬Ìµ»ë¤µ¤ì¤ÆÆ°¤¤¤Æ¤¤¤ë¾ì¹ç¤Ë¤Ï¡¢¾å¤Î onintr ¤Î¤É¤Î·Á¼°¤â°ÕÌ£¤ò»ý¤¿¤º¡¢¥·¥§¥ë¤È¸Æ¤Ó½Ð¤µ¤ì¤¿¥³¥Þ¥ó¥É¤Ï³ä¤ê¹þ¤ß¤òÌµ»ë¤·Â³¤±¤Þ¤¹¡£

popd
popd +n 
¥Ç¥£¥ì¥¯¥È¥ê¡¦¥¹¥¿¥Ã¥¯¤ò¥Ý¥Ã¥×¤µ¤»¡¢¿·¤¿¤Ë°ìÈÖ¾å¤Ë¤Ê¤Ã¤¿¥Ç¥£¥ì¥¯¥È¥ê¤ò¸½ºß¤Î¥Ç¥£¥ì¥¯¥È¥ê¤È¤·¤Þ¤¹¡£°ú¿ô `+n' ¤Ë¤è¤Ã¤Æ¡¢¥¹¥¿¥Ã¥¯Ãæ¤Î n ÈÖÌÜ¤Î¥¨¥ó¥È¥ê¤òÇË´þ¤·¤Þ¤¹¡£¥Ç¥£¥ì¥¯¥È¥ê¡¦¥¹¥¿¥Ã¥¯¤ÎÍ×ÁÇ¤Ï¡¢°ìÈÖ¾å¤ò 0 ¤È¤·¤Æ¥Ê¥ó¥Ð¥ê¥ó¥°¤µ¤ì¤Æ¤¤¤Þ¤¹¡£

pushd 
pushd name
pushd +n
°ú¿ô¤Ê¤·¤Î·Á¤Ç¤Ï¡¢¥Ç¥£¥ì¥¯¥È¥ê¡¦¥¹¥¿¥Ã¥¯¤Î1ÈÖ¾å¤È2ÈÖÌÜ¤òÆþ¤ì´¹¤¨¤Þ¤¹¡£name °ú¿ô¤ÎÉÕ¤¤¤¿ pushd ¤Ï¡¢¿·¤·¤¤¥Ç¥£¥ì¥¯¥È¥ê name ¤Ë°ÜÆ°¤·¡¢¸½ºß¤Î¥ï¡¼¥­¥ó¥°¡¦¥Ç¥£¥ì¥¯¥È¥ê¡Êºî¶È¥Ç¥£¥ì¥¯¥È¥ê¡Ë¤Ï¥Ç¥£¥ì¥¯¥È¥ê¡¦¥¹¥¿¥Ã¥¯¤Ë push ¤µ¤ì¤Þ¤¹¡£+n ¤Î°ú¿ô¤¢¤¿¤¨¤ë¤È¡¢n ÈÖÌÜ¤Î¥Ç¥£¥ì¥¯¥È¥ê¡¦¥¹¥¿¥Ã¥¯¤Î¥¨¥ó¥È¥ê¤ò°ìÈÖ¾å¤Ë¤·¡¢¤½¤³¤Ø°ÜÆ°¤·¤Þ¤¹¡£¥Ç¥£¥ì¥¯¥È¥ê¡¦¥¹¥¿¥Ã¥¯¤Î³Æ¡¹¤Ï°ìÈÖ¾å¤ò 0 ¤Ë¤·¤Æ¥Ê¥ó¥Ð¥ê¥ó¥°¤µ¤ì¤Æ¤¤¤Þ¤¹¡£

rehash
path ÊÑ¿ô¤ÎÃæ¤Î¥Ç¥£¥ì¥¯¥È¥ê¤Î¥Ï¥Ã¥·¥å¥Æ¡¼¥Ö¥ë¤òºÆ·×»»¤µ¤»¤Þ¤¹¡£¥í¥°¥¤¥óÃæ¤Ë¼Â¹Ô²ÄÇ½¥Ç¥£¥ì¥¯¥È¥ê¤Ë¿·¤·¤¤¥³¥Þ¥ó¥É¤¬ÄÉ²Ã¤µ¤ì¤¿»þ¤ËÉ¬Í×¤Ë¤Ê¤ê¤Þ¤¹¡£¤³¤ì¤ÏÍøÍÑ¼Ô¼«¿È¤Î¥Ç¥£¥ì¥¯¥È¥ê¤Ë¥³¥Þ¥ó¥É¤òÄÉ²Ã¤·¤¿»þ¡¢¤â¤·¤¯¤Ï¥·¥¹¥Æ¥à¥×¥í¥°¥é¥à¤¬¥·¥¹¥Æ¥à¥Ç¥£¥ì¥¯¥È¥ê¤Î¤Ò¤È¤Ä¤ËÊÑ¹¹¤ò²Ã¤¨¤¿»þ¤Ë¸Â¤Ã¤ÆÉ¬Í×¤Ë¤Ê¤ê¤Þ¤¹¡£

repeat count command
»ØÄê¤·¤¿¥³¥Þ¥ó¥É¤ò count ¤Î²ó¿ô¤À¤±¼Â¹Ô¤·¤Þ¤¹¡£¡Ê°ÊÁ°½Ð¤Æ¤­¤¿°ì¹Ô¤Î¤Ê¤«¤Ë¤¢¤ë if Ê¸¤Ç¤Î command ¤ÎÀ©¸Â¤¬¤¢¤ê¤Þ¤¹¡£¡Ë¤¿¤È¤¨¡¢count ¤¬ 0¤Ç¤¢¤Ã¤Æ¤â¡¢ÆþÎÏ/½ÐÎÏ¥ê¥À¥¤¥ì¥¯¥·¥ç¥ó¤Ï¡¢°ì²ó¤À¤±¼Â¹Ô¤µ¤ì¤Þ¤¹¡£

set 
set name
set name=word 
set name[index]=word
set name=(wordlist) 
1ÈÖÌÜ¤Î·Á¼°¤Ï¡¢Á´¤Æ¤Î¥·¥§¥ëÊÑ¿ô¤ÎÃÍ¤òÉ½¼¨¤µ¤»¤Þ¤¹¡£ÊÑ¿ô¤ÎÃÍ¤¬¡¢¤Ò¤È¤Ä¤Î¥ï¡¼¥É¤Ç¤Ê¤¤¾ì¹ç¡¢¤«¤Ã¤³¤Ç¤¯¤¯¤é¤ì¤¿¥ï¡¼¥É¥ê¥¹¥È¤òÉ½¼¨¤·¤Þ¤¹¡£2ÈÖÌÜ¤Î·Á¼°¤Ç¤Ï¡¢name ¤Ç»ØÄê¤·¤¿¤â¤Î¤ò¥Ì¥ëÊ¸»úÎó¤Ë¤·¤Þ¤¹¡£3ÈÖÌÜ¤Ï¡¢name ¤Ç»ØÄê¤·¤¿ÊÑ¿ô¤òÃ±°ì¤Î¥ï¡¼¥É¤Ë¥»¥Ã¥È¤·¤Þ¤¹¡£4ÈÖÌÜ¤Î·Á¼°¤Ç¤Ï¡¢name ¤Ç»ØÄê¤·¤¿ÊÑ¿ô¤Î index ÈÖÌÜ¤ÎÍ×ÁÇ¤ò¥ï¡¼¥É¤Ë¥»¥Ã¥È¤µ¤»¤Þ¤¹¡£¤³¤ÎÍ×ÁÇ¤Ï¡¢¤¹¤Ç¤ËÂ¸ºß¤·¤Æ¤¤¤Ê¤±¤ì¤Ð¤Ê¤ê¤Þ¤»¤ó¡£ºÇ¸å¤Ï¡¢name ¤ÎÊÑ¿ô¤ò¡¢wordlist ¤Ç»ØÄê¤·¤¿¥ï¡¼¥É¤Ë¥»¥Ã¥È¤µ¤»¤Þ¤¹¡£Á´¤Æ¤Î·Á¼°¤Ë¤ª¤¤¤Æ¡¢ÃÍ¤Ï¥³¥Þ¥ó¥É¤È¥Õ¥¡¥¤¥ëÌ¾¤ÎÅ¸³«¤µ¤ì¤¿¤â¤Î¤Ë¤Ê¤ê¤Þ¤¹¡£

¤³¤ì¤é¤Î°ú¿ô¤Ï¡¢¤Ò¤È¤Ä¤Î set ¥³¥Þ¥ó¥É¤Ë¤ª¤¤¤Æ¡¢¥Þ¥ë¥Á¥×¥ë¤ÊÃÍ¤ò¥»¥Ã¥È¤¹¤ë¤¿¤á¤Ë¡¢·«¤êÊÖ¤µ¤ì¤ë¤³¤È¤¬¤¢¤ê¤Þ¤¹¡£Ã¢¤·¡¢ÊÑ¿ô¤ÎÅ¸³«¤Ï¡¢¥»¥Ã¥È¤¬µ¯¤³¤ëÁ°¤Ë¡¢Á´¤Æ¤Î°ú¿ô¤Ë¤¿¤¤¤·¤Æ¤ª¤³¤Ê¤ï¤ì¤ë¤³¤È¤ËÃí°Õ¤·¤Æ¤¯¤À¤µ¤¤¡£

setenv
setenv name 
setenv name value 
1ÈÖÌÜ¤Î·Á¼°¤Î¤è¤¦¤Ë¤Ï°ú¿ô¤ò»ØÄê¤·¤Ê¤¤¾ì¹ç¤Ë¤Ï¡¢setenv ¤ÏÁ´¤Æ¤Î´Ä¶­ÊÑ¿ô¤òÉ½¼¨¤µ¤»¤Þ¤¹¡£2ÈÖÌÜ¤Î·Á¼°¤Ï¡¢´Ä¶­ÊÑ¿ô name ¤Ë¥Ì¥ëÊ¸»úÎó¤ò³ä¤êÅö¤Æ¤Þ¤¹¡£ºÇ¸å¤Î·Á¼°¤Ï¡¢´Ä¶­ÊÑ¿ô name ¤ËÃÍ value ¤ò¤¢¤¿¤¨¤Þ¤¹¡£ºÇ¤â¤è¤¯»È¤ï¤ì¤ë´Ä¶­ÊÑ¿ô USER, TERM, PATH ¤Ê¤É¤Ï csh ¤Î¥·¥§¥ëÊÑ¿ô user, term, path ¤«¤é¼«Æ°Åª¤Ë¥¤¥ó¥Ý¡¼¥È¡¢¤¢¤ë¤¤¤Ï¥¨¥¯¥¹¥Ý¡¼¥È¤µ¤ì¤Þ¤¹¡£¤³¤Î¤¿¤á¡¢¤³¤ì¤é¤ÎÊÑ¿ô¤Ç¤Ï setenv ¤ò»È¤¦É¬Í×¤Ï¤¢¤ê¤Þ¤»¤ó¡£

shift 
shift variable
argv ¤Þ¤¿¤Ï variable ¤¬Í¿¤¨¤é¤ì¤Æ¤¤¤ë¾ì¹ç¤½¤ÎÊÑ¿ô¤ËÂÐ¤·¤Æ¡¢¤½¤ÎºÇ½é¤Î¹½À®Í×ÁÇ¤òÇË´þ¤·¤Æ¤³¤ì¤é¤ÎÍ×ÁÇ¤òº¸¤Ë¥·¥Õ¥È¤·¤Þ¤¹¡£¤·¤¿¤¬¤Ã¤ÆºÇ¤âº¸¤Ë¤¢¤ë argv[1] ¤ÏÍî¤µ¤ì¤Þ¤¹¡£argv ¤ÎÃÍ¤¬¥»¥Ã¥È¤µ¤ì¤Æ¤¤¤Ê¤¤¤«¡¢1 ¥ï¡¼¥É°Ê²¼¤Î¾ì¹ç¤Ï¥¨¥é¡¼¤È¤Ê¤ê¤Þ¤¹¡£

source name 
source -h name
¥·¥§¥ë¤Ë name ¤Î¥Õ¥¡¥¤¥ë¤«¤é¥³¥Þ¥ó¥É¤òÆÉ¤ß¹þ¤Þ¤»¤Þ¤¹¡£¤³¤Î source ¥³¥Þ¥ó¥É¤ÏÆþ¤ì»Ò¹½Â¤¤Ë¤Ç¤­¤Þ¤¹¤¬¡¢¥Í¥¹¥È¤ò¤¢¤Þ¤ê¿¼¤¯¤·²á¤®¤ë¤È¡¢¥·¥§¥ë¤Ï¥Õ¥¡¥¤¥ëµ­½Ò»Ò¤ò»È¤¤²Ì¤¿¤·¤Æ¤·¤Þ¤¦¤³¤È¤Ë¤Ê¤ê¤Þ¤¹¡£¤É¤³¤«¤Î source¥³¥Þ¥ó¥É¤Ç¥¨¥é¡¼¤¬È¯À¸¤·¤¿¾ì¹ç¡¢¥Í¥¹¥ÈÃæ¤Ë¤è¤ëÆþÎÏ¤Ï¥Ò¥¹¥È¥ê¡¦¥ê¥¹¥È¤Ë¤ÏÄÌ¾ïÈ¿±Ç¤µ¤ì¤Þ¤»¤ó¤¬¡¢-h ¥ª¥×¥·¥ç¥ó¤ò»ØÄê¤¹¤ì¤Ð¡¢¼Â¹Ô¤µ¤ì¤º¤ËÃ±¤Ë¥Ò¥¹¥È¥ê¡¦¥ê¥¹¥È¤Ëµ­ºÜ¤µ¤ì¤Þ¤¹¡£

stop
stop %job ... 
¸½ºß¤Î¡¢¤¢¤ë¤¤¤Ï»ØÄê¤·¤¿¥Ð¥Ã¥¯¥°¥é¥¦¥ó¥É¡¦¥¸¥ç¥Ö¤òÄä»ß¤·¤Þ¤¹¡£

suspend 
¥·¥§¥ë¤ò¤½¤Î¥È¥é¥Ã¥¯¤ÇÄä»ß¤µ¤»¤Þ¤¹¡£ ^Z ¤ò¥¿¥¤¥×¤·¤ÆÄä»ß¥·¥°¥Ê¥ë¤òÁ÷¤Ã¤¿¤Î¤È»÷¤Æ¤¤¤Þ¤¹¡£su(1) ¤Ë¤è¤Ã¤Æ³«»Ï¤·¤¿¥·¥§¥ë¤òÄä»ß¤µ¤»¤ë¤È¤­¤Ë¤è¤¯»È¤ï¤ì¤Þ¤¹¡£

switch  (string)
case str1:
            ...
	breaksw 
... 
default :
            ...
	breaksw 
endsw 
»ØÄê¤·¤¿ strung ÂÐ¤·¤Æ¡ÊºÇ½é¤Ë¥³¥Þ¥ó¥É¤È¥Õ¥¡¥¤¥ëÌ¾¤¬Å¸³«¤µ¤ì¤Þ¤¹¡Ë¡¢¤¹¤Ù¤Æ¤Î case ¥é¥Ù¥ë¤Î str1, str2, ... ¤ÈÏ¢Â³¤·¤ÆÈæ³Ó¤µ¤ì¤Þ¤¹¡£¥é¥Ù¥ë¤ÏÊÑ¿ô¤ÎÅ¸³«¤¬¤µ¤ì¡¢¤µ¤é¤Ë¥Õ¥¡¥¤¥ë¤Î¥á¥¿¥­¥ã¥é¥¯¥¿ `*', `?' ¤ª¤è¤Ó`[...]' ¤¬ case ¥é¥Ù¥ë¤ÎÃæ¤Ç»È¤¨¤Þ¤¹¡£`default' ¥é¥Ù¥ë¤Þ¤Ç¤Î´Ö¤Ë¥Þ¥Ã¥Á¤¹¤ë¤â¤Î¤¬Â¸ºß¤·¤Ê¤¤¾ì¹ç¡¢`default' ¥é¥Ù¥ë¤Î¸å¤«¤é¼Â¹Ô¤µ¤ì¤Þ¤¹¡£¤É¤Î `default' Ê¸¤È case Ê¸¤Ï¡¢¤½¤ì¤¾¤ì¹Ô¤ÎÀèÆ¬¤Ë¤Ê¤±¤ì¤Ð¤Ê¤ê¤Þ¤»¤ó¡£¥³¥Þ¥ó¥É breaksw ¤Ï endsw ¤Î¸å¤í¤«¤é¼Â¹Ô¤µ¤»¤Þ¤¹¡£¤½¤¦¤Ç¤Ê¤¤¾ì¹ç¤Ï¡¢C¸À¸ì¤ÈÆ±ÍÍ¤Ë caseÊ¸¤È default Ê¸¤ËÀ©¸æ¤¬°Ü¤ê¤Þ¤¹¡£¥Þ¥Ã¥Á¤¹¤ë case¥é¥Ù¥ë¤¬¤Ê¤¯ default ¥é¥Ù¥ë¤â¤Ê¤¤¾ì¹ç endsw °Ê¹ß¤«¤é¼Â¹Ô¤òÂ³¤±¤Þ¤¹¡£                

time
time command
°ú¿ô¤¬¤Ê¤¤¾ì¹ç¥·¥§¥ë¤È¤½¤Î»Ò¥·¥§¥ë¤¬»È¤Ã¤¿»þ´Ö¤ÎÍ×Ìó¤òÉ½¼¨¤µ¤»¤Þ¤¹¡£°ú¿ô¤¬¤¢¤ë¾ì¹ç¤Ë¤Ï»ØÄê¤µ¤ì¤¿¥³¥Þ¥ó¥É¤¬»È¤Ã¤¿»þ´Ö¤¬·×Â¬¤µ¤ì time ÊÑ¿ô¤Ëµ­½Ò¤µ¤ì¤¿¤È¤ª¤ê¤ËÍ×Ìó¤¬É½¼¨¤µ¤ì¤Þ¤¹¡£É¬Í×¤Ë±þ¤¸¤Æ¤³¤Î time ¥³¥Þ¥ó¥É¤¬´°Î»¤·¤¿¤È¤­¤Ë¡¢»þ´Ö¤ÎÅý·×¤ò½ñ¤­¹þ¤à¿·¤·¤¤ÊÌ¤Î¥·¥§¥ë¤¬ºîÀ®¤µ¤ì¤Þ¤¹¡£

umask 
umask value 
°ú¿ô¤ò»ØÄê¤·¤Ê¤¤¤È¡¢¿·µ¬¤ËºîÀ®¤¹¤ë¥Õ¥¡¥¤¥ë¤Î¥Þ¥¹¥¯¡Êµö²Ä¥Ó¥Ã¥È¡Ë¤òÉ½¼¨¤·¤Þ¤¹¡£value ¤ò»ØÄê¤¹¤ë¤È¡¢¥Õ¥¡¥¤¥ë¤ÎºîÀ®¥Þ¥¹¥¯¤òÀßÄê¤·¤Þ¤¹¡£¥Þ¥¹¥¯ value ¤Ï8¿Ê¿ô¤ÇÍ¿¤¨¤Þ¤¹¡£¥Þ¥¹¥¯¤Ë¤è¤¯»È¤ï¤ì¤ëÃÍ¤È¤·¤Æ¤Ï 002 ¤¬¥°¥ë¡¼¥×¤Î¥æ¡¼¥¶¤ËÂÐ¤·¤¹¤Ù¤Æ¤Î¥¢¥¯¥»¥¹¸¢¸Â¤ò¡¢¤Þ¤¿Â¾¤Î¥æ¡¼¥¶¤ËÂÐ¤·¤Æ¤Ï read ¤ª¤è¤Ó execute ¤Î¸¢¸Â¤òÍ¿¤¨¤ë»ö¤Ë¤Ê¤ê¡¢022 ¤Ï¥°¥ë¡¼¥×¤Î¤½¤·¤ÆÂ¾¤Î¥æ¡¼¥¶¤ËÂÐ¤·¤Æ write ¸¢¸Â°Ê³°¤Î¤¹¤Ù¤Æ¤ò¤¢¤¿¤¨¤Þ¤¹¡£

unalias pattern 
»ØÄê¤¹¤ë pattern ¤Ë¥Þ¥Ã¥Á¤¹¤ë¤¹¤Ù¤Æ¤ÎÊÌÌ¾¤¬´þµÑ¤µ¤ì¤Þ¤¹¡£¤·¤¿¤¬¤Ã¤Æ`unalias *' ¤Ï¤¹¤Ù¤Æ¤ÎÊÌÌ¾¤ò´þµÑ¤¹¤ë¤³¤È¤Ë¤Ê¤ê¤Þ¤¹¡£unalias ¤Ë¤è¤Ã¤Æ¤Ê¤Ë¤â´þµÑ¤µ¤ì¤Ê¤¯¤Æ¤â¥¨¥é¡¼¤È¤Ï¤µ¤ì¤Þ¤»¤ó¡£

unhash
¼Â¹Ô¤¹¤ë¥×¥í¥°¥é¥à¤ÎÁöºº¤Î¥¹¥Ô¡¼¥É¥¢¥Ã¥×¤ò²ÄÇ½¤Ë¤·¤Æ¤¤¤ëÆâÉô¤Î¥Ï¥Ã¥·¥å¡¦¥Æ¡¼¥Ö¥ë¤ò»ÈÍÑ¤·¤Ê¤¤¤è¤¦¤Ë¤·¤Þ¤¹¡£

unlimit 
unlimit resource
unlimit -h
unlimit -h resource 
resource ¤Ë²Ý¤»¤é¤ì¤Æ¤¤¤ëÀ©¸Â¤ò¼è¤ê½ü¤­¤Þ¤¹¡£resource ¤¬»ØÄê¤µ¤ì¤Æ¤¤¤Ê¤¤¾ì¹ç¤¹¤Ù¤Æ¤Î resource ¤ÎÀ©¸Â¤ò¼è¤ê½ü¤­¤Þ¤¹¡£-h ¤¬¤¢¤ë¾ì¹çÂÐ±þ¤¹¤ë¥Ï¡¼¥É¾å¤ÎÀ©¸Â¤ò¼è¤ê½ü¤­¤Þ¤¹¤¬¤³¤ì¤Ï¥¹¡¼¥Ñ¥æ¡¼¥¶¤Ë¤·¤«¤Ç¤­¤Þ¤»¤ó¡£

unset pattern 
»ØÄê¤¹¤ë pattern ¤Ë¥Þ¥Ã¥Á¤¹¤ë¤¹¤Ù¤Æ¤ÎÊÑ¿ô¤¬´þµÑ¤µ¤ì¤Þ¤¹¡£¤·¤¿¤¬¤Ã¤Æ `unset *' ¤Ï¤¹¤Ù¤Æ¤ÎÊÑ¿ô¤ò´þµÑ¤¹¤ë¤³¤È¤Ë¤Ê¤ê¤Þ¤¹¡£¤³¤ì¤Ï¤«¤Ê¤êÉÔËþÂ­¤ÊÉûºîÍÑ¤òµ¯¤³¤·¤Þ¤¹¡£unset ¤Ë¤è¤Ã¤Æ²¿¤â´þµÑ¤µ¤ì¤Ê¤¯¤Æ¤â¥¨¥é¡¼¤È¤Ï¤µ¤ì¤Þ¤»¤ó¡£

unsetenv pattern
»ØÄê¤¹¤ë pattern ¤Ë¥Þ¥Ã¥Á¤¹¤ë¤¹¤Ù¤Æ¤Î´Ä¶­ÊÑ¿ô¤¬¡¢´þµÑ¤µ¤ì¤Þ¤¹¡£¾å½Ò¤Î setenv ¥³¥Þ¥ó¥É¤ª¤è¤Ó printenv(1) ¤ò»²¾È¤·¤Æ¤¯¤À¤µ¤¤¡£

wait
¤¹¤Ù¤Æ¤Î¥Ð¥Ã¥¯¥°¥é¥¦¥ó¥ÉÃæ¤Î¥¸¥ç¥Ö¤¬ wait ¤Ä¤Þ¤ê¥¹¥ê¡¼¥×¾õÂÖ¤Ë¤Ê¤ê¤Þ¤¹¡£¥·¥§¥ë¤¬ÂÐÏÃÅª¤Ç¤¢¤ì¤Ð¡¢interrupt ¤Ï¤³¤Î¾õÂÖ¤òÊÑ¤¨¤ë»ö¤¬¤Ç¤­¤Þ¤¹¡£¤³¤Î¤È¤­¥·¥§¥ë¤ÏÊ¬¤«¤Ã¤Æ¤¤¤ë¤¹¤Ù¤Æ¤Î¥¸¥ç¥Ö¤ÎÌ¾Á°¤È¥¸¥ç¥ÖÈÖ¹æ¤òÉ½¼¨¤·¤Þ¤¹¡£

while (expr) 
         ...
end 
»ØÄê¤·¤¿¼° expression ¤¬¥¼¥í¤Ç¤Ê¤¤´Ö while Ê¸¤ÈÂÐ±þ¤¹¤ë end Ê¸¤Î´Ö¤Ë¤¢¤ë¥³¥Þ¥ó¥É¤ò¼Â¹Ô¤·¤Þ¤¹¡£break ¤È continue ¥³¥Þ¥ó¥É¤Ï¤½¤ì¤¾¤ì¾ò·ïÀ®Î©¤è¤êÁ°¤Ë½ªÎ»¤½¤·¤Æ·ÑÂ³¤µ¤»¤Þ¤¹¡£¡Ê while ¤ª¤è¤Ó end ¤Ï¤É¤Á¤é¤âÆþÎÏ¹Ô¤ËÃ±ÆÈ¤ÇÂ¸ºß¤·¤Ê¤±¤ì¤Ð¤Ê¤ê¤Þ¤»¤ó¡£¡Ëforeach ¤Î¾ì¹ç¤ÈÆ±ÍÍ¤ËÆþÎÏ¤¬Ã¼Ëö¤Ë¤è¤ë¤È¤­¤Ë¤Ï¤³¤Î¥ë¡¼¥×¤¬ºÇ½é¤ËÆ°¤¯»þ¥×¥í¥ó¥×¥È¤òÊÖ¤·¤Æ¤­¤Þ¤¹¡£

%job
»ØÄê¤·¤¿¥¸¥ç¥Ö¤ò¥Õ¥©¥¢¥°¥é¥¦¥ó¥É¤Ë¤â¤Ã¤Æ¤­¤Þ¤¹¡£

%job &
»ØÄê¤·¤¿¥¸¥ç¥Ö¤ò¥Ð¥Ã¥¯¥°¥é¥¦¥ó¥É¤Ë¤â¤Ã¤Æ¤­¤Þ¤¹¡£

@ 
@ name = expr 
@ name[index] = expr
°ú¿ô¤ò»ØÄê¤·¤Ê¤¤ºÇ½é¤Î·Á¼°¤Ï¡¢¤¹¤Ù¤Æ¤Î¥·¥§¥ëÊÑ¿ô¤ÎÃÍ¤òÉ½¼¨¤µ¤»¤Þ¤¹¡£¼¡¤Î·Á¼°¤Ç¤ÏÊÑ¿ô name ¤ËÂÐ¤·¤Æ expr ¤ÎÃÍ¤ò¥»¥Ã¥È¤·¤Þ¤¹¡£¤³¤Î¼°    ¤¬ `<', `>', `&', `|' ¤ò´Þ¤ó¤Ç¤¤¤ë¤È¤­¤Ë¤Ï¾¯¤Ê¤¯¤È¤â expr ¤Î¤³¤ÎÉôÊ¬¤Ï¡¢`(', `)' ¤Ç¤«¤³¤Þ¤ì¤Æ¤¤¤Ê¤±¤ì¤Ð¤Ê¤ê¤Þ¤»¤ó¡£ºÇ¸å¤Î·Á¼°¤Ç¤Ïname ¤Ç»ØÄê¤·¤¿ÊÑ¿ô¤Î index ÈÖÌÜ¤Î¥ï¡¼¥É¤Ë expr ¤ÎÃÍ¤ò¥»¥Ã¥È¤·¤Þ¤¹¡£¤³¤Î¤È¤­»ØÄê¤¹¤ëÊÑ¿ô name ¤ª¤è¤Ó index ÈÖÌÜ¤Î¹½À®Í×ÁÇ¤ÏÎ¾Êý¤È¤âÂ¸ºß¤·¤Ê¤±¤ì¤Ð¤Ê¤ê¤Þ¤»¤ó¡£

`*=', `+=' ±é»»»Ò¤ÏC¸À¸ì¤ÈÆ±¤¸¤è¤¦¤Ë»È¤¨¤Þ¤¹¡£ÊÑ¿ô name ¤È¤³¤ì¤é¤Î±é»»»Ò¤ò¶õÇò¤Ç¶èÀÚ¤ëÉ¬Í×¤Ï¤¢¤ê¤Þ¤»¤ó¡£¤¿¤À¤·¡¢¼° expr ¤Î¤½¤ì¤¾¤ì¤ÎÍ×ÁÇ¤Ï¶õÇò¤Ç¶èÀÚ¤ëÉ¬Í×¤¬¤¢¤ê¤Þ¤¹¡£¤½¤¦¤Ç¤Ê¤¤¤ÈÃ±°ì¤Î¥ï¡¼¥É¤Ë¤Ê¤Ã¤Æ¤·¤Þ¤¤¤Þ¤¹¡£

ÆÃ¼ì¤Ê¥Ý¥¹¥È¥Õ¥£¥Ã¥¯¥¹±é»»»Ò `++', `--' ¤Ï¤½¤ì¤¾¤ì»ØÄê¤¹¤ëÊÑ¿ô name¤òÁýÊ¬¤¢¤ë¤¤¤Ï¸º¤¸¤Þ¤¹¡£¤Ä¤Þ¤ê `@' i++' ¤È¤Ê¤ê¤Þ¤¹¡£

¡Î´Ä¶­ÊÑ¿ô¤ÈÄêµÁºÑ¤ß¥·¥§¥ëÊÑ¿ô¡Ï

C¥·¥§¥ë¤Ï´Ä¶­ÊÑ¿ô¤È¥·¥§¥ëÊÑ¿ô¤Î°ã¤¤¤ò¶èÊÌ¤·¤Þ¤¹¡£´Ä¶­ÊÑ¿ô¤Ï¸Æ¤Ó½Ð¤·ÂÐ¾Ý¤Î¥×¥í¥»¥¹¤ËÂÐ¤·¤Æ¼«Æ°Åª¤Ë¥¨¥¯¥¹¥Ý¡¼¥È¤µ¤ì¤Þ¤¹¤¬¡¢¥·¥§¥ëÊÑ¿ô¤Ï¥¨¥¯¥¹¥Ý¡¼¥È¤µ¤ì¤Þ¤»¤ó¡£¼¡¤Ëµó¤²¤ë´Ä¶­ÊÑ¿ô¤Ï¡¢¥·¥§¥ë¤ËÂÐ¤·ÆÃ¼ì¤Ê°ÕÌ£¤ò»ý¤Á¤Þ¤¹¡£¥·¥§¥ë¤Ï½é´üÀßÄê»þ¤Ë¡¢ÊÑ¿ô argv, cwd, home, path, prompt, shell, ¤ª¤è¤Ó status ¤ò¥»¥Ã¥È¤·¤Þ¤¹¡£cwd ¤È status °Ê³°¤Ë¤Ä¤¤¤Æ¤Ï¡¢½é´ü²½¤Î¤È¤­¤Ë¤Î¤ß¥»¥Ã¥È¤µ¤ì¡¢¥æ¡¼¥¶¤Ë¤è¤Ã¤ÆÌÀ¼¨Åª¤ËÊÑ¹¹¤µ¤ì¤Ê¤¤¤«¤®¤êÊÑ¤ï¤ê¤Þ¤»¤ó¡£

¥·¥§¥ë¤Ï´Ä¶­ÊÑ¿ô USER, TERM, HOME ¤ò¤½¤ì¤¾¤ì¥·¥§¥ëÊÑ¿ô user, term, home¤Ë¥³¥Ô¡¼¤·¡¢È¿ÂÐ¤Ë¥·¥§¥ëÊÑ¿ô¤¬ÃÍ¤òÊÑ¤¨¤é¤ì¤¿ÅÔÅÙ¡¢¤½¤ì¤ò´Ä¶­ÊÑ¿ô¤Ë¥³¥Ô¡¼¤·¤Æ¤­¤ÆÈ¿±Ç¤µ¤»¤Þ¤¹¡£PATH ¤È path ¤ÏÆ±ÍÍ¤Ë½èÍý¤·¤Þ¤¹¡£²¼°Ì¤Î csh ¥×¥í¥»¥¹¤Ï´Ä¶­¤«¤é path ¤ÎÄêµÁ¤ò»ý¤Ã¤Æ¤­¤Æ¡¢ÊÑ¹¹¤¬¤¢¤Ã¤¿¤È¤­¤Ë¤Ï¡¢¤½¤ì¤ò´Ä¶­¤ËÈ¿±Ç¤µ¤»¤ë¤Î¤Ç¡¢.cshrc ¤Î¥Õ¥¡¥¤¥ë°Ê³°¤Ç¤Î PATH ¤ÎÀßÄê¤Ë¤ÏÃí°Õ¤¹¤ëÉ¬Í×¤Ï¤¢¤ê¤Þ¤»¤ó¡£¼¡¤Î¥·¥§¥ëÊÑ¿ô¤ÏÆÃÊÌ¤Ê°ÕÌ£¤ò»ý¤Á¤Þ¤¹¡£

argv        		¥·¥§¥ë¤Î°ú¿ô¤ËÂÐ±þ¤µ¤ì¤Þ¤¹¡£¤³¤ÎÊÑ¿ô¤ò»È¤Ã¤Æ¡¢°ÌÃÖ¥Ñ¥é¥á¡¼¥¿¤òÃÖ´¹¤·¤Þ¤¹¡£Îã¤¨¤Ð¡¢`$1' ¤Ï `$argv[1]' ¤ËÃÖ´¹¤µ¤ì¤Þ¤¹¡£

cdpath	cd, chdir, pushd ¥³¥Þ¥ó¥É¤Ë¤ª¤¤¤Æ¡¢°ú¿ô¤¬¸½ºß¤Î¥Ç¥£¥ì¥¯¥È¥ê¤Î¥µ¥Ö¡¦¥Ç¥£¥ì¥¯¥È¥ê¤Ë¤Ê¤¤¾ì¹ç¤Ë¡¢cdpath ¤Î¥Ç¥£¥ì¥¯¥È¥ê¤òÁÜºº¤·¤Þ¤¹¡£

cwd	¥«¥ì¥ó¥È¥Ç¥£¥ì¥¯¥È¥ê¤Î´°Á´¥Ñ¥¹Ì¾¤Ç¤¹¡£

echo	¥³¥Þ¥ó¥É¹Ô¤Î -x ¥ª¥×¥·¥ç¥ó¤¬Í¿¤¨¤é¤ì¤¿¤È¤­¡¢¥»¥Ã¥È¤µ¤ì¤Þ¤¹¡£¥³¥Þ¥ó¥É¤È°ú¿ô¤¬¡¢¼Â¹Ô¤µ¤ì¤ëÁ°¤Ë¥¨¥³¡¼¤µ¤ì¤Þ¤¹¡£ÁÈ¹þ¤ß¥³¥Þ¥ó¥É°Ê³°¤Ç¤Ï¼Â¹ÔÁ°¤ËÅ¸³«¤µ¤ì¤Þ¤¹¡£ÁÈ¹þ¤ß¥³¥Þ¥ó¥É¤Ç¤Ï¡¢¥³¥Þ¥ó¥É¤È¥Õ¥¡¥¤¥ëÌ¾ÃÖ´¹¤µ¤ì¤ëÁ°¤Ë¥¨¥³¡¼¤µ¤ì¤¿¸å¡¢ÂåÆþ¤¬ÁªÂòÅª¤Ë¤ª¤³¤Ê¤ï¤ì¤Þ¤¹¡£

filec	¥Õ¥¡¥¤¥ëÌ¾¤Î´°Á´²½¤ò¹Ô¤Ê¤¤¤Þ¤¹¡£

histchars	¥Ò¥¹¥È¥êÃÖ´¹¤Ë»È¤ï¤ì¤ëÊ¸»ú¤òÊÑ¤¨¤ë¤¿¤á¤Ë¡¢2Ê¸»ú¤ÇÍ¿¤¨¤Þ¤¹¡£ºÇ½é¤ÎÊ¸»ú¤Ï¥Ç¥Õ¥©¥ë¥È¤ÎÊ¸»ú `!' ¤òÃÖ´¹¤·¥Ò¥¹¥È¥êÃÖ´¹Ê¸»ú¤È¤·¤Æ»ÈÍÑ¤µ¤ì¤Þ¤¹¡£ÆóÈÖÌÜ¤ÎÊ¸»ú¤Ï¡¢¿×Â®¤ÊÃÖ´¹Ê¸»ú `^' ¤òÃÖ´¹¤·¤Þ¤¹¡£

history	¥Ò¥¹¥È¥ê¡¦¥ê¥¹¥È¤ÎÂç¤­¤µ¤ò·è¤á¤ë¤¿¤á¤Ë¡¢¿ôÃÍ¤ÇÍ¿¤¨¤Þ¤¹¡£»²¾È¤µ¤ì¤¿¥³¥Þ¥ó¥É¤Ï¾Ã¤µ¤ì¤ë¤³¤È¤Ï¤¢¤ê¤Þ¤»¤ó¡£¤¢¤Þ¤êÂç¤­¤ÊÃÍ¤òÀßÄê¤¹¤ë¤È¡¢¥·¥§¥ë¤¬¥á¥â¥êÉÔÂ­¤Ë¤Ê¤Ã¤Æ¤·¤Þ¤¤¤Þ¤¹¡£ºÇ¸å¤Ë¼Â¹Ô¤µ¤ì¤¿¥³¥Þ¥ó¥É¤Ï¥Ò¥¹¥È¥ê¡¦¥ê¥¹¥È¤ËÉ¬¤ºµ­Ï¿¤µ¤ì¤Þ¤¹¡£

home	¤½¤Î¥æ¡¼¥¶¤Î¥Û¡¼¥à¡¦¥Ç¥£¥ì¥¯¥È¥ê¤ò»Ø¤·¤Þ¤¹¡£´Ä¶­¤Ë¤è¤Ã¤Æ½é´ü²½¤µ¤ì¤Þ¤¹¡£`~' ¤Ë¤è¤ë¥Õ¥¡¥¤¥ëÌ¾Å¸³«¤Ï¤³¤ÎÊÑ¿ô¤ò»²¾È¤·¤Þ¤¹¡£

ignoreeof	¥»¥Ã¥È¤µ¤ì¤Æ¤¤¤ì¤Ð¡¢¥·¥§¥ë¤ÏÃ¼Ëö¤«¤é¤ÎÆþÎÏ¤Î end-of-file ¤òÌµ»ë¤·¤Þ¤¹¡£¤³¤ì¤Ë¤è¤Ã¤Æ²á¤Ã¤Æ ^D ¤Ë¤è¤Ã¤Æ¥·¥§¥ë¤¬½ªÎ»¤µ¤»¤Æ¤·¤Þ¤¦¤Î¤òËÉ¤®¤Þ¤¹¡£

mail	¥·¥§¥ë¤¬¥á¡¼¥ë¤òÄ´¤Ù¤Ë¤¤¤¯¥Õ¥¡¥¤¥ë¤ò»Ø¼¨¤·¤Þ¤¹¡£¤³¤ì¤Ï»ØÄê¤µ¤ì¤¿»þ´Ö¤Î´Ö³Ö¤ò·Ð²á¤·¤Æ¤¤¤ë¾õÂÖ¤Ç¤Ï¡¢¥³¥Þ¥ó¥É¤¬´°Î»¤·¤Æ¡¢¥×¥í¥ó¥×¥È¤òÊÖ¤¹Ëè¤Ë¤ª¤³¤Ê¤ï¤ì¤Þ¤¹¡£¤³¤Î¡Ê¥á¡¼¥ë¤Î¡Ë¥Õ¥¡¥¤¥ë¤¬Â¸ºß¤·¡¢¥¢¥¯¥»¥¹¡¦¥¿¥¤¥à¤¬¥â¥Ç¥£¥Õ¥¡¥¤¡¦¥¿¥¤¥à¤è¤êÂç¤­¤¯¤Ê¤±¤ì¤Ð¥·¥§¥ë¤Ï `You have new mail' ¤Î¥á¥Ã¥»¡¼¥¸¤ò½Ð¤·¤Æ¤­¤Þ¤¹¡£

	mail ¤ÎºÇ½é¤Î¥ï¡¼¥É¤¬¿ôÃÍ¤Ç¤¢¤ì¤Ð¡¢¥á¡¼¥ë¤ÎÍ­Ìµ¤òÄ´¤Ù¤Ë¤¤¤¯´Ö³Ö¤ò¥Ç¥Õ¥©¥ë¥È¤Î10Ê¬¤«¤é»ØÄê¤·¤¿»þ´Ö¡ÊÉÃÃ±°Ì¤Ç»ØÄê¡Ë¤ËÊÑ¹¹¤µ¤ì¤Þ¤¹¡£

	Ê£¿ô¤Î¥á¡¼¥ë¤Î¥Õ¥¡¥¤¥ë¤¬»ØÄê¤µ¤ì¤Æ¤¤¤ë¾ì¹ç¤Ë¤Ï¡¢¤½¤Î¥Õ¥¡¥¤¥ë¤ò `New mail in name' ¤È¤¤¤¦¥á¥Ã¥»¡¼¥¸¤ÇÃÎ¤é¤»¤Þ¤¹¡£

noclobber	¡ØÆþÎÏ¤È½ÐÎÏ¤Î¥ê¥À¥¤¥ì¥¯¥È¡Ù¤Î¤È¤³¤í¤Ç¤â½Ò¤Ù¤Þ¤·¤¿¤¬¡¢½ÐÎÏ¤Î¥ê¥À¥¤¥ì¥¯¥È¤ËÀ©¸Â¤òÃÖ¤­¥Õ¥¡¥¤¥ë¤¬²á¤Ã¤Æ²õ¤µ¤ì¤ë¤Î¤òËÉ»ß¤·¤Þ¤¹¡£¥ê¥À¥¤¥ì¥¯¥Èµ­¹æ `>' ¤Ï¿·µ¬¤Î¥Õ¥¡¥¤¥ë¤Ë¤À¤±»ÈÍÑ¤¹¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£¥ê¥À¥¤¥ì¥¯¥Èµ­¹æ `>>' ¤Ï´ûÂ¸¤Î¥Õ¥¡¥¤¥ë¤òÂÐ¾Ý¤È¤·¤Þ¤¹¡£

noglob	¤³¤ì¤¬¥»¥Ã¥È¤µ¤ì¤Æ¤¤¤ë¤È¥Õ¥¡¥¤¥ëÌ¾¤ÎÅ¸³«¤ò¶Ø»ß¤·¤Þ¤¹¡£¥Õ¥¡¥¤¥ëÌ¾¤ò¼è¤ê°·¤Ã¤Æ¤¤¤Ê¤¤¥·¥§¥ë¡¦¥¹¥¯¥ê¥×¥È¤ª¤è¤Ó¥Õ¥¡¥¤¥ëÌ¾¤Î¥ê¥¹¥È¤òÆÀ¤¿¤¢¤È¤Ç¤³¤ì°Ê¾å¤ÎÅ¸³«¤ò¤µ¤»¤¿¤¯¤Ê¤¤»þ¤ËÍ­ÍÑ¤Ç¤¹¡£

nonomatch	¤³¤ì¤¬¥»¥Ã¥È¤µ¤ì¤Æ¤¤¤ë¤È¥Õ¥¡¥¤¥ëÌ¾¤ÎÅ¸³«¤Ë¥Þ¥Ã¥Á¤¹¤ë¥Õ¥¡¥¤¥ë¤¬Â¸ºß¤·¤Ê¤¯¤Æ¤â¥¨¥é¡¼¤Ë¤Ï¤»¤º¥Õ¥¡¥¤¥ëÌ¾¤ÎÃÖ´¹¥Ñ¥¿¡¼¥ó¤òÊÖ¤·¤Þ¤¹¡£¤³¤Î¾ì¹ç¤Ç¤â¤½¤Î¥Ñ¥¿¡¼¥ó¤¬¡¢`echo ['¤ÎÍÍ¤Ë·Á¼°¤¬À°¤Ã¤Æ¤¤¤Ê¤±¤ì¤Ð¥¨¥é¡¼¤È¤Ê¤ê¤Þ¤¹¡£

notify	¤³¤ì¤¬¥»¥Ã¥È¤µ¤ì¤Æ¤¤¤ë¤È¥·¥§¥ë¤Ï¥¸¥ç¥Ö¤Î½ªÎ»¤òÈóÆ±´üÅª¤ËÃÎ¤é¤»¤Æ¤­¤Þ¤¹¡£¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¥×¥í¥ó¥×¥È¤òÉ½¼¨¤¹¤ëÄ¾Á°¤ËÃÎ¤é¤»¤Æ¤­¤Þ¤¹¡£

path		path ÊÑ¿ô¤Î¤½¤ì¤¾¤ì¤Î¥ï¡¼¥É¤Ï¥³¥Þ¥ó¥É¤Î¥µ¡¼¥ÁÂÐ¾Ý¤È¤Ê¤ë¥Ç¥£¥ì¥¯¥È¥ê¤Î¥ê¥¹¥È¤Ç¤¹¡£¶õ¤Î¥ï¡¼¥É¤Ï¸½ºß¤Î¥Ç¥£¥ì¥¯¥È¥ê¤ò°ÕÌ£¤·¤Þ¤¹¡£path ÊÑ¿ô¤¬¤Ê¤¤¾ì¹ç¤Ï´°Á´¥Ñ¥¹Ì¾¤Î¤ß¤¬¼Â¹Ô¤µ¤ì¤Þ¤¹¡£¾ÊÎ¬»þ¤ÎÃÍ¤ÏÄÌ¾ï¡¢`.', `/bin ¤½¤·¤Æ `/usr/bin, ¤Ç¤¹¤¬¤³¤ì¤â¥·¥¹¥Æ¥à¤Ë¤è¤Ã¤Æ°Û¤Ê¤ê¤Þ¤¹¡£¥¹¡¼¥Ñ¡¦¥æ¡¼¥¶¤Ç¤Î¾ÊÎ¬»þ¤ÎÃÍ¤Ï `/etc', `/bin' ¤½¤·¤Æ `/usr/bin' ¤Ç¤¹¡£-c ¤ª¤è¤Ó -t ¥ª¥×¥·¥ç¥ó¤¬¤É¤Á¤é¤â¥»¥Ã¥È¤µ¤ì¤Æ¤¤¤Ê¤¤¥·¥§¥ë¤ÏÄÌ¾ï .cshrc ¥Õ¥¡¥¤¥ë¤¬ÆÉ¤ß¼è¤é¤ì¤¿¸å¡¢¤Þ¤¿¡¢pathÊÑ¿ô¤¬ÊÑ¹¹¤µ¤ì¤ë¤¿¤Ó¤Ë¥Ç¥£¥ì¥¯¥È¥ê¤ÎÃæ¿È¤ò¥Ï¥Ã¥·¥å¤·¤Þ¤¹¡£¿·¤·¤¤¥³¥Þ¥ó¥É¤¬ÄÉ²Ã¤µ¤ì¤¿¾ì¹ç¤Ë¤Ï¡¢rehash ¥³¥Þ¥ó¥É¤ò»ÈÍÑ¤·¤Æ¥Æ¡¼¥Ö¥ë¤ò¹¹¿·¤·¤Ê¤±¤ì¤Ð¥³¥Þ¥ó¥É¤¬È¯¸«¤µ¤ì¤Þ¤»¤ó¡£

prompt	¿·¤·¤¤¥³¥Þ¥ó¥É¤¬ÂÐÏÃ·Á¼°¤ÇÃ¼ËöÆþÎÏ¤«¤éÆÉ¤ß¼è¤é¤ì¤ëÁ°¤Ë¡¢¥×¥í¥ó¥×¥È¤È¤·¤ÆÉ½¼¨¤µ¤ì¤ëÊ¸»úÎó¤Ç¤¹¡£¤³¤ÎÊ¸»úÎóÃæ¤Ë `!' ¤¬´Þ¤Þ¤ì¤ë¤È¤­¤½¤ÎÁ°¤Ë `\' ¤¬¤Ê¤¤¸Â¤ê¸½ºß¤Î¥¤¥Ù¥ó¥ÈÈÖ¹æ¤ËÃÖ´¹¤µ¤ì¤Þ¤¹¡£¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï `% ' ¤Ë¡¢¤Þ¤¿¥¹¡¼¥Ñ¡¦¥æ¡¼¥¶¤ËÂÐ¤·¤Æ¤Ï`# ' ¤ÇÍ¿¤¨¤é¤ì¤Þ¤¹¡£

savehist	¥æ¡¼¥¶¤¬¥í¥°¡¦¥¢¥¦¥È¤·¤¿¤È¤­¤Ë ~/.history ¤Ëµ­Ï¿¤µ¤ì¤ë¥Ò¥¹¥È¥ê¡¦¥ê¥¹¥È¤Î¹Ô¿ô¤ò¿ôÃÍ¤Ç»ØÄê¤·¤Þ¤¹¡£¥í¥°¥¤¥óÃæ¤Ë»²¾È¤µ¤ì¤¿¤¹¤Ù¤Æ¤Î¥³¥Þ¥ó¥É¤Ï¡¢¤³¤Î¥ê¥¹¥È¤Ëµ­Ï¿¤µ¤ì¤Þ¤¹¡£¥·¥§¥ë¤Ï¤½¤Î¥¹¥¿¡¼¥È¡¦¥¢¥Ã¥×»þ¤Ë ~/.history ¤ò»ÈÍÑ²ÄÇ½¤Ë¤·¥í¥°¥¤¥óÃæ¤Î¥Ò¥¹¥È¥ê¤¬µ­Ï¿¤Ç¤­¤ë¤è¤¦¤Ë¤·¤Þ¤¹¡£Âç¤­¤¹¤®¤ë savehist ¤ÎÃÍ¤Ï¥¹¥¿¡¼¥È¡¦¥¢¥Ã¥×»þ¤Î¥·¥§¥ë¤ÎÆ°ºî¤òÃÙ¤¯¤·¤Þ¤¹¡£

shell	¥·¥§¥ë¤¬Â¸ºß¤¹¤ë¥Õ¥¡¥¤¥ë¤ò»Ø¤·¤Þ¤¹¡£¥·¥§¥ë¤Ë¤¿¤¤¤·¤Æ¡¢¼Â¹Ô²ÄÇ½¤Ê¥Ó¥Ã¥È¡¦¥»¥Ã¥È¤ò»ý¤Ã¤Æ¤¤¤Æ¥·¥¹¥Æ¥à¤Ë¤Ï¼Â¹Ô¤Ç¤­¤Ê¤¤¥Õ¥¡¥¤¥ë¤ò²ò¼á¤¹¤ë¤è¤¦¤Ë fork ¡Ê»Ò¥×¥í¥»¥¹¤ò¼Â¹Ô¤¹¤ë¤³¤È¡Ë¤¹¤ë¤¿¤á¤Ë»È¤ï¤ì¤Þ¤¹¡£¡Ê¸å½Ò¤¹¤ë¡ÖÈóÁÈ¤ß¹þ¤ß¥³¥Þ¥ó¥É¤Î¼Â¹Ô¡×¤ò»²¾È¤·¤Æ¤¯¤À¤µ¤¤¡£¡Ë¤Þ¤¿¤³¤ÎÊÑ¿ô¤Ï¡¢¥·¥¹¥Æ¥à¤Ë¤è¤Ã¤Æ°Û¤Ê¤ë¥·¥§¥ë¤Î home ¤Ë½é´ü²½¤µ¤ì¤Æ¤¤¤Þ¤¹¡£

status	ºÇ¸å¤Ë¼Â¹Ô¤µ¤ì¤¿¥³¥Þ¥ó¥É¤¬ÊÖ¤¹¾õÂÖ¥³¡¼¥É¤ò»Ø¤·¤Þ¤¹¡£°Û¾ï½ªÎ»¤·¤¿¾ì¹ç `0200' ¤¬¾õÂÖ¥³¡¼¥É¤Ë²Ã»»¤µ¤ì¤Þ¤¹¡£¼ºÇÔ¤Ë½ª¤Ã¤¿ÁÈ¤ß¹þ¤ß¥³¥Þ¥ó¥É¤Ï¾õÂÖ¥³¡¼¥É `1' ¤ò¡¢¤½¤ì°Ê³°¤Î¾ì¹ç¤Ï `0' ¤òÊÖ¤·¤Þ¤¹¡£

time	¥³¥Þ¥ó¥É¤ËÂÐ¤·¤Æ¼«Æ°Åª¤Ë¤ª¤³¤Ê¤¦»þ´ÖÂ¬Äê¤òÀ©¸æ¤·¤Þ¤¹¡£¤³¤ì¤¬¥»¥Ã¥È¤µ¤ì¤Æ¤¤¤ë¾ì¹ç¡¢¤¢¤ë¥³¥Þ¥ó¥É¤¬¤³¤³¤Ç»ØÄê¤¹¤ë»þ´Ö¤è¤ê¤âÂ¿¤¯¤Î CPU »þ´Ö¡ÊÉÃ¡Ë¤¬É¬Í×¤È¤Ê¤Ã¤¿»þ¤Ë user, system, real ¤½¤ì¤¾¤ì¤Î»þ´Ö¡¢¤ª¤è¤Ó»ÈÍÑ¾õ¶·¤Î¥Ñ¡¼¥»¥ó¥Æ¡¼¥¸¡Êuser + system¤ò real ¤Ç½ü»»¤·¤ÆÆÀ¤é¤ì¤Þ¤¹¡Ë¤ò¥³¥Þ¥ó¥É¤Î¼Â¹Ô½ªÎ»»þ¤ËÉ½¼¨¤·¤Þ¤¹¡£

verbose	¥³¥Þ¥ó¥É¹Ô¤Î¥ª¥×¥·¥ç¥ó -v ¤Ë¤è¤Ã¤Æ¥»¥Ã¥È¤µ¤ì¤Þ¤¹¡£¤³¤ì¤¬¤¢¤ë¤È¡¢¥Ò¥¹¥È¥êÃÖ´¹¤Î¤¢¤È¤Ç¥³¥Þ¥ó¥É¤Î¤½¤ì¤¾¤ì¤Î¥ï¡¼¥É¤òÉ½¼¨¤·¤Þ¤¹¡£

¡ÎÈóÁÈ¤ß¹þ¤ß¥³¥Þ¥ó¥É¤Î¼Â¹Ô¡Ï

¼Â¹Ô¤·¤è¤¦¤È¤·¤Æ¤¤¤ë¥³¥Þ¥ó¥É¤¬ÁÈ¤ß¹þ¤ß¥³¥Þ¥ó¥É¤Ç¤Ê¤¤¤³¤È¤¬Ê¬¤«¤ë¤È¡¢¥·¥§¥ë¤Ï execve(2) ¤ò»È¤Ã¤Æ¤½¤Î¥³¥Þ¥ó¥É¤ò¼Â¹Ô¤·¤è¤¦¤È¤·¤Þ¤¹¡£path ÊÑ¿ô¤Î³Æ¥ï¡¼¥É¤Ï¼Â¹Ô¤¹¤ë¥³¥Þ¥ó¥É¤ÎÂ¸ºß¤¹¤ë¥Ç¥£¥ì¥¯¥È¥ê¤ò»Ø¤·¤Þ¤¹¡£-c ¤â -t ¥ª¥×¥·¥ç¥ó¤â¥»¥Ã¥È¤µ¤ì¤Æ¤¤¤Ê¤±¤ì¤Ð¥·¥§¥ë¤Ï¤½¤ì¤é¤Î¥Ç¥£¥ì¥¯¥È¥ê¤ÎÌ¾Á°¤ò¥Ï¥Ã¥·¥ó¥°¤·¤ÆÆâÉô¥Æ¡¼¥Ö¥ë¤òºîÀ®¤·¤Þ¤¹¡£¤³¤¦¤¹¤ë¤³¤È¤Ë¤è¤ê¡¢¥·¥§¥ë¤ÏÌÜÅª¤Î¥³¥Þ¥ó¥É¤¬¤¢¤ë¥Ç¥£¥ì¥¯¥È¥ê¤ËÂ¸ºß¤¹¤ë²ÄÇ½À­¤¬¤¢¤ë¤È¤­¤½¤Î¥Ç¥£¥ì¥¯¥È¥ê¤Ç exec ¤ò»î¤ß¤ì¤Ð¤¤¤¤¤³¤È¤Ë¤Ê¤ê¤Þ¤¹¡£¤Þ¤¿¤³¤Î¥á¥«¥Ë¥º¥à¤Ë¤è¤Ã¤ÆÃµºº¤Î¥Ñ¥¹Ãæ¤ËÂ¿¤¯¤Î¥Ç¥£¥ì¥¯¥È¥êÌ¾¤¬¸½¤ï¤ì¤Æ¤¤¤ë¾ì¹ç¡¢¥³¥Þ¥ó¥É¤Î½êºß¤ò¤Ä¤­¤È¤á¤ë¤Î¤ËÍ×¤¹¤ë»þ´Ö¤¬ÂçÉý¤Ëºï¸º¤µ¤ì¤Þ¤¹¡£¤³¤Î¥á¥«¥Ë¥º¥à¤¬ unhash ¤Ë¤è¤Ã¤Æµ¡Ç½¤·¤Æ¤¤¤Ê¤¤¤È¤­¡¢¤¢¤ë¤¤¤Ï¥·¥§¥ë¤Ë -c ¤â -t ¥ª¥×¥·¥ç¥ó¤â¥»¥Ã¥È¤µ¤ì¤Æ¤¤¤Ê¤¤¤È¤­¡¢¤â¤·¤¯¤Ï¥Ñ¥¹¤ò¹½À®¤·¤Æ¤¤¤ë³Æ¥Ç¥£¥ì¥¯¥È¥ê¤¬ `/' ¤Ç»Ï¤Þ¤Ã¤Æ¤¤¤Ê¤¤¾ì¹ç¤Ë¤Ï¡¢¥·¥§¥ë¤ÏÌÜÅª¤Î¥³¥Þ¥ó¥ÉÌ¾¤ò·ë¹ç¤·¤Æ¥Ñ¥¹Ì¾¤òºîÀ®¤·¤Þ¤¹¡£¼¡¤Ë¤½¤Î¥Ñ¥¹Ì¾¤¬¼¨¤¹¥Õ¥¡¥¤¥ë¤Î¼Â¹Ô¤ò»î¤ß¤Þ¤¹¡£

¤«¤Ã¤³¤Ç³ç¤é¤ì¤¿¥³¥Þ¥ó¥É¤Ï¾ï¤Ë¥µ¥Ö¡¦¥·¥§¥ë¤Ç¼Â¹Ô¤µ¤ì¤Þ¤¹¡£¤·¤¿¤¬¤Ã¤Æ¡¢`(cd ; pwd) ; pwd' ¤Ï¥Û¡¼¥à¡¦¥Ç¥£¥ì¥¯¥È¥ê¤òÉ½¼¨¤·¤Þ¤¹¤¬¡¢¸½ºß¤¤¤ë¾ì½ê¡Ê¥Ç¥£¥ì¥¯¥È¥ê¡Ë¤«¤é¤Ï°ÜÆ°¤·¤Þ¤»¤ó¡£¥Û¡¼¥à¥Ç¥£¥ì¥¯¥È¥ê¤ÎÉ½¼¨¤Î¸å¤í¤Ë¸½ºß¤¤¤ë¥Ç¥£¥ì¥¯¥È¥ê¤¬É½¼¨¤µ¤ì¤ë¤³¤È¤Ë¤Ê¤ê¤Þ¤¹¡£¤½¤ì¤Ë¤¿¤¤¤·¡¢`cd ; pwd' ¤Ç¤Ï¥Û¡¼¥à¡¦¥Ç¥£¥ì¥¯¥È¥ê¤Ë°ÜÆ°¤¹¤ë¤³¤È¤Ë¤Ê¤ê¤Þ¤¹¡£

¤¢¤ë¥Õ¥¡¥¤¥ë¤¬¼Â¹Ôµö²Ä¤ò¤â¤Ã¤Æ¤¤¤ë¤¬¡¢¼Â¹Ô²ÄÇ½¤Ê¥Ð¥¤¥Ê¥ê¤Ç¤Ê¤±¤ì¤Ð¤½¤Î¥Õ¥¡¥¤¥ë¤Ï¥·¥§¥ë¡¦¥³¥Þ¥ó¥É¤ò´Þ¤à¥Õ¥¡¥¤¥ë¤È¸«¤Ê¤µ¤ì¤Þ¤¹¡£¤Þ¤¿¤³¤Î»þ¤½¤Î¥Õ¥¡¥¤¥ë¤òÆÉ¤à¤¿¤á¤Ë¿·¤·¤¤¥·¥§¥ë¤¬ºî¤é¤ì¤Þ¤¹¡£

¥·¥§¥ë¤ËÊÌÌ¾¤¬¤¢¤ë¾ì¹ç¤½¤ÎÊÌÌ¾¤Ï¥·¥§¥ë¡¦¥³¥Þ¥ó¥É¤òºîÀ®¤¹¤ë¤¿¤á°ú¿ô¥ê¥¹¥È¤ËÅÏ¤µ¤ì¤Þ¤¹¡£ÊÌÌ¾¤Î1ÈÖÌÜ¤Î¥ï¡¼¥É¤Ï¥·¥§¥ë¤Î´°Á´¥Ñ¥¹Ì¾¤Ç¤Ê¤±¤ì¤Ð¤Ê¤ê¤Þ¤»¤ó¡£¡ÊÎã¤¨¤Ð `$shell' ¤Ê¤É¡Ë¤³¤ÎÊÌÌ¾¤Ë¤è¤ëÃÖ´¹¤ÏÆÃ¼ì¤Ê¥±¡¼¥¹¤Ç¡¢»þ´ÖÅª¤ËÃÙ¤ì¤Æµ¯¤³¤ë¤³¤È¡¢¤ª¤è¤ÓÅ¸³«¤ò¤È¤â¤Ê¤¦°ú¿ô¥ê¥¹¥È¤Ø¤Î°ú¤­ÅÏ¤·¤ÏÇ§¤á¤é¤ì¤Ê¤¤¤³¤È¤ËÃí°Õ¤·¤Æ¤¯¤À¤µ¤¤¡£

¡Î°ú¿ô¥ê¥¹¥È¤Î½èÍý¡Ï

¥·¥§¥ë¤Î0ÈÖÌÜ¤Î°ú¿ô¤¬ `-' ¤Î¾ì¹ç¡¢¤³¤ì¤Ï¥í¥°¥¤¥ó¡¦¥·¥§¥ë¤Ç¤¹¡£¥Õ¥é¥°°ú¿ô¤Ï°Ê²¼¤Î¤è¤¦¤Ë²ò¼á¤µ¤ì¤Þ¤¹¡£

-b	¤³¤Î¥Õ¥é¥°¤Ï¥ª¥×¥·¥ç¥ó¤Î½èÍý¤ò¶¯À©Åª¤Ë¤ä¤á¤Þ¤¹¡£°Ê¹ß¤Î¥³¥Þ¥ó¥É¹Ô¤Î¥·¥§¥ë°ú¿ô¤Ï¥·¥§¥ë¤Î¥ª¥×¥·¥ç¥ó¤È¤Ï²ò¼á¤µ¤ì¤Þ¤»¤ó¡£¤³¤Î¤¿¤á¥·¥§¥ë¡¦¥¹¥¯¥ê¥×¥È¤Ø´Ö°ã¤¤¤Ê¤¯¥¹¥à¡¼¥º¤Ë¥ª¥×¥·¥ç¥ó¤òÅÏ¤¹¤¿¤á¤Ë»ÈÍÑ¤µ¤ì¤Þ¤¹¡£¤³¤Î¥ª¥×¥·¥ç¥ó¤¬¥»¥Ã¥È¤µ¤ì¤Æ¤¤¤Ê¤±¤ì¤Ð¥·¥§¥ë¤Ï¥»¥Ã¥È¡¦¥æ¡¼¥¶ ID ¥¹¥¯¥ê¥×¥È¤ò¼Â¹Ô¤¹¤ë¤³¤È¤Ï¤¢¤ê¤Þ¤»¤ó¡£

-c	¥³¥Þ¥ó¥É¤Ï¼¡¤ËÂ³¤¯¤Ò¤È¤Ä¤Î°ú¿ô¡ÊÍ¿¤¨¤é¤ì¤Æ¤¤¤Ê¤±¤ì¤Ð¤Ê¤ê¤Þ¤»¤ó¡Ë¤«¤éÆÉ¤ß¼è¤é¤ì¤Þ¤¹¡£»Ä¤ê¤Î°ú¿ô¤Ï¡¢°ú¿ô¥ê¥¹¥È¤ÎÊÑ¿ô¤È¤·¤Æ¤Î argv ¤Î¤Ê¤«¤Ë¤ª¤«¤ì¤Þ¤¹¡£

-e	¥³¥Þ¥ó¥É¤¬°Û¾ï½ªÎ»¤¹¤ë¤«¡¢¥¼¥í°Ê³°¤Î½ªÎ»¥¹¥Æ¡¼¥¿¥¹¤òÊÖ¤·¤¿¤È¤­¥·¥§¥ë¤Ï½ªÎ»¤·¤Þ¤¹¡£

-f	¥·¥§¥ë¤Ï¿×Â®¤ËÎ©¤Á¾å¤¬¤ê¤Þ¤¹¡£µ¯Æ°»þ¤Ë¸½ºß¤Î¥æ¡¼¥¶¤Î¥Û¡¼¥à¡¦¥Ç¥£¥ì¥¯¥È¥ê¤Î `.cshrc' ¥Õ¥¡¥¤¥ë¤òÃµºº¤·¤Æ¥³¥Þ¥ó¥É¤ò¼Â¹Ô¤¹¤ë¥¹¥Æ¥Ã¥×¤ò¹Ô¤ï¤Ê¤¤¤«¤é¤Ç¤¹¡£

-i	¥·¥§¥ë¤Ï¡¢Ã¼Ëö¤Ç¤¢¤ë¤«¤É¤¦¤«¤Ë¤«¤«¤ï¤é¤º¶¯À©Åª¤Ë²ñÏÃ¥â¡¼¥É¤ËÆþ¤ê¤Þ¤¹¡£É¸½àÆþÎÏ¤¬Ã¼Ëö¤Ç¤Ê¤¤¾ì¹ç¤Ç¤â¡¢¥³¥Þ¥ó¥É¹Ô¤ÎÆþÎÏ¤òÍ×µá¤·¤Þ¤¹¡£

-n	¥³¥Þ¥ó¥É¤Ï²òÀÏ¤µ¤ì¤Þ¤¹¤¬¡¢¼Â¹Ô¤Ï¤µ¤ì¤Þ¤»¤ó¡£¤³¤Î¥ª¥×¥·¥ç¥ó¤Ï¡¢¥·¥§¥ë¥¹¥¯¥ê¥×¥È¤ÎÊ¸Ë¡¤Î¥Á¥§¥Ã¥¯¤ËÌòÎ©¤Á¤Þ¤¹¡£

-s	É¸½àÆþÎÏ¤«¤é¥³¥Þ¥ó¥É¤ò¼õ¤±¼è¤ê¤Þ¤¹¡£

-t	¥³¥Þ¥ó¥É¹Ô¤ò1¹ÔÆÉ¤ß¹þ¤ó¤Ç¼Â¹Ô¤·¤Þ¤¹¡£`\' ¤ò»ÈÍÑ¤¹¤ì¤Ð¡¢¤½¤Î¹Ô¤ÎºÇ¸å¤Ë¤¢¤ë¥Ë¥å¡¼¥é¥¤¥ó¤ò¥¨¥¹¥±¡¼¥×¤·¡¢¼¡¤Î¹Ô¤Ë·ÑÂ³¤µ¤»¤ë»ö¤¬¤Ç¤­¤Þ¤¹¡£

-v	verbose ÄêµÁºÑ¤ßÊÑ¿ô¤ò¥»¥Ã¥È¤µ¤»¤Þ¤¹¡£¤½¤Î·ë²Ì¥Ò¥¹¥È¥êÃÖ´¹¤Î¤¢¤È¤Ë¥³¥Þ¥ó¥É¹Ô¤ò½ÐÎÏ¤·¤Þ¤¹¡£

-x	echo ÊÑ¿ô¤ò¥»¥Ã¥È¤·¤Þ¤¹¡£¤½¤Î·ë²Ì¡¢¼Â¹Ô¤ÎÄ¾Á°¤Ë¥³¥Þ¥ó¥É¹Ô¤ò½ÐÎÏ¤·¤Þ¤¹¡£

-V	verbose ÊÑ¿ô¤ò `.cshrc' ¤¬¼Â¹Ô¤µ¤ì¤ë°ÊÁ°¤Ë¥»¥Ã¥È¤·¤Þ¤¹¡£

-X	echo ÊÑ¿ô¤ò `.cshrc' ¤¬¼Â¹Ô¤µ¤ì¤ë°ÊÁ°¤Ë¥»¥Ã¥È¤·¤Þ¤¹¡£                              

¥Õ¥é¥° -c, -i, -s, -t ¤Î¾ì¹ç¤ò½ü¤¤¤Æ¡¢ºÇ½é¤Î¥ª¥×¥·¥ç¥ó°Ê³°¤Î°ú¿ô¤Ï¡¢¥³¥Þ¥ó¥É¤Î¥Õ¥¡¥¤¥ëÌ¾¤È¤ß¤Ê¤µ¤ì¤Þ¤¹¡£¥·¥§¥ë¤Ï¤³¤Î¥Õ¥¡¥¤¥ë¤ò¥ª¡¼¥×¥ó¤·¡¢ºÆÃÖ´¹¤Ë¤½¤Ê¤¨¤Æ¥¼¥íÈÖÌÜ¤Î°ú¿ô `$0' ¤È¤·¤Æ¤½¤Î¥Õ¥¡¥¤¥ëÌ¾¤òµ­²±¤·¤Þ¤¹¡£Â¿¤¯¤Î¥·¥¹¥Æ¥à¤¬¥Ð¡¼¥¸¥ç¥ó 6 ¤« 7 ¤Î¥·¥§¥ë¤òºÎÍÑ¤·¤Æ¤¤¤Þ¤¹¤¬¡¢¤³¤ì¤é¤Î¥·¥§¥ë¡¦¥¹¥¯¥ê¥×¥È¤Ï¤³¤Î¥·¥§¥ë¤È¤Î¸ß´¹À­¤ò»ý¤Á¤Þ¤»¤ó¡£¤·¤¿¤¬¤Ã¤Æ¥·¥§¥ë¤Ï¥¹¥¯¥ê¥×¥È¤ÎºÇ½é¤ÎÊ¸»ú¤¬ `#' ¤Ç¤Ê¤¤¡Ê¤Ä¤Þ¤ê¥¹¥¯¥ê¥×¥È¤¬Ãí¼á¤Ç¤Ï¤¸¤Þ¤ë¤Î¤Ç¤Ê¤±¤ì¤Ð¡Ë¤½¤ì¤é¤Î¡ÖÉ¸½à¡×¥·¥§¥ë¤ò¼Â¹Ô¤·¤Þ¤¹¡£»Ä¤µ¤ì¤¿°ú¿ô¤Ï argv ÊÑ¿ô¤ò½é´ü²½¤·¤Þ¤¹¡£

¡Î¥·¥°¥Ê¥ë¤Î¼è¤ê°·¤¤¡Ï

¥·¥§¥ë¤ÏÉáÄÌ QUIT ¥·¥°¥Ê¥ë¤òÌµ»ë¤·¤Þ¤¹¡£`&', `bg' ¤¢¤ë¤¤¤Ï %... & ¥³¥Þ¥ó¥É¤Ê¤É¤Ç¥Ç¥¿¥Ã¥Á¤µ¤ì¤Æ¡Ê¤½¤Î¼Â¹Ô¤Î½ªÎ»¤òÂÔ¤¿¤º¤ËÂ¾¤Î¥¸¥ç¥Ö¤¬Áö¤Ã¤Æ¤¤¤ë¾õÂÖ¡ËÁö¤Ã¤Æ¤¤¤ë¥¸¥ç¥Ö¤Ï¥­¡¼¥Ü¡¼¥É¤«¤éÆþÎÏ¤µ¤ì¤¿¥·¥°¥Ê¥ë¤«¤é¤Ï¡¢HUP ¤ò´Þ¤á¡¢±Æ¶Á¤ò¼õ¤±¤Þ¤»¤ó¡£¤½¤ÎÂ¾¤Î¥·¥°¥Ê¥ë¤Ï¡¢¥·¥§¥ë¤¬¤½¤Î¿Æ¤«¤é°ú¤­·Ñ¤¤¤ÀÃÍ¤ò¤â¤Ä¤³¤È¤Ë¤Ê¤ê¤Þ¤¹¡£¥·¥§¥ë¡¦¥¹¥¯¥ê¥×¥È¤Ë¤ª¤¤¤Æ¡¢³ä¤ê¹þ¤ß INT ¥·¥°¥Ê¥ë¤ä½ªÎ» TERM ¤ò»È¤Ã¤Æ¤¤¤ë¥·¥§¥ë¤ÏÁÈ¤ß¹þ¤ß¥³¥Þ¥ó¥É onintr ¤Ë¤è¤Ã¤ÆÀßÄê¤µ¤ì¤Þ¤¹¡£¥í¥°¥¤¥ó¡¦¥·¥§¥ë¤Ï TERM ¥·¥°¥Ê¥ë¤ò¼õ¤±¼è¤ê¤Þ¤¹¤¬¡¢¤½¤¦¤Ç¤Ê¤¤¾ì¹ç¤Ï¡¢TERM ¥·¥°¥Ê¥ë¤Ï¥·¥§¥ë¤Î»Ò¥×¥í¥»¥¹¤ËÅÏ¤µ¤ì¤Þ¤¹¡£¤É¤ó¤Ê¾ì¹ç¤Ë¤â¥í¥°¥¤¥ó¡¦¥·¥§¥ë¤¬ `.logout' ¥Õ¥¡¥¤¥ë¤òÆÉ¤ß¹þ¤ó¤Ç¤¤¤ë¤È¤­¤Ï¡¢³ä¤ê¹þ¤ß¤Ïµö²Ä¤µ¤ì¤Þ¤»¤ó¡£

¡Î³ÈÄ¥ÈÇC¥·¥§¥ë¤ÎÆÃÄ§¡Ï
NeXT ¥³¥ó¥Ô¥å¡¼¥¿¤Ç¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤ëC¥·¥§¥ë¤Î¥Ð¡¼¥¸¥ç¥ó¤Ë¤Ï¤¤¤¯¤Ä¤«¤Î³ÈÄ¥µ¡Ç½¤¬¼Â¸½¤µ¤ì¤Æ¤¤¤Þ¤¹¡£¤½¤ì¤é¤Ï¥³¥Þ¥ó¥ÉÆâ¤Ç¤Î¹ÔÊÔ½¸¡¢¥­¥ë¡¦¥Ð¥Ã¥Õ¥¡¡¢¼«Æ°Åª¤Êµ­Ï¿¡¦Éü¸µµ¡Ç½¤ò¤½¤Ê¤¨¥Ò¥¹¥È¥ê¡¦¥ê¥¹¥È¤ò¼«Í³¤Ë¥¢¥¯¥»¥¹¤Ç¤­¤ë¥Þ¥ë¥Á¡¦¥é¥¤¥ó¤Î¥­¡¼¥Ü¡¼¥É¡¦¥Þ¥¯¥í¡¢¤½¤·¤Æ¥æ¡¼¥¶¤Ë¤è¤Ã¤ÆÀßÄê²ÄÇ½¤Ê¥­¡¼¤Î¥Ð¥¤¥ó¥Ç¥£¥ó¥°¤Ê¤É¤Ç¤¹¡£¸½ºß¡¢»ÈÍÑ²ÄÇ½¤Êµ¡Ç½¤È¤½¤ì¤é¤Î¥Ç¥Õ¥©¥ë¥È¤Î¥­¡¼¤Î¥Ð¥¤¥ó¥Ç¥£¥ó¥°¤Ë¤Ä¤¤¤Æ¤Ï¸å½Ò¤Î¡Ø¥Ð¥¤¥ó¥Ç¥£¥ó¥°¡Ù¤Î¾Ï¤ò»²¾È¤·¤Æ¤¯¤À¤µ¤¤¡£ÂçÉôÊ¬¤Ë¤Ä¤¤¤Æ¤Ï¥ê¥¹¥ÈÃæ¤Î¥ë¡¼¥Á¥ó¤ÎÌ¾Á°¤«¤éµ¡Ç½¤ÏÍý²ò¤µ¤ì¤ë¤È»×¤ï¤ì¤Þ¤¹¡£

¥·¥§¥ë¤ÎÊÔ½¸¥â¡¼¥É¤Ï¥æ¡¼¥¶¤¬ .cshrc ¤Î¥Õ¥¡¥¤¥ë¤Ç¡¢emacs ¤ËÀßÄê¤¹¤ë¥·¥§¥ë¤Î editmode ÊÑ¿ô¤Ë¤è¤Ã¤Æ·èÄê¤µ¤ì¤Þ¤¹¡£ editmode ÊÑ¿ô¤¬¥»¥Ã¥È¤µ¤ì¤Æ¤¤¤Ê¤¤¾ì¹ç¥·¥§¥ë¤Ï dumb¡ÊÌÛ¤Ã¤¿¡Ë¥â¡¼¥É¤ÇÆ°¤­¤Þ¤¹¡£¥â¡¼¥É¤Ï¥·¥§¥ë¤ò¥¹¥¿¡¼¥È¡¦¥¢¥Ã¥×¤µ¤»¤¿¸å¤Ë¥»¥Ã¥È¤¹¤ë¤³¤È¤â¤Ç¤­¤Þ¤¹¡£¥·¥§¥ë¤¬ dumb ¥â¡¼¥É¤ÇÆ°¤¤¤Æ¤¤¤ë¤³¤È¤¬Ê¬¤«¤Ã¤¿¤é¥í¥°¥¢¥¦¥È¤·¤Æ¥í¥°¥¤¥ó¤·Ä¾¤µ¤Ê¤¯¤Æ¤â¥â¡¼¥É¤òÊÑ¤¨¤é¤ì¤Þ¤¹¡£ editmode ÊÑ¿ô¤ò¥»¥Ã¥È¤·¤¿·ë²Ì¡¢½ÅÍ×¤ÊÉûºîÍÑ¤¬ÆóÅÀÈ¯À¸¤·¤Þ¤¹¡£
(1) ¥­¡¼¤Î¥Ð¥¤¥ó¥Ç¥£¥ó¥°¤¬ºÆÉ¾²Á¤µ¤ì¤Þ¤¹¡£
(2) EDITMODE ´Ä¶­ÊÑ¿ô¤ò¥»¥Ã¥È¤·¤Þ¤¹¤¬¡¢¤³¤ì¤Ï¥·¥§¥ëÆâ¤Ç¤ÏÌµ¸ú¤Ç¤¹¡£¤·¤¿¤¬¤Ã¤Æ¥æ¡¼¥¶¤¬ÊÔ½¸¥â¡¼¥É¤òÊÑ¤¨¤è¤¦¤È¤·¤ÆÄ¾ÀÜ¡¢´Ä¶­ÊÑ¿ô¤òÊÑ¹¹¤¹¤ë¤³¤È¤Ï¤Ç¤­¤Þ¤»¤ó¡£  

Ã¼Ëö¤Î¥³¥ó¥È¥í¡¼¥ëµ¡Ç½¤Ï¥æ¡¼¥¶¤Î termcap ¥Õ¥¡¥¤¥ë¡ÊÉáÄÌ /etc/termcap¡Ë¤«¤é¥·¥§¥ëÊÑ¿ô term ¡Ê´Ä¶­ÊÑ¿ô TERM ¤Ç¤Ï¤¢¤ê¤Þ¤»¤ó¡Ë¤ÇÃ¼Ëö¤Î¥¿¥¤¥×¤ò»ØÄê¤·¤Æ¤«¤é°ú¤­½Ð¤¹¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£¥·¥§¥ëÊÑ¿ô term ¤¬¥»¥Ã¥È¤µ¤ì¤Æ¤¤¤Ê¤¤¾ì¹ç¡¢Ì¤ÃÎ¤Î¾ì¹ç¤¢¤ë¤¤¤Ï termcap ¤ÎÄêµÁ¤¬ÉÔÅ¬Åö¤Ê¾ì¹ç¤Ë¤Ï·Ù¹ð¤¬½Ð¤µ¤ìÂçÉôÊ¬¡¢¤¢¤ë¤¤¤ÏÁ´Éô¤Î¥·¥§¥ë¤ÎÊÔ½¸¤ÎÆÃÄ§¤Ï¾ÃÌÇ¤·¤Þ¤¹¡£editmode ÊÑ¿ô¤¬ emacs ¤Ë¥»¥Ã¥È¤µ¤ì¤ëÁ°¤Ë¥·¥§¥ëÊÑ¿ô term ¤òÅ¬Åö¤ÊÃÍ¤Ë¥»¥Ã¥È¤·¤Æ¤ª¤¯¤Î¤Ï¥æ¡¼¥¶¤ÎÀÕÇ¤¤Ç¤¹¡£ÄÌ¾ï¤³¤ì¤Ï .cshrc ¥Õ¥¡¥¤¥ë¤ËÂÐ¤·¤Æ¤ª¤³¤Ê¤¤¤Þ¤¹¡£¥·¥§¥ë¤¬¥¹¥¿¡¼¥È¡¦¥¢¥Ã¥×¤·¤¿¤È¤­¤Ë¡¢ÊÑ¿ô term ¤¬Å¬Åö¤ÊÃÍ¤Ë¥»¥Ã¥È¤µ¤ì¤Æ¤¤¤Ê¤¤¤¿¤á¤ËÊÔ½¸¤¬ÉÔÇ½¤Ç¤¢¤ë¾ì¹ç¡¢Å¬Åö¤ÊÃÍ¤ò¥»¥Ã¥È¤·¤Æ¤ä¤ì¤ÐÄÌ¾ï¥·¥§¥ë¤Î¥¨¥Ç¥£¥¿¤Ï»ÈÍÑ²ÄÇ½¤Ë¤Ê¤ê¤Þ¤¹¡£¥·¥§¥ëÊÑ¿ô term ¤ò¥»¥Ã¥È¤¹¤ë¤È´Ä¶­ÊÑ¿ô TERM ¤¬Æ±¤¸ÃÍ¤Ë¥»¥Ã¥È¤µ¤ì¤Þ¤¹¡£¥Ù¥ë (bell) ¤Î¼è¤ê°·¤¤¤Ë¤Ä¤¤¤Æ¤Ï¡Ø¿ÇÃÇ (DIAGNOSTICS)¡Ù¤Î¾Ï¤ò»²¾È¤·¤Æ¤¯¤À¤µ¤¤¡£

¤³¤Î¥·¥§¥ë¤Ë¤Ï¥³¥Þ¥ó¥É `bind-to-key' ¤¬¿·¤·¤¯ÄÉ²Ã¤µ¤ì¤Æ¤¤¤Þ¤¹¡£¤³¤ì¤Ï¸å½Ò¤Î¡Ø¥Ð¥¤¥ó¥Ç¥£¥ó¥°¡Ù¤Î¾Ï¤Ë¥ê¥¹¥Æ¥£¥ó¥°¤·¤Æ¤¢¤ëµ¡Ç½¤Ë²Ã¤¨¥æ¡¼¥¶¤¬ÄêµÁ¤·¤¿¥­¡¼¥Ü¡¼¥É¡¦¥Þ¥¯¥í¤ò¥­¡¼¤Ë¥Ð¥¤¥ó¥É¤Ç¤­¤Þ¤¹¡£¥³¥Þ¥ó¥É¤Î·Á¼°¤Ï¼¡¤ÎÍÍ¤Ë¤Ê¤ê¤Þ¤¹¡£

                bind-to-key function key ...

¤³¤³¤Ç function ¤Ï¸å¤Ë½Ð¤Æ¤¯¤ë¥ê¥¹¥Æ¥£¥ó¥°¤·¤Æ¤¢¤ëµ¡Ç½¤Î¤Ò¤È¤Ä¡¢¤¢¤ë¤¤¤Ï¥­¡¼¥Ü¡¼¥É¡¦¥Þ¥¯¥í¤ò¤·¤á¤¹1Ê¸»ú¤ò¤Þ¤¿¡¢key ¤Ï¥­¡¼¡¦¥·¡¼¥±¥ó¥¹¤ò»ØÄê¤¹¤ë°úÍÑ¤µ¤ì¤¿Ê¸»úÎó¤Ç¤¹¡£key ¤Ë¤Ï¥³¥ó¥È¥í¡¼¥ë¡¦¥­¥ã¥é¥¯¥¿¤ò¤½¤Î¤Þ¤ÞÆþÎÏ¤¹¤ë¤³¤È¤Ï¤Ç¤­¤Þ¤»¤ó¡£ÀÜÆ¬»Ò "\^" ¤ò¤Ä¤±¤Æ "\^X" ¤Î¤è¤¦¤Ë»ØÄê¤·¤Æ¤¯¤À¤µ¤¤¡£Æ±ÍÍ¤Ë¤·¤Æ¥¨¥¹¥±¡¼¥×¤Ï "\e" ¥¹¥é¥Ã¥·¥å¤Ï "\\" ¤ÈÉ½µ­¤·¤Æ¤¯¤À¤µ¤¤¡£¤³¤ì¤é¥¨¥¹¥±¡¼¥×¤È ^X (control-X) ¤Î¤ß¤¬»È¤Ã¤Æ¤è¤¤ÀÜÆ¬»Ò "prefix" Ê¸»ú¤Ç¤¹¡£°Ê²¼¤Î¥Ë¡¼¥â¥Ë¥Ã¥¯¤¬»È¤¨¤Þ¤¹¡£"\t" ¤Ï¥¿¥Ö¤ò¡¢"\^?" ¤Ï¥é¥Ö¡¦¥¢¥¦¥È¤ò¡¢"\n"¤Ï¥Ë¥å¡¼¥é¥¤¥ó¤ò¤½¤·¤Æ "\r" ¤Ï²þ¹Ô¤Î¤½¤ì¤¾¤ì¤ÎÊ¸»ú¤òÉ½¤·¤Þ¤¹¡£¥·¥§¥ë¤Ï²þ¹Ô¤ò¥Ë¥å¡¼¥é¥¤¥ó¤ËÃÖ´¹¤¹¤ë¤Î¤Ç¡¢¥Ë¥å¡¼¥é¥¤¥ó¤Î¥Ð¥¤¥ó¥Ç¥£¥ó¥°¤ÏÊÑ¹¹¤·¤Ê¤¤¤Û¤¦¤¬¸­ÌÀ¤Ç¤·¤ç¤¦¡£

¥¨¥Ç¥£¥¿¤Î½é´ü²½¤Î´Ö¤Ë¡¢¥·¥§¥ë¤Ï¥æ¡¼¥¶¤Î¥Û¡¼¥à¡¦¥Ç¥£¥ì¥¯¥È¥ê¤Ë¤¢¤ë¡¢.bindings ¥Õ¥¡¥¤¥ë¤òÆÉ¤ß¹þ¤ß¤Þ¤¹¡£¥Ç¥Õ¥©¥ë¥È¤Ç¤Ê¤¤¥­¡¼¡¦¥Ð¥¤¥ó¥Ç¥£¥ó¥°¤òÄê´üÅª¤ËÍ­¸ú²½¤·¤Æ»È¤¤¤¿¤¤¾ì¹ç¤Ï¡¢Å¬Åö¤Ê bind-to-key ¥³¥Þ¥ó¥É¤ò ~/.bindings ¥Õ¥¡¥¤¥ë¤ËÇ¼¤á¤Æ¤¯¤À¤µ¤¤¡£¸½ºß bind-to-key ¥³¥Þ¥ó¥É¤Ï ~/.cshrc ¥Õ¥¡¥¤¥ë¤Ë¤¢¤ì¤Ð»ÈÍÑ¤Ç¤­¤Þ¤¹¤¬¾­Íè¤Ï ~/.bindings ¥Õ¥¡¥¤¥ë¤Ë¤¢¤ì¤Ð»ÈÍÑ¤Ç¤­¤ë¤è¤¦¤Ë¤Ê¤ê¤Þ¤¹¡£

"!" ¤Ë¤è¤ë¥Ò¥¹¥È¥êµ¡Ç½¤Î»ÏÆ°¤Ï¥³¥Þ¥ó¥É¹Ô¤Ë¥Þ¥Ã¥Á¤¹¤ë¥³¥Þ¥ó¥É¤ò¼Â¹Ô¤Ë¤µ¤­¤À¤Ã¤ÆÁÞÆþ¤µ¤»¤ë¤«¡¢¤¢¤ë¤¤¤Ï¥³¥Þ¥ó¥É¤òÂ¨ºÂ¤Ë¼Â¹Ô¤¹¤ë¤«¤Î¤¤¤º¤ì¤«¤Ç¤¹¡£¤É¤Á¤é¤Ë¤¹¤ë¤«¤Ï¥·¥§¥ëÊÑ¿ô¤Î edithist ¤Ç¤­¤á¤é¤ì¤Þ¤¹¤¬¡¢¤³¤ì¤Ï¥·¥§¥ëÊÑ¿ô¤Îeditmode ¤¬¥»¥Ã¥È¤µ¤ì¤ë¤È¤­¼«Æ°Åª¤Ë¥»¥Ã¥È¤µ¤ì¤Þ¤¹¡£¤³¤ì¤Ë¤è¤ê¥Ò¥¹¥È¥êµ¡¹½¤Ë¤è¤ë¤½¤³¤Þ¤Ç¤Î¥³¥Þ¥ó¥É¤Î¥¨¥Ç¥£¥Ã¥È¤¬²ÄÇ½¤Ë¤Ê¤ê¤Þ¤¹¡£¤Ê¤ª¤³¤Îµ¡Ç½¤Ï¥³¥Þ¥ó¥É "unset edithist" ¤ò¥æ¡¼¥¶¤Î .cshrc ¥Õ¥¡¥¤¥ë¤ËÃÖ¤¯¤³¤È¤Ë¤è¤Ã¤Æ¥ª¥Õ¤·¤Æ¤ª¤¯¤³¤È¤â¤Ç¤­¤Þ¤¹¡£

¡Î³ÈÄ¥ÈÇC¥·¥§¥ëµ¡Ç½¤ÎÍøÍÑ¡Ï
³ÈÄ¥ÈÇC¥·¥§¥ë¤Î½ôµ¡Ç½¤òÍøÍÑ¤¹¤ë¤Ë¤Ï¥Û¡¼¥à¡¦¥Ç¥£¥ì¥¯¥È¥ê¤Î .cshrc ¥Õ¥¡¥¤¥ë¤Ë

	"set editmode = emacs"

¤òÂÇ¤Á¹þ¤ó¤Ç¤¯¤À¤µ¤¤¡£ .cshrc ¥Õ¥¡¥¤¥ë¤¬¤Ê¤¤¾ì¹ç¤Ï¿·µ¬¤ËºîÀ®¤·¤Æ¤½¤ÎËöÈø¤Ë¤³¤Î¹Ô¤ò¤Ä¤±²Ã¤¨¤Æ¤¯¤À¤µ¤¤¡£°ìÅÙ¥í¥°¡¦¥¢¥¦¥È¤·¤ÆºÆ¤Ó¥í¥°¡¦¥¤¥ó¤¹¤ì¤Ð¿·¤·¤¤¥·¥§¥ë¤È¤·¤Æ»È¤¨¤Þ¤¹¡£

¡Î¥Ð¥¤¥ó¥Ç¥£¥ó¥°¡Ï
¸½ºß¥¤¥ó¥×¥ê¥á¥ó¥È¤µ¤ì¤Æ¤¤¤ëµ¡Ç½¤È¥Ç¥Õ¥©¥ë¥È¤Î¥­¡¼¡¦¥Ð¥¤¥ó¥Ç¥£¥ó¥°¤ò°Ê²¼¤Ë¼¨¤·¤Þ¤¹¡£

Emacs     		µ¡Ç½¤ÎÌ¾Á°          	Å¦Í×

^B			Backspace 
ESC-b		BackwardWord
^A			BeginningOfLine 
^L			ClearScreen 
			DefaultBinding
ESC-n		DefineNamedMacro    	¥Þ¥¯¥í¤ÎÌ¿Ì¾
^D			DeleteCurrentChar 
^H			DeletePreviousChar
ESC-d		DeleteWord          	¥«¡¼¥½¥ë¤Î¸åÊý
			EndOfFile           	¥·¥§¥ë¤ò½ªÎ»
^E			EndOfLine 
			EraseLine           	¤½¤Î¹ÔÁ´ÂÎ¤òËõ¾Ã
ESC-h		EraseWord           	¥«¡¼¥½¥ë¤ÎÁ°Êý
ESC-e		ExecuteNamedMacro 
ESC-x     		ExecuteNamedMacro 
^X-e      		ExecuteUnNamedMacro 
ESC-ESC		FilenameExpansion 
ESC-1		FilenameList
^F        		ForwardChar 
ESC-f     		ForwardWord 
^W        		KillRegion         	¥Ð¥Ã¥Õ¥¡¤òËõ¾Ã
^K        		KillToEOL          	¥Ð¥Ã¥Õ¥¡¤òËõ¾Ã
                    	IncrementalsearchForward
                    	IncrementalsearchReverse
                    	InsertChar          	¤½¤ì¼«¿È¤òÁÞÆþ
^V        		InsertLiteralChar 
^X^R      		LoadMacroFile
^N        		NextHistEntry       	¥é¥Ã¥×¥¢¥é¥¦¥ó¥É
^P        		PreviousHistEntry   	¥é¥Ã¥×¥¢¥é¥¦¥ó¥É
^R        		Redisplay          	¹Ô¤ÎºÆÉ½¼¨
^U        		Repetition          	1°Ê¾å
^M,^J     		return
^X^S      		SaveMacroFile 
^@        		SetMark		BOL(Beginning of Line) ¥Ç¥Õ¥©¥ë¥È¤Î¥Þ¡¼¥¯ 
	                 	 SearchReverse       	¼¡¤ÎÊ¸»ú¤òÁöºº
         	         SearchForward      	¼¡¤ÎÊ¸»ú¤òÁöºº
^Q        		StartFlow          	"FLOW CONTROL"  ¤ò»²¾È
^X-(      		StartRemembering    	¥Þ¥¯¥í¤Î³«»Ï
^S        		StopFlow           	"FLOW CONTROL"  ¤ò»²¾È
^X-)      		StopRemembering     	¥Þ¥¯¥í¤Î½ªÎ»
^I        		Tab                 	8¸ÄÊ¬¤Î¶õÇò¤òÁÞÆþ
^T        		TransposeChars      	¥«¡¼¥½¥ë¤ÎÁ°Êý
^Y        		YanKillBuffer      	ring¤ÏËõ¾Ã¤·¤Ê¤¤

¥æ¡¼¥¶¤Ï¥·¥§¥ë¤Î "bind-to-key" ¥³¥Þ¥ó¥É¤ò»È¤Ã¤Æµ¡Ç½¤Î¥­¡¼¤ËÂÐ¤¹¤ë³ä¤êÅö¤Æ (bindings) ¤òÊÑ¹¹¤¹¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£¤³¤ì¤é¤Î¥³¥Þ¥ó¥É¤Ï¥æ¡¼¥¶¤Î¥Û¡¼¥à¡¦¥Ç¥£¥ì¥¯¥È¥ê¤Ë¤¢¤ë .bindings ¥Õ¥¡¥¤¥ë¤Ë¤¢¤ê¡¢¥¨¥Ç¥£¥¿¤¬½é´ü²½¤µ¤ì¤¿»þ¤Ë¥·¥§¥ë¤¬ÆÉ¤ß¼è¤ê¤Þ¤¹¡£

Ãí°Õ: ¥·¥§¥ëÊÑ¿ô binding ¤Ï¤³¤³¤Ç¤Ï¤â¤¦¥µ¥Ý¡¼¥È¤µ¤ì¤Æ¤¤¤Þ¤»¤ó¡£¤Þ¤¿¾­Íè¤Î¥ê¥ê¡¼¥¹¤Ç¤ÏÌµ¸ú¤Ë¤Ê¤ë¸«¹þ¤ß¤Ç¤¹¡£¤½¤ÎÁ°¤Ë ~/.bindings ¥Õ¥¡¥¤¥ë¤ò»ÈÍÑ¤¹¤ë¤è¤¦¤Ë¤·¤Æ¤ª¤¤¤Æ¤¯¤À¤µ¤¤¡£

¡Î¥Õ¥í¡¼¡¦¥³¥ó¥È¥í¡¼¥ë¡Ï
¥Õ¥í¡¼¡¦¥³¥ó¥È¥í¡¼¥ë¤Ï¥·¥§¥ë¤Ç¤Ï¤Ê¤¯Ã¼Ëö¤Î¥É¥é¥¤¥Ð¤¬¤ª¤³¤Ê¤¤¤Þ¤¹¡£¤³¤Î¥É¥é¥¤¥Ð¤ÏÄÌ¾ï¡¢^S ¤ª¤è¤Ó ^Q ¤Ë¤è¤Ã¤Æ¤½¤ì¤¾¤ìÃ¼Ëö¤Ø¤Î½ÐÎÏ¤òÄä»ß¤Ê¤¤¤·ºÆ³«¤µ¤»¤Þ¤¹¡£¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¥·¥§¥ë¤Ï¤³¤ì¤é¤Î¥Ð¥¤¥ó¥Ç¥£¥ó¥°¤ò¥ª¡¼¥Ð¡¼¥é¥¤¥É¡Ê¤³¤ì¤é¤Î¥­¡¼¤òÊÌ¤Îµ¡Ç½¤Ë³ä¤êÅö¤Æ¤ë»ö¡Ë¤·¤Þ¤»¤ó¤¬¡¢¥æ¡¼¥¶¤Ï ^S ¤ª¤è¤Ó ^Q¤òºÆÅÙ¥Ð¥¤¥ó¥Ç¥£¥ó¥°¤·¤Æ StopFlow¡¢StartFlow °Ê³°¤Îµ¡Ç½¤Ë³ä¤êÅö¤Æ¤ë»ö¤¬¤Ç¤­¤Þ¤¹¡£

StopFlow¡¢StartFlow µ¡Ç½¤Î¡¢¤¢¤ë¥­¡¼¤Ø¤Î³ä¤êÅö¤Æ¤ÏÃ¼Ëö¥É¥é¥¤¥Ð¤¬¤½¤ì¤é¤Î¥Õ¥í¡¼¡¦¥³¥ó¥È¥í¡¼¥ë¤òÀµ¤·¤¯¼Â¹Ô¤¹¤ë¤è¤¦¤Ë²ò¼á¤µ¤ì¤ë¤È¤­¤Ë¤Î¤ßÍ­¸ú¤Ç¤¹¡£¤¤¤¤¤«¤¨¤ë¤ÈÄÌ¾ï ^S ¤ª¤è¤Ó ^Q ¤Ç¼Â¹Ô¤µ¤ì¤ë¤Î¤ò¤ï¤¶¤ï¤¶¤Û¤«¤Î¥­¡¼¤Ë³ä¤êÅö¤Æ¤ë¤³¤È¤Ï¤Ç¤­¤Þ¤»¤ó¡£

¡Î¥­¡¼¥Ü¡¼¥É¡¦¥Þ¥¯¥í¡Ï
¥­¡¼¥Ü¡¼¥É¡¦¥Þ¥¯¥í¤Ï·«¤êÊÖ¤·¤Æ»È¤¦¥ª¥Ú¥ì¡¼¥·¥ç¥ó¤äÄ¹¤¤¥³¥Þ¥ó¥É¤ò¥¿¥¤¥×¤¹¤ë¼ê´Ö¤ò¾Ê¤¯¤¿¤á¤Ë»È¤¤¤Þ¤¹¡£°Ê²¼¤ÎÎã¤Ç¤Ï Emacs ¤ò»ÏÆ°¤µ¤»¥Ð¥Ã¥Õ¥¡Æâ¤Ç¥·¥§¥ë¤òµ¯Æ°¤µ¤»¤ë¥Þ¥¯¥í¤ÎºîÀ®ÊýË¡¤ò¼¨¤·¤Æ¤¤¤Þ¤¹¡£

              % ^X(emacs -eshell 
              % ^X¡Ë

¤³¤ÎÎã¤Ç¤Ï¥Ë¥å¡¼¥é¥¤¥ó¤¬ÁÈ¤ß¹þ¤ó¤Ç¤¢¤ê¥Þ¥ë¥Á¥é¥¤¥ó¡ÊÊ£¿ô¹Ô¤Ë¤ï¤¿¤ë¡Ë¥Þ¥¯¥í¤Ë¤Ê¤Ã¤Æ¤¤¤Þ¤¹¡£¥æ¡¼¥¶¤Ï¤³¤Î¥Þ¥¯¥í¤Ë²¼¤Î¤è¤¦¤Ë1Ê¸»ú¤ÇÌ¾Á°¤òÉÕ¤±¤ë»ö¤¬¤Ç¤­¤Þ¤¹¡£

              % \ene					(escape-n-e).

¥Þ¥¯¥í¤Ï "\exe" ¤È¥¿¥¤¥×¤·¤Æ¼Â¹Ô¤µ¤»¤Þ¤¹¡£¤³¤ì¤â¤Þ¤¿¡¢"bind-to-key" ¥³¥Þ¥ó¥É¤ò»È¤Ã¤Æ¥­¡¼¤Ë¥Ð¥¤¥ó¥Ç¥£¥ó¥°¤Ç¤­¤Þ¤¹¡£¥Þ¥¯¥í¤Ï¤Þ¤¿¥Õ¥¡¥¤¥ë¤Ë³ÊÇ¼¤·¤Æ¤ª¤­¥·¥§¥ë¤Îµ¯Æ°»þ¤Ë¼«Æ°Åª¤Ë¥í¡¼¥É¤µ¤»¤ë¤è¤¦¤Ë¤·¤Æ¤ª¤¯¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£

¡Î¥Þ¥¯¥í¤ÎºîÀ®¡Ï
¿·µ¬¤Ë¥Þ¥¯¥í¤òºîÀ®¤¹¤ë¤Ë¤Ï¡¢¥Ç¥Õ¥©¥ë¥È¤Ç ^X¡Ê¤Ë¥Ð¥¤¥ó¥É¤µ¤ì¤Æ¤¤¤ë"StartRemembering" µ¡Ç½¤ò»È¤¤¤Þ¤¹¡£Æ±ÍÍ¤Ë¡¢^X¡Ë¤Ë¥Ð¥¤¥ó¥É¤µ¤ì¤Æ¤¤¤ë "StopRemembering" ¤¬¼Â¹Ô¤µ¤ì¤ë¤Þ¤Ç¤Î´Ö¤Î¥­¡¼¡¦¥¹¥È¥í¡¼¥¯¤Ï¡¢"unnamed"¡ÊÌ¾Á°¤ÎÉÕ¤¤¤Æ¤¤¤Ê¤¤¡Ë¥­¡¼¥Ü¡¼¥É¡¦¥Þ¥¯¥í¤È¤·¤Æµ­²±¤µ¤ì¤Þ¤¹¡£ºÇÂç1024Ê¸»úÊ¬¤ò¼ýÍÆ¤¹¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£¥Þ¥¯¥í¤ÎºîÀ®Ãæ¤ËÊÌ¤Î¥Þ¥¯¥í¤òºîÀ®¤¹¤ë¤³¤È¤Ï¤Ç¤­¤Þ¤»¤ó¤¬¡¢¥ë¡¼¥×¤ò·ÁÀ®¤·¤Ê¤¤¤Î¤Ê¤é¤ÐÂ¾¤Î¥Þ¥¯¥í¤ò¼Â¹Ô¤µ¤»¤ë¤³¤È¤Ï¤Ç¤­¤Þ¤¹¡£¤Þ¤ÀÌ¾Á°¤ÎÉÕ¤¤¤Æ¤¤¤Ê¤¤¥Þ¥¯¥í¤Ï¡¢^Xe ¤Ë¥Ð¥¤¥ó¥É¤µ¤ì¤Æ¤¤¤ë "ExecuteUnNamedMacro" µ¡Ç½¤Ë¤è¤Ã¤Æ¼Â¹Ô¤Ç¤­¤Þ¤¹¡£"unnamed" ¥Þ¥¯¥í¤Ï¤¿¤À1¸Ä¤À¤±Â¸ºß¤·¤Þ¤¹¡£

¡ÎÌ¾Á°¤ÎÉÕ¤¤¤¿¥Þ¥¯¥í¡Ï
¥æ¡¼¥¶¤ÏºÇÂç128¸Ä¤Î¡Ênamed ¤Ä¤Þ¤êÌ¾Á°ÉÕ¤­¡Ë¥Þ¥¯¥í¤òºî¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£¥Þ¥¯¥í¤ÎÄêµÁ¤Ï¾å¤Ë¤Î¤Ù¤¿ÊýË¡¤Ç¤Þ¤º "unnamed" ¥Þ¥¯¥í¤òºîÀ®¤·¡¢¼¡¤Ë \en(escape-n) ¤Ë¥Ð¥¤¥ó¥É¤µ¤ì¤Æ¤¤¤ë "DefineNamedMacro" µ¡Ç½¤ÇÌ¾Á°¤òÉÕ¤±¤Þ¤¹¡£¤³¤Î¤È¤­¥Þ¥¯¥í¤ÎÌ¾Á°¤òÃ±°ì¤ÎÊ¸»úÎó¤Î°ú¿ô¤Ç¤¢¤¿¤¨¤Þ¤¹¡£°ÊÁ°ÄêµÁ¤·¤¿Æ±Ì¾¤Î¥Þ¥¯¥í¤¬Â¸ºß¤¹¤ë¾ì¹ç¤Ë¤Ï¸Å¤¤¥Þ¥¯¥í¤ÏËõ¾Ã¤µ¤ì¤Þ¤¹¡£

¡Î¥Þ¥¯¥í¤Î¼Â¹Ô¡Ï
Ì¾Á°¤ÎÉÕ¤¤¤¿¥Þ¥¯¥í¤ò¼Â¹Ô¤µ¤»¤ë¤Ë¤Ï¡¢\ex ¤Ë¥Ð¥¤¥ó¥Ç¥£¥ó¥°¤µ¤ì¤Æ¤¤¤ë"ExecuteNamedMacro" ¤ËÂ³¤­¼Â¹Ô¤¹¤ë¥Þ¥¯¥íÌ¾¤ò¤¢¤¿¤¨¤Þ¤¹¡£Ì¾Á°¤ÎÉÕ¤¤¤¿¥Þ¥¯¥í¤Ï¤Þ¤¿C¥·¥§¥ë¤ÎÁÈ¹þ¤ß¥³¥Þ¥ó¥É bind-to-key ¤ò»È¤Ã¤Æ¥­¡¼¤Ë¥Ð¥¤¥ó¥É¤¹¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£

¡Î¥Þ¥¯¥í¡¦¥Õ¥¡¥¤¥ë¡Ï
¥­¡¼¥Ü¡¼¥É¡¦¥Þ¥¯¥í¤Ï¥Õ¥¡¥¤¥ë¤Ë¥»¡¼¥Ö¤·¤Æ¡¢¤Î¤Á¤Ë¤½¤Î¥Õ¥¡¥¤¥ë¤«¤é¥í¡¼¥É¤¹¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£Ì¾Á°¤ÎÉÕ¤¤¤¿¥Þ¥¯¥í¤ò¥Õ¥¡¥¤¥ë¤Ë¥»¡¼¥Ö¤¹¤ë¤Ë¤Ï¥³¥Þ¥ó¥É¹Ô¤Ç¥Õ¥¡¥¤¥ëÌ¾¤ò¥¿¥¤¥×¤·¡¢¼¡¤Ë ^X^S ¤Ë¥Ð¥¤¥ó¥É¤µ¤ì¤Æ¤¤¤ë"SaveMacroFile" µ¡Ç½¤ò»È¤¤¤Þ¤¹¡£¤¹¤Ç¤Ë¥»¡¼¥Ö¤·¤Æ¤¢¤ë¥Þ¥¯¥í¤òÆÉ¤ß¹þ¤à¤Ë¤Ï¥³¥Þ¥ó¥É¹Ô¤Ç¥Õ¥¡¥¤¥ëÌ¾¤ò¥¿¥¤¥×¤·¤¿¤¢¤È ^X^R ¤Ë¥Ð¥¤¥ó¥É¤µ¤ì¤Æ¤¤¤ë "LoadMacroFile" ¤ò¼Â¹Ô¤·¤Þ¤¹¡£¤³¤ì¤é¥»¡¼¥Ö¤ª¤è¤Ó¥í¡¼¥É¤¬À®¸ù¤·¤¿¤«¤É¤¦¤«¤Ï¥Õ¥¡¥¤¥ëÌ¾¤Î erasure ¤Ç¼¨¤µ¤ì¤Þ¤¹¡£¥Þ¥¯¥í¤òÊ£¿ô¤Î°Û¤Ê¤Ã¤¿¥Õ¥¡¥¤¥ë¤Ë¥»¡¼¥Ö¤¹¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£

Ãí°Õ: ´û¤Ë¥»¡¼¥Ö¤µ¤ì¤¿¥Þ¥¯¥í¤ò¥¨¥Ç¥£¥Ã¥È¤¹¤ë¤Î¤ÏÈò¤±¤¿¤Û¤¦¤¬¸­ÌÀ¤Ç¤¹¡£

¡Î¼«Æ°¥í¡¼¥Ç¥£¥ó¥°¤ª¤è¤Ó¼«Æ°¥»¡¼¥Ó¥ó¥°¥Þ¥¯¥í¡Ï
¥·¥§¥ëÊÑ¿ô macrofiles ¤Ë¡Ê¥æ¡¼¥¶¤Î .cshrc ¥Õ¥¡¥¤¥ëÆâ¤Ç¡Ë¤Ò¤È¤Ä¤Þ¤¿¤Ï¡¢¤½¤ì°Ê¾å¤Î¥»¡¼¥Ö¤µ¤ì¤¿¥­¡¼¥Ü¡¼¥É¡¦¥Þ¥¯¥í¤Î¥Õ¥¡¥¤¥ë¤ò»ØÄê¤·¤Æ¤¤¤ë¾ì¹ç¤Ë¤Ï¡¢¤³¤ì¤é¤Î¥Þ¥¯¥í¤Î¥Õ¥¡¥¤¥ë¤Ï¥·¥§¥ë¤Îµ¯Æ°»þ¤Ë¼«Æ°Åª¤Ë¥í¡¼¥É¤µ¤ì¤Þ¤¹¡£Æ±ÍÍ¤Ë¡¢savemacro ÊÑ¿ô¤Ë¤Ò¤È¤Ä¤Î¥Õ¥¡¥¤¥ë¤ò»ØÄê¤·¤Æ¥æ¡¼¥¶¤¬¥í¥°¡¦¥¢¥¦¥È¤¹¤ë»þ¤Ë¥»¡¼¥Ö¤µ¤»¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£

¡Î¥µ¡¼¥Á¥ó¥°¡Ï 
Ãí°Õ: ¥¤¥ó¥¯¥ê¥á¥ó¥¿¥ë¡¦¥µ¡¼¥Áµ¡Ç½¤ÎÌ¾Á°¤Ï¤³¤Î¥·¥§¥ë¤Î½é´ü¤Î¥ê¥ê¡¼¥¹¤«¤éÊÑ¹¹¤µ¤ì¤Æ¤¤¤Þ¤¹¡£

4¤Ä¤Î¥µ¡¼¥Áµ¡Ç½¤¬¥æ¡¼¥¶¤Ë¤è¤Ã¤Æ»ÈÍÑ²ÄÇ½¤Ç¤¹¡£¤·¤«¤·¤³¤ì¤é¤Ï¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¡¢¥­¡¼¤Ë¤Ï¥Ð¥¤¥ó¥Ç¥£¥ó¥°¤µ¤ì¤Æ¤¤¤Þ¤»¤ó¡£¥Ð¥¤¥ó¥É¤¹¤ë¤Ë¤ÏC¥·¥§¥ë¤Î bind-to-key ¤ò»È¤Ã¤Æ²¼¤µ¤¤¡£

IncrementalSearchForward
¥æ¡¼¥¶¤¬¤³¤Îµ¡Ç½¤ò»È¤¦»þ¤Ï¡¢1Ê¸»ú¤Å¤Ä¤Ç¹½À®¤µ¤ì¤Æ¤¤¤ëÊ¸»úÎó¤Îread/search ¤Î¥ë¡¼¥×¤Ë¤¤¤ë¤³¤È¤Ë¤Ê¤ê¤Þ¤¹¡£¥µ¡¼¥Á¤¹¤ëÊ¸»úÎó¤Ë¿·¤·¤¯Ê¸»ú¤¬ÄÉ²Ã¤µ¤ì¤ë¤È¡¢µ¡Ç½¤ò¼Â¹Ô¤µ¤»¤¿»þ¤Ë¤¢¤Ã¤¿¥«¡¼¥½¥ë¤Î°ÌÃÖ¤ËÂ³¤¯¥³¥Þ¥ó¥É¹Ô¤Ë¤¢¤ë¡¢ºÇ½é¤Î¥Þ¥Ã¥Á¤·¤¿Ê¸»úÎó¤ÎËöÈø¤Ë¥«¡¼¥½¥ë¤¬°ÜÆ°¤·¤Þ¤¹¡£¼¡¤Î¥Þ¥Ã¥Á¤Ë¥«¡¼¥½¥ë¤ò°ÜÆ°¤µ¤»¤ë¤Ë¤Ï¥µ¡¼¥Áµ¡Ç½¤òºÆÅÙ¼Â¹Ô¤µ¤»¤é¤ì¤Þ¤¹¡£¤³¤Î¥ë¡¼¥×¤«¤é½Ð¤ë¤Ë¤Ï ESC ¤ò¥¿¥¤¥×¤·¤Æ¤¯¤À¤µ¤¤¡£

IncrementalSearchReverse
IncrementalSearchForward ¤Ë»÷¤Æ¤¤¤Þ¤¹¡£µ¡Ç½¤ò¼Â¹Ô¤µ¤»¤¿»þ¤Ë¤¢¤Ã¤¿¥«¡¼¥½¥ë¤Î°ÌÃÖ¤è¤êÁ°Êý¤Ë¤¢¤ëºÇ½é¤Ë¥Þ¥Ã¥Á¤·¤¿¤â¤Î¤ÎÀèÆ¬¤Ë¥«¡¼¥½¥ë¤ò¤â¤Ã¤Æ¤­¤Þ¤¹¡£

SearchForward 
¤³¤Îµ¡Ç½¤Ï¼¡¤Ë¥¿¥¤¥×¤¹¤ëÊ¸»ú¤ò¥­¥ã¥Ã¥Á¤·¤Æ¥«¡¼¥½¥ë¤Î¤¢¤ë°ÌÃÖ¤«¤é¥³¥Þ¥ó¥É¹Ô¤ÎËöÈø¤Þ¤Ç¥µ¡¼¥Á¤·¤Þ¤¹¡£¤½¤ÎÊ¸»ú¤¬ºÇ½é¤Ë¸«¤Ä¤«¤Ã¤¿¤È¤³¤í¤Î¼¡¤Ë¥«¡¼¥½¥ë¤ò°ÜÆ°¤µ¤»¤Þ¤¹¡£

SearchReverse 
SearchForward ¤Ë»÷¤Æ¤¤¤Þ¤¹¡£µ¡Ç½¤ò¼Â¹Ô¤µ¤»¤ë¤È¤½¤Î¥³¥Þ¥ó¥É¹Ô¤Î¥«¡¼¥½¥ë¤Î¤¢¤ë°ÌÃÖ¤«¤éÁ°Êý¤ò¥µ¡¼¥Á¤·¤Þ¤¹¡£        

¡Î¤½¤ÎÂ¾¡Ï 
¥·¥§¥ëÊÑ¿ô "breakchars" ¤¬Ê¸»úÎó¤Ç¤¢¤¿¤¨¤é¤ì¤Æ¤¤¤ë¾ì¹ç¡¢¤½¤ÎÊ¸»úÎóÃæ¤Î³ÆÊ¸»ú¤Ï¥ï¡¼¥É¤Î¶èÀÚ¤ê¤È¤·¤ÆÍøÍÑ¤µ¤ì¤ë¤³¤È¤ò°ÕÌ£¤·¤Þ¤¹¡£¥Ç¥Õ¥©¥ë¥È¤Î¥Ö¥ì¡¼¥¯¡¦¥­¥ã¥é¥¯¥¿¤Ï " ", ",", ^I, /, \, (, ), [, ], {, }, ., ;, >, <, !, ^, & ¤ª¤è¤Ó | ¤Ç¤¹¡£¥æ¡¼¥¶¤¬ÄêµÁ¤¹¤ë¥Ö¥ì¡¼¥¯¡¦¥­¥ã¥é¥¯¥¿¤Ï¤³¤ì¤é¤Î°ìÏ¢¤ÎÊ¸»ú¤ËÄÉ²Ã¤µ¤ì¤ë¤Î¤Ç¤ÏÆÈÎ©¤·¤Æ»È¤ï¤ì¤Þ¤¹¡£

¡ÎÃøºî¤Ë¤Ä¤¤¤Æ¡Ï
William Joy ¤Ë¤è¤Ã¤Æºî¤é¤ì¤Þ¤·¤¿¡£¥¸¥ç¥Ö¡¦¥³¥ó¥È¥í¡¼¥ë¤È¥Ç¥£¥ì¥¯¥È¥ê¡¦¥¹¥¿¥Ã¥¯¤Ë¤Ä¤¤¤Æ¤Ï¥ª¡¼¥¹¥È¥ê¥¢¡¢¥é¥¯¥»¥ó¥Ö¥ë¥° (Laxenburg)¡¢I.I.A.S.A ¤ÎJ.E. Kulp ¤Ë¤è¤Ã¤Æ¤³¤³¤Ç¤ÎÊ¸Ë¡¤È¤Ï°ã¤Ã¤¿·Á¼°¤Ç¡¢ºÇ½é¤Ë¥¤¥ó¥×¥ê¥á¥ó¥È¤µ¤ì¤Þ¤·¤¿¡£¥Õ¥¡¥¤¥ëÌ¾Êä´°¡Ê´°Á´²½¡Ë¤Î¥³¡¼¥É¤Ï¡¢Hewlett-Packard ¼Ò¤Î¸¦µæ½ê¤Îken Greer ¤Ë¤è¤Ã¤Æ½ñ¤«¤ì¤Þ¤·¤¿¡£¥³¥Þ¥ó¥É¹Ô¥¨¥Ç¥£¥¿¤Ï¥«¡¼¥Í¥®¡¼¡¦¥á¥í¥óÂç³Ø¤Î Duane Williams ¤Ë¤è¤Ã¤Æ½ñ¤«¤ì¤Þ¤·¤¿¡£

¡Î¥Õ¥¡¥¤¥ë¡Ï
~/.cshrc     ¼Â¹Ô»þ¤ÎºÇ½é¤Ë¥·¥§¥ë¤Ë¤è¤Ã¤ÆÆÉ¤ß¹þ¤Þ¤ì¤Þ¤¹¡£
~/.login     .cshrc ¤Î¤¢¤È¥í¥°¥¤¥ó¡¦¥·¥§¥ë¤Ë¤è¤Ã¤ÆÆÉ¤ß¹þ¤Þ¤ì¤Þ¤¹¡£
~/.logout    ¥í¥°¥¢¥¦¥È»þ¤Ë¥í¥°¥¤¥ó¡¦¥·¥§¥ë¤Ë¤è¤Ã¤ÆÆÉ¤ß¹þ¤Þ¤ì¤Þ¤¹¡£
/bin/sh      `#' ¤Ç»Ï¤Þ¤é¤Ê¤¤¥·¥§¥ë¡¦¥¹¥¯¥ê¥×¥È¡¢¤Ä¤Þ¤êÉ¸½à¥·¥§¥ë
/tmp/sh*     `<<' ¤Ë¤¿¤¤¤¹¤ë°ì»þ¥Õ¥¡¥¤¥ë
/etc/passwd  `~name' ¤Ë¤¿¤¤¤¹¤ë¥Û¡¼¥à¡¦¥Ç¥£¥ì¥¯¥È¥ê¤Î¥½¡¼¥¹
¡ÎÀ©¸Â»ö¹à¡Ï 
¥ï¡¼¥É¤Ï¡¢1024 Ê¸»ú¤ò±Û¤¨¤Æ¤Ï¤¤¤±¤Þ¤»¤ó¡£¤½¤ì¤«¤é¤³¤Î¥·¥¹¥Æ¥à¤Ç¤Ï°ú¿ô¥ê¥¹¥È¤ÎÀ©¸Â¤Ï 10240 Ê¸»ú¤È¤Ê¤Ã¤Æ¤¤¤Þ¤¹¡£¥Õ¥¡¥¤¥ëÌ¾Å¸³«¤ò´Þ¤ó¤À¥³¥Þ¥ó¥É¤Ø¤Î°ú¿ô¤ÎºÇÂçÃÍ¤Ï°ú¿ô¥ê¥¹¥È¤ÎÀ©¸ÂÃÍ (10240) ¤Î 1/6 ¤Ç¤¹¡£ ¥³¥Þ¥ó¥ÉÃÖ´¹¤Ç¤Ï¾åµ­¤Î°ú¿ô¥ê¥¹¥È¤ÎÀ©¸ÂÃÍ¤ò±Û¤¨¤Æ¤ÎÊ¸»ú¤ÎÃÖ´¹¤Ï¤ª¤³¤Ê¤¤¤Þ¤»¤ó¡£¥ë¡¼¥Ô¥ó¥°¤ò¸¡½Ð¤¹¤ë¤¿¤á¤Ë¡¢¥·¥§¥ë¤Ï1¹ÔÃæ¤Ç¤ÎÊÌÌ¾¤Ë¤è¤ëÃÖ´¹¤Î¿ô¤òºÇÂç 20 ¸Ä¤ËÀ©¸Â¤·¤Æ¤¤¤Þ¤¹¡£

¡Î»²¾È¡Ï
sh(1), access(2), execve(2), fork(2), killpg(2), pipe(2), sigvec(2),umask(2), setrlimit(2), wait(2), tty(4), a.out(5), environ(7) ¤ª¤è¤Ó'An introduction to the C Shell' ¤ò»²¾È¤·¤Æ²¼¤µ¤¤¡£

¡Î¿ÇÃÇ¡Ï
¥¨¥Ç¥£¥¿µ¡Ç½¤Ë¤ª¤±¤ë¥¨¥é¡¼¤Î¾õÂÖ¤ÏÄÌ¾ï¥ª¡¼¥Ç¥£¥Ö¥ë¡¦¥Ù¥ë¡Ê¥Ù¥ë²»¡Ë¤ÇÃÎ¤é¤»¤Þ¤¹¡£¥Ó¥¸¥å¥¢¥ë¡¦¥·¥°¥Ê¥ë¤Î¤Û¤¦¤ò¤È¤ê¤¿¤¤¾ì¹ç¤Ë¤Ï¡ÊÃ¼Ëö¤¬¥Ó¥¸¥Ö¥ë¡¦¥Ù¥ëµ¡Ç½¤ò¤â¤Ã¤Æ¤¤¤ì¤Ð¡Ë.cshrc ¥Õ¥¡¥¤¥ë¤Î `visiblebell' ÊÑ¿ô¤ò¥»¥Ã¥È¤·¤Æ¤¯¤À¤µ¤¤¡£¥ª¡¼¥Ç¥£¥Ö¥ë¡¦¥Ù¥ë¡¢¥Ó¥¸¥Ö¥ë¡¦¥Ù¥ë  ¤ÎÎ¾Êý¤È¤â¤òºîÆ°¤µ¤»¤¿¤±¤ì¤Ð `visiblebell' ¤â¥»¥Ã¥È¤·¤Æ¤¯¤À¤µ¤¤¡£¥¨¥é¡¼¤Ë¤¿¤¤¤·¤Æ²¿¤â¤·¤Æ¤Û¤·¤¯¤Ê¤±¤ì¤Ð `nobell' ÊÑ¿ô¤ò¥»¥Ã¥È¤·¤Æ¤¯¤À¤µ¤¤¡£    

¡ÎÃí°Õ»ö¹à¡Ï
¥³¥Þ¥ó¥É¤¬Ää»ß¾õÂÖ¤«¤éºÆ¤Ó¥¹¥¿¡¼¥È¤·¤¿¤È¤­¡¢¤½¤Î¥Ç¥£¥ì¥¯¥È¥ê¤¬¥«¥ì¥ó¥È¡¦¥Ç¥£¥ì¥¯¥È¥ê¤È°ã¤Ã¤Æ¤¤¤ë¾ì¹ç¤Ï¤½¤Î¥¹¥¿¡¼¥È¤¬µ¯¤³¤Ã¤¿¥Ç¥£¥ì¥¯¥È¥ê¤¬É½¼¨¤µ¤ì¤Þ¤¹¡£¤³¤ì¤Ï¥¸¥ç¥Ö¤¬ÆâÉôÅª¤Ë¥Ç¥£¥ì¥¯¥È¥ê¤òÊÑ¹¹¤¹¤ë¤³¤È¤â¤¢¤ë¤Î¤Ç¸í²ò¤ò¾·¤­¤Þ¤¹¡£

¥·¥§¥ë¤ÎÁÈ¤ß¹þ¤ß´Ø¿ô¤Ï¥¹¥È¥Ã¥×¤â¥ê¥¹¥¿¡¼¥È¤â¤Ç¤­¤Þ¤»¤ó¡£`a ; b ; c' ¤Î·Á¼°¤Ç¤Î¥³¥Þ¥ó¥É¤ò¼Â¹Ô¤µ¤»¤Æ¤¤¤ë¤È¤­¤ËÄä»ß¤¬»î¤ß¤é¤ì¤¿¾ì¹ç¡¢¤³¤Î¾õÂÖ¤òÅÔ¹ç¤è¤¯¥³¥ó¥È¥í¡¼¥ë¤Ç¤­¤Þ¤»¤ó¡£`b' ¤¬Ãæ»ß¤µ¤ì¤¿»þ¥·¥§¥ë¤ÏÄ¾¤Ë `c' ¤ò¼Â¹Ô¤·¤Þ¤¹¡£¤³¤Î¸½¾Ý¤ÏÊÌÌ¾¤Ë¤è¤ëÅ¸³«¤¬¤µ¤ì¤Æ¤¤¤ë¾ì¹ç¤ËÆÃ¤Ë¸²Ãø¤Ë¸½¤ì¤Þ¤¹¡£¤³¤¦¤¤¤¦¥±¡¼¥¹¤Ç¤Ï°ìÏ¢¤Î¥³¥Þ¥ó¥É¤ò () ¤Ç³ç¤ê`( a ; b ; c )' ¤Î¤è¤¦¤Ë¤·¤Æ¥µ¥Ö¡¦¥·¥§¥ë¤Ë³ä¤êÅö¤Æ¤Þ¤¹¡£

¥×¥í¥»¥¹¤¬³«»Ï¤µ¤ì¤¿¤¢¤È¤Î tty ½ÐÎÏ¤ÎÀ©¸æ¤ÏÌ¤¤ÀÈ¯Å¸ÃÊ³¬¤Ë¤¢¤ê¤Þ¤¹¡£³«È¯¼Ô¤ÏÎÉ¼Á¤Ê²¾ÁÛ¤ÎÃ¼Ëö¥¤¥ó¥¿¥Õ¥§¡¼¥¹¤òºî¤í¤¦¤È¤¤¤¦°ÕÍß¤ò¤«¤­¤¿¤Æ¤é¤ì¤ë¤³¤È¤È»×¤ï¤ì¤Þ¤¹¡£²¾ÁÛ¤ÎÃ¼Ëö¥¤¥ó¥¿¥Õ¥§¡¼¥¹¤Ç¤Ï¡¢½ÐÎÏ¤ÎÀ©¸æ¤Ë¤Ä¤¤¤Æ¤è¤ê¶½Ì£¿¼¤¤»ö¤¬¤Ç¤­¤ë¤è¤¦¤Ë¤Ê¤ê¤Þ¤¹¡£

¥·¥§¥ë¤Î¥×¥í¥·¥¸¥ã¤ò¤®¤³¤Á¤Ê¤¯¥·¥ß¥å¥ì¡¼¥·¥ç¥ó¤¹¤ë¤Î¤ËÊÌÌ¾¤Ë¤è¤ëÃÖ´¹¤¬»È¤ï¤ì¤ë¤³¤È¤¬¤è¤¯¤¢¤ê¤Þ¤¹¤¬¡¢ÊÌÌ¾¤ò»ÈÍÑ¤¹¤ë¤è¤ê¥·¥§¥ë¤Î¥×¥í¥·¥¸¥ã¤¬ÍÑ°Õ¤µ¤ì¤ë¤Ù¤­¤Ç¤·¤ç¤¦¡£

¥ë¡¼¥×Æâ¤Î¥³¥Þ¥ó¥É¤Ï `?' ¤Ë¤è¤Ã¤Æ¥×¥í¥ó¥×¥È¤µ¤ì¤Þ¤¹¤¬¡¢¥Ò¥¹¥È¥ê¡¦¥ê¥¹¥È¤Ë¤ÏÆþ¤ì¤é¤ì¤Þ¤»¤ó¡£¥³¥ó¥È¥í¡¼¥ë¤Î¥¹¥È¥é¥¯¥Á¥ã¤ÏÁÈ¹þ¤ß¥³¥Þ¥ó¥É¤È¤·¤Æ¤ß¤Ê¤µ¤ì¤ë¤è¤ê¤Ï²òÀÏ¤µ¤ì¤ë¤Ù¤­¤Ç¤¹¡£¤½¤¦¤¹¤ì¤Ð¥³¥ó¥È¥í¡¼¥ë¡¦¥³¥Þ¥ó¥É¤Ï¤É¤³¤Ë¤Ç¤âÃÖ¤±¡¢`|' ¤È·ë¹ç¤µ¤»¤¢¤ë¤¤¤Ï `&' ¤ä `;' ¤Î¥á¥¿¡¦¥·¥ó¥¿¥Ã¥¯¥¹¤È¶¦¤Ë»È¤ï¤ì¤ë¤è¤¦¤Ë¤Ê¤ê¤Þ¤¹¡£¥³¥Þ¥ó¥ÉÃÖ´¹¤Î½ÐÎÏ¤Ë `:' ½¤¾þ»Ò¤ò»È¤¨¤ë¤è¤¦¤Ë¤Ê¤é¤Ê¤±¤ì¤Ð¤Ê¤ê¤Þ¤»¤ó¡£¤Þ¤¿Á´Éô¤Î¤¢¤ë¤¤¤Ï2¸Ä°Ê¾å¤Î `:' ½¤¾þ»Ò¤ò `$' ÃÖ´¹¤Ë»È¤¨¤ë¤è¤¦¤Ë¤Ê¤é¤Ê¤±¤ì¤Ð¤Ê¤ê¤Þ¤»¤ó¡£

Terminal ¥¢¥×¥ê¥±¡¼¥·¥ç¥ó¾å¤Ç¡¢Ê£¿ô¹Ô¤Ë¤ï¤¿¤ë¥³¥Þ¥ó¥É¹ÔÊÔ½¸¤ò¹Ô¤¦¾ì¹ç¤Ï¡¢Terminal ¥¢¥×¥ê¥±¡¼¥·¥ç¥ó¤Î¥×¥ê¥Õ¥¡¥ì¥ó¥¹¡ÊVT100¥¨¥ß¥å¥ì¡¼¥·¥ç¥ó¡Ë¤Ç¡¢"¸·Ì©¤ÊVT100¥¨¥ß¥å¥ì¡¼¥·¥ç¥ó¤ò¹Ô¤¦"¤ò off ¤ËÀßÄê¤·¤Æ²¼¤µ¤¤