[Top][All Lists]

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

Re: ulimit call lists invalid options

From: Robert Elz
Subject: Re: ulimit call lists invalid options
Date: Tue, 30 Jul 2019 15:59:50 +0700

    Date:        Tue, 30 Jul 2019 00:46:38 -0700
    From:        L A Walsh <bash@tlinx.org>
    Message-ID:  <5D3FF5DE.50703@tlinx.org>

  | It isn't a judgment call to list only the options it supports on a given
  | system.  I'd think that would be clear.

That's an opinion, and that makes it something which everyone
is entitled to their own view of.

  | If not at runtime, then
  | certainly when the bash binary is built,

That would be the way to do it, if it was to be done at all.

But knowing which options the shell supports (if you looked at,
and compared, the bash supported options for my system, from the
ksh93 supported options, in the followup message I sent, you'll
see that ksh93 supports a whole bunch of limits that bash does not)
is not useless either.

As indicated in the 2nd message, to find out which ones work on
your system, use "ulimit -a".

And then be gradeful that bash doesn't do either ...

jinx$ dash -c 'ulimit -/'
dash: 1: ulimit: Illegal option -/


jinx$ ksh93 -c 'ulimit -/'
ksh93: ulimit: -/: unknown option
Usage: ulimit [-HSalimits] [limit]

(nb: in the latter, ksh93 is not saying that 'l' 'i' 'm' 'i' 't' and 's'
are the valid options...)

Bash at leasts suggests what the options it supports might be.


reply via email to

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