Thanks. Your changes work for me. I have closed PR 556626 - cygwin maxima - "getopts: not found"
-----Original Message-----
From: James Amundson [mailto:amundson at fnal]
Sent: Tuesday, 25 June 2002 1:51
To: Billinghurst, David (CRTS)
Cc: Maxima List
Subject: Re: [Maxima] [patch] Use @SHELL@ in maxima.in
I worked an a more elaborate solution to this problem over the weekend.
I don't want to assume that bash exists on the system. My fix checks to
see if /bin/sh supports getopts, then tries /bin/bash, /usr/bin/bash and
/usr/local/bin/bash, in that order. The user can also specify a shell to
use.
I'll try to get the fix in in the next day or two.
--Jim
On Sun, 2002-06-23 at 07:29, Billinghurst, David (CRTS) wrote:
> The maxima script doesn't work on cygwin, as /bin/sh doesn't support
> getopts. The fix is to use /bin/bash. The following works for me
> on cygwin and irix.
>
> OK to apply?
>
> Index: maxima.in
> ===================================================================
> RCS file: /cvsroot/maxima/maxima/src/maxima.in,v
> retrieving revision 1.6
> diff -u -r1.6 maxima.in
> --- maxima.in 28 Apr 2002 21:21:59 -0000 1.6
> +++ maxima.in 23 Jun 2002 12:27:50 -0000
> @@ -1,4 +1,4 @@
> -#!/bin/sh
> +#!@SHELL@
>
> usage () {
> cat << EOF
> _______________________________________________
> Maxima mailing list
> Maxima@www.math.utexas.edu
> http://www.math.utexas.edu/mailman/listinfo/maxima