From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from euclid.skiles.gatech.edu (euclid.skiles.gatech.edu [130.207.146.50]) by werple.net.au (8.7/8.7.1) with ESMTP id UAA15146 for ; Wed, 10 Jan 1996 20:48:23 +1100 (EST) Received: (from list@localhost) by euclid.skiles.gatech.edu (8.7.3/8.7.3) id EAA09662; Wed, 10 Jan 1996 04:28:15 -0500 (EST) Resent-Date: Wed, 10 Jan 1996 04:28:15 -0500 (EST) From: Zefram Message-Id: <11757.199601100928@stone.dcs.warwick.ac.uk> Subject: Re: -M option for limit To: P.Stephenson@swansea.ac.uk Date: Wed, 10 Jan 1996 09:28:05 +0000 (GMT) Cc: zsh-workers@math.gatech.edu In-Reply-To: <12538.9601100851@pyro.swan.ac.uk> from "P.Stephenson@swansea.ac.uk" at Jan 10, 96 08:51:47 am X-Loop: zefram@dcs.warwick.ac.uk X-Stardate: [-31]6876.97 MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Resent-Message-ID: <"jZYP51.0.rM2.lQuym"@euclid> Resent-From: zsh-workers@math.gatech.edu X-Mailing-List: archive/latest/732 X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu Peter wrote: >A.Main@dcs.warwick.ac.uk wrote: >> I think the limit syntax would be much more consistent if it were >> changed from "limit resource value" to "limit resource=value". This >> would allow arbitrary mixtures of setting and examining resource >> limits, as is already possible with things like typeset and alias. The >> limit builtin is rather well-established, though, so if it's going to >> be changed it really can't be delayed. Any opinions? > >I think this would be an unnecessary incompatibility. Actually I've come up with a good compromise. If we simply require limit values to start with a digit (i.e. don't allow "k" to mean "0k"), it would be possible to unambiguously specify multiple resources on the command line, each with an optional limit. For example, "limit core desc 32 vmem" would display the limits for coredumpsize and vmemorysize, and set descriptors to 32. bash's ulimit works much this way, though with option flags rather than keywords. At some point I'd like to modify zsh's ulimit to work like bash's, and do this equivalent to limit as well. -zefram