From: Vincent Stemen <zsh@hightek.org>
To: zsh-users@sunsite.dk
Subject: Re: ulimit "command not found" when run from a script on NetBSD
Date: Tue, 20 Sep 2005 09:54:40 -0500 [thread overview]
Message-ID: <20050920145440.GA3153@quark.hightek.org> (raw)
In-Reply-To: <200509200654.58805.arvidjaar@newmail.ru>
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
next prev parent reply other threads:[~2005-09-20 15:00 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-09-19 19:21 Vincent Stemen
2005-09-20 2:07 ` Bart Schaefer
2005-09-20 2:54 ` Andrey Borzenkov
2005-09-20 14:54 ` Vincent Stemen [this message]
2005-09-20 15:57 ` Bart Schaefer
2005-09-20 16:39 ` Andrey Borzenkov
2005-09-21 0:30 ` Vincent Stemen
2005-09-21 2:21 ` Bart Schaefer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20050920145440.GA3153@quark.hightek.org \
--to=zsh@hightek.org \
--cc=zsh-users@sunsite.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).