Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: ulimit differences between zsh and bash on Linux
- X-seq: zsh-users 11917
 
- From: Daniel Qarras <dqarras@xxxxxxxxx>
 
- To: zsh-users@xxxxxxxxxx
 
- Subject: Re: ulimit differences between zsh and bash on Linux
 
- Date: Mon, 1 Oct 2007 10:52:25 -0700 (PDT)
 
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws;  s=s1024; d=yahoo.com;  h=X-YMail-OSG:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID;  b=eiKWFVe1Wz5FIqNKejpEHtD5Igh+W1GrFqIqYsYm2M1zNrMZI/vSGA2RefTEMXQz4f99fj3jq9aRBHEXtZphLI3rBsKLPcjz+zaiI/9r7OtoauoxSY9/PkTLDPmqhHt9o6rLZ3kGfWMFkQ3LQ11mtMhrFi64Pd5rxvpuPfDmjDo=;
 
- In-reply-to: <200710011730.l91HU4CN014370@xxxxxxxxxxxxxx>
 
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
 
Hi!
> > *               soft    core            0
> > *               hard    core            32768
> > 
> > When I use bash I get this:
> > 
> > $ ulimit -Hc
> > 32768
> > 
> > But with zsh CVS I get this:
> > 
> > $ ulimit -Hc
> > 65536
> 
> I get the same results.  zsh is definitely using 512, the traditional
> block size, which as far as I know is correct.  Is bash?  If it were
> using 1024 that would explain the difference.
Yep, you guessed right. http://ftp.gnu.org/gnu/bash/bash-3.2.tar.gz has
the following in bash-3.2/builtins/ulimit.def:
static RESOURCE_LIMITS limits[] = {
#ifdef RLIMIT_CORE
  { 'c',        RLIMIT_CORE,  1024,     "core file size",      
"blocks" },
#endif
Should I report a bug against bash or has zsh to follow bash's example?
I quickly check standards at
http://www.opengroup.org/onlinepubs/000095399/functions/setrlimit.html
and it says
RLIMIT_CORE
    This is the maximum size of a core file, in bytes, that may be
created by a process.
Thanks.
      ____________________________________________________________________________________
Shape Yahoo! in your own image.  Join our Network Research Panel today!   http://surveylink.yahoo.com/gmrs/yahoo_panel_invite.asp?a=7 
Messages sorted by:
Reverse Date,
Date,
Thread,
Author