From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,e59632480a891a96 X-Google-Attributes: gidfee84,public From: mark@cita.toronto.edu (Mark Bartelt) Subject: Re: How (if at all) does one use "getopts" with /bin/sh? Date: 1998/02/19 Message-ID: #1/1 X-Deja-AN: 326599817 Sender: nntp@utcc.utoronto.ca (News) References: Reply-To: mark@cita.utoronto.ca X-Nntp-Posting-Host: rorqual.cita.utoronto.ca Organization: Canadian Institute for Theoretical Astrophysics Newsgroups: comp.unix.osf.osf1 Well, as is often the case, *that* one got solved quickly. Many thanks to Paul A Sand , who suggested that setting my BIN_SH environment variable to "xpg4" might make things work. And that does it. Also, as is often the case, the question could have been avoided altogether with a bit more RTFM. I *did* RTFMpage for "getopts", but it doesn't mention BIN_SH; I should have RTFMpage for /bin/sh as well, where that environment variable is discussed. (It might be nice if it were also mentioned in the "getopts" page.) Anyway, thanks to Paul, and thanks in advance to all of you whose replies haven't made it to my mailbox yet. Mark Bartelt 416/978-5619 Canadian Institute for mark@cita.utoronto.ca Theoretical Astrophysics http://www.cita.utoronto.ca/~mark "Nur eine Waffel taugt!" -- Parsifal, in an Eggo commercial