* ulimit differences between zsh and bash on Linux
@ 2007-10-01 16:59 Daniel Qarras
2007-10-01 17:30 ` Peter Stephenson
0 siblings, 1 reply; 3+ messages in thread
From: Daniel Qarras @ 2007-10-01 16:59 UTC (permalink / raw)
To: zsh-users
Hi,
on a Linux system I have set following limits (only) on
/etc/security/limits.conf:
* 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
Both shells should measure core limit as blocks so is there a bug in
zsh or am I missing something?
Thanks.
____________________________________________________________________________________
Don't let your dream ride pass you by. Make it a reality with Yahoo! Autos.
http://autos.yahoo.com/index.html
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: ulimit differences between zsh and bash on Linux
2007-10-01 16:59 ulimit differences between zsh and bash on Linux Daniel Qarras
@ 2007-10-01 17:30 ` Peter Stephenson
2007-10-01 17:52 ` Daniel Qarras
0 siblings, 1 reply; 3+ messages in thread
From: Peter Stephenson @ 2007-10-01 17:30 UTC (permalink / raw)
To: zsh-users
Daniel Qarras wrote:
> on a Linux system I have set following limits (only) on
> /etc/security/limits.conf:
>
> * 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
>
> Both shells should measure core limit as blocks so is there a bug in
> zsh or am I missing something?
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.
--
Peter Stephenson <pws@csr.com> Software Engineer
CSR PLC, Churchill House, Cambridge Business Park, Cowley Road
Cambridge, CB4 0WZ, UK Tel: +44 (0)1223 692070
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: ulimit differences between zsh and bash on Linux
2007-10-01 17:30 ` Peter Stephenson
@ 2007-10-01 17:52 ` Daniel Qarras
0 siblings, 0 replies; 3+ messages in thread
From: Daniel Qarras @ 2007-10-01 17:52 UTC (permalink / raw)
To: zsh-users
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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2007-10-01 17:52 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-10-01 16:59 ulimit differences between zsh and bash on Linux Daniel Qarras
2007-10-01 17:30 ` Peter Stephenson
2007-10-01 17:52 ` Daniel Qarras
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).