Date: Fri, 15 Jun 2001 15:09:36 +0200 From: "H.Merijn Brand" To: Eli Zaretskii Subject: Re: Gnu compiler for Perl Cc: djgpp AT delorie DOT com, snowball3 AT bigfoot DOT com In-Reply-To: <6503-Fri15Jun2001155304+0300-eliz@is.elta.co.il> References: <20010615122256 DOT F00F DOT H DOT M DOT BRAND AT hccnet DOT nl> <6503-Fri15Jun2001155304+0300-eliz AT is DOT elta DOT co DOT il> X-Mailer-Plugin: Cliche Inserter for Becky!2 Ver.0.03 Rev.0 Message-Id: <20010615150058.F015.H.M.BRAND@hccnet.nl> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Mailer: Becky! ver. 2.00.07 X-Hops: 1 Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On Fri 15 Jun 2001 14:53, "Eli Zaretskii" wrote: > > Date: Fri, 15 Jun 2001 12:29:14 +0200 > > From: "H.Merijn Brand" > > > > > > I don't expect problems with `tr' and `touch' to be Bash issues. So > > > please try to investigate them if you have time. Thanks. > > > > tr might probably be a bash problem too. The perl Configuration creates a new > > script like: > > > > C:\Util\Perl\PERL-5~1.1> sh > > sh-2.04$ cat UU/tr > > #!c:/util/djgpp/bin//sh > > case "$1$2" in > > '[A-Z][a-z]') exec c:/util/djgpp/bin//tr.exe '[:upper:]' '[:lower:]';; > > '[a-z][A-Z]') exec c:/util/djgpp/bin//tr.exe '[:lower:]' '[:upper:]';; > > esac > > exec c:/util/djgpp/bin//tr.exe "$@" > > sh-2.04$ cat UU/tr | tr A a > > #!c:/util/djgpp/bin//sh > > case "$1$2" in > > '[a-Z][a-z]') exec c:/util/djgpp/bin//tr.exe '[:upper:]' '[:lower:]';; > > '[a-z][a-Z]') exec c:/util/djgpp/bin//tr.exe '[:lower:]' '[:upper:]';; > > esac > > sh-2.04$ cat UU/tr | UU/tr A a > > So, what are the problems with that? Does this script run? No. (I didn't include any output in my report didn't I?). Just double-checked, it runs, but causes the shell to crash: C:\Util\Perl\PERL-5~1.1\UU> sh sh-2.04$ sh tr A a < tr #!c:/util/djgpp/bin//sh case "$1$2" in '[a-Z][a-z]') exec c:/util/djgpp/bin//tr.exe '[:upper:]' '[:lower:]';; '[a-z][a-Z]') exec c:/util/djgpp/bin//tr.exe '[:lower:]' '[:upper:]';; esac sh-2.04$ C:\Util\Perl\PERL-5~1.1\UU> (where the shell has crashed with the error dialog again, without hitting ^D) > And why do I see so many double slashes, like this: > > #!c:/util/djgpp/bin//sh Probably just because the Configure script should be just a bit more tidy. IMHO double slashes are no (or should not be a ) problem. -- H.Merijn Brand Amsterdam Perl Mongers (http://www.amsterdam.pm.org/) using perl-5.6.1, 5.7.1 & 626 on HP-UX 10.20 & 11.00, AIX 4.2, AIX 4.3, WinNT 4, Win2K pro & WinCE 2.11 often with Tk800.022 &/| DBD-Unify ftp://ftp.funet.fi/pub/languages/perl/CPAN/authors/id/H/HM/HMBRAND/