Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: chown and chgrp in files module
- X-seq: zsh-workers 8985
- From: James Kirkpatrick <jimkirk@xxxxxxxx>
- To: Zefram <zefram@xxxxxxxx>
- Subject: Re: PATCH: chown and chgrp in files module
- Date: Thu, 09 Dec 1999 11:19:19 -0700 (MST)
- Cc: zsh-workers@xxxxxxxxxxxxxx
- In-reply-to: <E11w7ZD-0005l7-00@xxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
OK, I understand. "Conditionally builtin" :-)
Jim
On Thu, 9 Dec 1999, Zefram wrote:
> James Kirkpatrick wrote:
> >I'm not sure I understand. chown and chgrp are now builtins?
>
> If you load the files module. If you do nothing, you get the usual
> external programs. rm, mv, ln, mkdir, rmdir and sync are already
> available as builtins in exactly the same way.
>
> > Are they
> >POSIX compliant?
>
> Almost. chown accepts "." to separate username and group, in addition to
> the POSIX ":". This is the same level of POSIX conformance as GNU chown.
>
> >This does not seem to be the sort of thing that should be built in to a
> >shell, any more than rm, ls, find, or a C compiler :-)
>
> It's very useful to have these things built into a statically-linked
> system administration shell. (That's where the request for a builtin
> chown originated.) In addition to the utilities I listed above, we have
> a `stat' module that effectively makes possible a full implementation
> of ls as a shell function, and zsh globbing with glob qualifiers very
> nearly makes find redundant.
>
> -zefram
Messages sorted by:
Reverse Date,
Date,
Thread,
Author