Mail Archives: djgpp/2001/06/15/09:15:52
On Fri 15 Jun 2001 14:53, "Eli Zaretskii" <eliz AT is DOT elta DOT co DOT il> wrote:
> > Date: Fri, 15 Jun 2001 12:29:14 +0200
> > From: "H.Merijn Brand" <h DOT m DOT brand AT hccnet DOT nl>
> > >
> > > 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/
- Raw text -