Re: while /usr/bin/read
am 30.03.2008 18:54:48 von Chris Mattern
On 2008-03-29, pk wrote:
> built-ins", I've never seen a /bin/cd or a /bin/alias (which nonetheless
> might exist in some implementations, although I can't imagine why an
> implementation would provide such external commands).
>
Both AIX and Solaris have /usr/bin/cd. I don't have an HP-UX system
handy to check, but I bet they have one too. Linux doesn't, but then
Linux doesn't get POSIX certification, so they don't have to tie themselves
in this sort of knot.
--
Christopher Mattern
NOTICE
Thank you for noticing this new notice
Your noticing it has been noted
And will be reported to the authorities
Re: while /usr/bin/read
am 30.03.2008 19:26:15 von PK
Chris Mattern wrote:
> Both AIX and Solaris have /usr/bin/cd. I don't have an HP-UX system
> handy to check, but I bet they have one too. Linux doesn't, but then
> Linux doesn't get POSIX certification, so they don't have to tie
> themselves in this sort of knot.
Yes, I eventually discovered (thanks to Sven) what POSIX says.
Then to turn linux into a POSIX-compliant system, one could do:
for i in alias bg cd command .... ; do
touch "/usr/bin/$i"
chmod +x "/usr/bin/$i"
done
(ok, just kidding, it's probably not so easy :-))
--
All the commands are tested with bash and GNU tools, so they may use
nonstandard features. I try to mention when something is nonstandard (if
I'm aware of that), but I may miss something. Corrections are welcome.