Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: ulimit "command not found" when run from a script on NetBSD
- X-seq: zsh-users 9428
- From: Vincent Stemen <zsh@xxxxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: ulimit "command not found" when run from a script on NetBSD
- Date: Tue, 20 Sep 2005 09:54:40 -0500
- In-reply-to: <200509200654.58805.arvidjaar@xxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <20050919192129.GA23976@xxxxxxxxxxxxxxxxx> <1050920020712.ZM8701@xxxxxxxxxxxxxxxxxxxxxxx> <200509200654.58805.arvidjaar@xxxxxxxxxx>
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