This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH v2] sotruss: convert from ksh to bash
- From: Andreas Schwab <schwab at linux-m68k dot org>
- To: Roland McGrath <roland at hack dot frob dot com>
- Cc: Mike Frysinger <vapier at gentoo dot org>, libc-alpha at sourceware dot org
- Date: Fri, 14 Mar 2014 07:51:58 +0100
- Subject: Re: [PATCH v2] sotruss: convert from ksh to bash
- Authentication-results: sourceware.org; auth=none
- References: <1390644580-25234-1-git-send-email-vapier at gentoo dot org> <2683351 dot sTNi7IfGEu at vapier> <11174511 dot vyN9KHlfPq at vapier> <1513046 dot Pq6yaohzbx at vapier> <20140313223005 dot 7D2937448F at topped-with-meat dot com>
Roland McGrath <roland@hack.frob.com> writes:
> I also think the changes to the script are fine, but they are purely
> cosmetic and wholly unnecessary. Your "pure bash" and "to match bash"
> comments seem to imply that "function foo {" style is somehow less
> supported by bash than "foo() {", which AFAIK has never been the case.
function foo is non-POSIX (POSIX reserves the function keyword, but
doesn't add any meaning to it). Bash only supports function for
ksh-compatibility, but otherwise prefers the POSIX syntax.
Andreas.
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."