Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > gnu.bash.bug > #16561

Re: Return from function depending on number of parameters

From Chet Ramey <chet.ramey@case.edu>
Newsgroups gnu.bash.bug
Subject Re: Return from function depending on number of parameters
Date 2020-07-10 09:19 -0400
Organization ITS, Case Western Reserve University
Message-ID <mailman.44.1594387182.2306.bug-bash@gnu.org> (permalink)
References (2 earlier) <0b8f32e5-0644-526e-59a4-1bad5a474262@passchier.net> <ACF6AB75-5321-42EC-805E-D84048F539C9@larryv.me> <d4a5db68-0594-e540-c931-593469e73ce2@case.edu> <re9bi1$6q3$1@ciao.gmane.io> <5c03c227-2997-f93b-f377-ff50c6e9b846@case.edu>

Show all headers | View raw


On 7/10/20 5:14 AM, Chris Elvidge wrote:

> Are the two uses (array subscript and arithmetic context) of [...]
> connected/related? Or am I (stupidly) seeing a connection where none really
> exists?

No doubt they resemble each other, since the bounding characters are the
same and the contents are treated as an arithmetic expression that returns
a value.


-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
		 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    chet@case.edu    http://tiswww.cwru.edu/~chet/

Back to gnu.bash.bug | Previous | Next | Find similar


Thread

Re: Return from function depending on number of parameters Chet Ramey <chet.ramey@case.edu> - 2020-07-10 09:19 -0400

csiph-web