Re: прикол

From
Vlad Gnatov (2:5020/400)
To
Mikolaj Golub
Date
2006-11-08T21:19:42Z
Area
RU.UNIX.BSD
From: Vlad Gnatov <stalker@rm-rf.kiev.ua>

Mikolaj Golub пишет:
MG> http://www.sunmanagers.org/pipermail/summaries/2001-November/000226.html
MG> Т.е. вроде бы по стандарту положено, чтоб все втроенные команды имели
MG> аналоги-бинарники в стандартном пути. Чтоб exec() не обламывался.
Если быть совсем занудным, то:
IEEE Std 1003.1-2001  1.13 Built-In Utilities:

[..]

However, all of the standard utilities, including the regular built-ins in the

table, but not the special built-ins described in Special Built-In Utilities ,
shall be implemented in a manner so that they can be accessed via the exec
family of functions as defined in the System Interfaces volume of 
IEEE Std 1003.1-2001 and can be invoked directly by those standard utilities
that require it ( env, find, nice, nohup, time, xargs).

Table: Regular Built-In Utilities

alias false jobs read wait
bg fc kill true
cd fg newgrp umask
command getopts pwd unalias

MG> Придумали и применение. Вернее притянули за уши. Если позже нужно будет
MG> работать в каком-то каталоге, то с помощью /usr/bin/cd можно проверить,
MG> что он существует и у нас хватит прав туда зайти не меняя текущий. В
MG> общем, того же самого можно добиться с помощью (cd /путь) :-)
Вреда больше чем пользы. Можно конечно воткнуть внутрь надпись:
POSIX MADNESS!!! DON'T USE!!!111oneone 
Но те, кто пользуется /usr/bin/cd, обычно внутрь не лазят и надписей не
читают.
-- 
Отправлено через сервер Форумы@mail.ru - http://talk.mail.ru
--- ifmail v.2.15dev5.3
 * Origin: Talk.ru (2:5020/400)
SEEN-BY: 50/12 400/814 450/159 1024 461/43 132 640 469/999 4616/3 4625/8
SEEN-BY: 4641/444 5000/76 5000 5006/1 5007/1 5010/70 5011/13 5012/46 5015/28
SEEN-BY: 5019/31 5020/18 175 194 400 545 982 1057 1909 1922 2238 2395 2871
SEEN-BY: 5020/4441 5021/29 5025/3 5026/14 45 5027/12 5030/1080 1957 5034/10 13
SEEN-BY: 5035/3 38 5036/1 5045/7 5049/1 5051/15 5054/1 4 8 9 11 28 35 36 37 45
SEEN-BY: 5054/63 66 67 70 75 84 85 5059/9 5060/88 5061/15 5062/10 5063/3
SEEN-BY: 5064/7 5066/18 5074/9 5075/5 5076/1 5077/70 5080/1003 5084/9 5085/13
SEEN-BY: 5095/20 5096/18 6001/3 10
PATH: 5020/400 545 5054/1 37