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 03:57:55PM +0000, Bart Schaefer wrote:
> On Sep 20,  9:54am, Vincent Stemen wrote:
> } Subject: Re: ulimit "command not found" when run from a script on NetBSD
> }
> } Is this something that can be easily corrected in zsh?
> 
> Most immediately, you can put
> 
>   zmodload -ab -i zsh/rlimits ulimit
> 
> into /etc/zshrc.
> 
> Longer-term, the developers need to get the equivalent of that into
> the (auto-generated) Src/bltinmods.list file.

Thanks Bart.

That worked fine.  I had to put it in the sh environment script
specified by $ENV, rather than /etc/zshrc, since zsh does not read
/etc/zshrc when run as sh.  I just though I would note that for anybody
else who might encounter this issue.

BTW, is there any particular reason there is no mention of the rlimits
module in the manual.  I did not find it when I searched zshall(1).  It
does cover ulimit under the build-in commands section.

Regards,
Vincent



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