[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ulimit -c unlimited

From: Greg Wooledge
Subject: Re: ulimit -c unlimited
Date: Wed, 26 Jul 2017 10:29:12 -0400
User-agent: NeoMutt/20170113 (1.7.2)

On Wed, Jul 26, 2017 at 10:22:49PM +0800, 積丹尼 Dan Jacobson wrote:
> $  ulimit -c 9999999999999999999999999999999999999999999999
> bash: ulimit: 9999999999999999999999999999999999999999999999: limit out of 
> range
> $  ulimit -c 9999999999999999999999999999999
> bash: ulimit: 9999999999999999999999999999999: limit out of range
> $  ulimit -c 9999999999999999999
> bash: ulimit: 9999999999999999999: limit out of range
> Hmmm, maybe make the above error message say what the range is, so the
> user doesn't have to probe it. Or say "do ... to see the valid range".

It's not really a bash thing.  It's an underlying operating system
(kernel) thing.  See "man setrlimit" for the libc interface.

Bash doesn't really have any way of knowing what the valid ranges are.
That isn't part of the getrlimit/setrlimit interface.  The only things
you can ask for are the current hard and soft limits.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]