delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/06/25/08:49:33

Sender: edevaldo AT mothost DOT mot DOT com
Message-ID: <37737B73.6D3EE0D2@email.sps.mot.com>
Date: Fri, 25 Jun 1999 09:52:03 -0300
From: "Edevaldo Pereira (q14792)" <q14792 AT email DOT sps DOT mot DOT com>
Organization: Motorola - Semiconductor Producrs Sector
X-Mailer: Mozilla 4.07 [en] (X11; I; SunOS 5.5.1 sun4u)
MIME-Version: 1.0
To: djgpp AT delorie DOT com
Subject: TCL Port
X-Motorola-Sent-Wireless: 1
Reply-To: djgpp AT delorie DOT com

Eli Zaretskii wrote:
> 
> What version of Sed do you have?  Is it a DJGPP port, and if so, of
> what Sed version?

        I have version 3.02. All stuff I' using is from the DJGPP
distribution
at simtel, I try to keep up with the last versions. By the way, I tried
sed
and gsed(renaming it) an it didn't work as well.
         The error was "Error in line 1: Unmatched '{'". What I did is
to put
all the match in a single line it looked like:

# Replace "test -f" with "test -x" so that e.g. gcc.exe is found.
/for ac_dir in \$PATH; do/,/IFS="\$ac_save_[Ii][Ff][Ss]"/ { s|test -f
\$ac_dir/|test -x ac_dir/| }


        Then the complaint was: "Error in line 2: Unrecognized 's'
option".
The original pattern was:

# Replace "test -f" with "test -x" so that e.g. gcc.exe is found.
/for ac_dir in \$PATH; do/,/IFS="\$ac_save_[Ii][Ff][Ss]"/ {
  s|test -f \$ac_dir/|test -x $ac_dir/|
}

        I tried do use dtou and utod sometimes but it didn't change the
behavior.
Looking in the info files for sed I was unable to figure out what this
script
is supposed to do. Does "for ac_dir in..." is a command or a simple
string to be
matched against?
        I thing you should know that I'm using win95 with fat32 enabled.



> >       As I said before it was only an extreme quick and very dirty hack, but
> > there was something funny about it. That structure only is declared for
> > one type of system and I think it is AIX.
> 
> So how come the definition was seen by DJGPP?

        In the configure script a specific test is made for some feature
then
in the source files this test split in  AIX like machines and others.
        But Tcl has a built in variable Tcl_platform. In the version I
compiled
it
looks like: { OS_Type MS-DOS OS_Version 10.7 Machine pc }. I don't know
about
the version but the rest is beautiful.

        Thanks,

                                        Edevaldo

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019