Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: ulimit "command not found" when run from a script on NetBSD



On Tue, Sep 20, 2005 at 06:54:57AM +0400, Andrey Borzenkov wrote:
> On Tuesday 20 September 2005 06:07, Bart Schaefer wrote:
> > On Sep 19,  2:21pm, Vincent Stemen wrote:
> > }
> > } Could this be a bug?
> >
> > The ulimit builtin comes from the rlimits module.  Modules are not
> > automatically loaded when zsh runs as "sh", to avoid polluting the
> > variable namespaces or replacing external commands with builtins.
> >
> > Whether it's noncompliant from a POSIX point of view that "ulimit"
> > is not a "normal" builtin, I don't know.  (I ought to bookmark the
> > spec one of these days ...)
> 
> well, ulimit shell builtin is part of current SUS:
> 
> Since ulimit affects the current shell execution environment, it is always 
> provided as a shell regular built-in. 
> 
> I do not have POSIX to check.

I just downloaded the posix_std-1003.1-2004 document and it does indeed
say that.

I encountered the problem when running the mysql startup script for
NetBSD using zsh in place of sh.  It has the line
ulimit -n 4096
just before it starts up the mysql server.  The BSD shell works fine
with it. 

Is this something that can be easily corrected in zsh?

-- 
Vincent Stemen
Avoid the VeriSign/Network Solutions domain registration trap!
Read how Network Solutions (NSI) was involved in stealing our domain name.
http://inetaddresses.net/about_NSI.html




Messages sorted by: Reverse Date, Date, Thread, Author