Path: csiph.com!goblin3!goblin2!goblin1!goblin.stu.neva.ru!usenet.stanford.edu!not-for-mail From: L A Walsh Newsgroups: gnu.bash.bug Subject: Re: ulimit call lists invalid options Date: Tue, 30 Jul 2019 00:46:38 -0700 Lines: 28 Approved: bug-bash@gnu.org Message-ID: References: <5D3FB223.5000601@tlinx.org> <23361.1564463374@jinx.noi.kre.to> <5D3FF5DE.50703@tlinx.org> NNTP-Posting-Host: lists.gnu.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Trace: usenet.stanford.edu 1564472812 22892 209.51.188.17 (30 Jul 2019 07:46:52 GMT) X-Complaints-To: action@cs.stanford.edu Cc: bug-bash To: Robert Elz Envelope-to: bug-bash@gnu.org User-Agent: Thunderbird In-Reply-To: <23361.1564463374@jinx.noi.kre.to> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x (no timestamps) [generic] X-Received-From: 173.164.175.65 X-BeenThere: bug-bash@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Bug reports for the GNU Bourne Again SHell List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Mailman-Original-Message-ID: <5D3FF5DE.50703@tlinx.org> X-Mailman-Original-References: <5D3FB223.5000601@tlinx.org> <23361.1564463374@jinx.noi.kre.to> Xref: csiph.com gnu.bash.bug:15277 On 2019/07/29 22:09, Robert Elz wrote: > Whether bash ought limit its usage output option list to those > options supported on the system it is running on, or whether it > is better to list everything it knows about (either my, or your, > system might have more limits bash knows nothing about) is a > judgement call - neither answer will be right for everyone. > It isn't a judgment call to list only the options it supports on a given system. I'd think that would be clear. If not at runtime, then certainly when the bash binary is built, the options for the system it will run on can be tested so the bash binary is configured for the system it is running on. > The modified script (using shell idioms, rather that > whatever language you were trying to emulate): > --- I was not emulating any language, nor was I writing for your approval. I was going for a minimal script to show the error case in bash script.