Re: Return from function depending on number of parameters

2020-07-09 Thread Chris Elvidge
On 06/07/2020 12:50 pm, Greg Wooledge wrote: On Fri, Jul 03, 2020 at 07:00:54PM +0100, Chris Elvidge wrote: I've used 'return $((!$#))' and 'return $[!$#]' to return an error if no parameters given to function. The problem with this is that it *always* returns from the function, even when para

Re: Issue with Bash

2020-07-09 Thread Chet Ramey
On 7/9/20 10:16 AM, CHIGOT, CLEMENT wrote: > Hi Rishita, > > Could you try with BullFreeware's version, which have a slightly higher > version (5.0.11 instead of 5.0) ? > You can find it at > http://www.bullfreeware.com/pkg?id=5740. > > If it's not worki

Re: Issue with Bash

2020-07-09 Thread CHIGOT, CLEMENT
Hi Rishita, Could you try with BullFreeware's version, which have a slightly higher version (5.0.11 instead of 5.0) ? You can find it at http://www.bullfreeware.com/pkg?id=5740. If it's not working, I'll check what's wrong. Clément _

Re: Issue with Bash

2020-07-09 Thread Chet Ramey
On 7/9/20 5:17 AM, Rishita Saha16 wrote: >Hi All, > >We are using Bash 5.0 (64bit built using gcc ) in AIX 7.2 machine .This >is the spec file for reference --> >[1]https://public.dhe.ibm.com/aix/freeSoftware/aixtoolbox/SPECS/bash-5. >0-1.spec. >We are seeing recurring bash

Issue with Bash

2020-07-09 Thread Rishita Saha16
Hi All, We are using Bash 5.0 (64bit built using gcc ) in AIX 7.2 machine .This is the spec file for reference --> [1]https://public.dhe.ibm.com/aix/freeSoftware/aixtoolbox/SPECS/bash-5. 0-1.spec. We are seeing recurring bash core dumps on our servers. Leaving bash sessions ru