[M3devel] m3cc build broken

Olaf Wagner wagner at elegosoft.com
Thu Jul 30 18:33:29 CEST 2009


Quoting Peter Eiserloh <eiserlohpp at yahoo.com>:

> The following does look broken.  Remember the backslash is
> an escape character.  So you are escaping the ";" delimitor.
> You need to escape the backslash.
>
>> +++ sed -e 's;/;\;g'
>> sed: -e expression #1, char 7: unterminated `s' command
>
> Try:
>    sed -e 's;/;\\;g'

It was escaped in the source, but the `fix' to remove $() broke it
again:

      echo 'REM ---BEGIN---'
      echo '@echo off'
      printf 'for %%%%p in ('
      for p in ${PKGS}; do
-      pw=$(echo $p | sed -e 's;/;\\;g')
+      pw="`echo $p | sed -e 's;/;\\;g'`"
        printf "%s; " ${pw}
      done
      echo ') do call :ShipIt %%p'

It was even tested before. Now it's completely removed, as Jay says
forward slashes will just work everywhere.

Olaf
-- 
Olaf Wagner -- elego Software Solutions GmbH
                Gustav-Meyer-Allee 25 / Gebäude 12, 13355 Berlin, Germany
phone: +49 30 23 45 86 96  mobile: +49 177 2345 869  fax: +49 30 23 45 86 95
    http://www.elegosoft.com | Geschäftsführer: Olaf Wagner | Sitz: Berlin
Handelregister: Amtsgericht Charlottenburg HRB 77719 | USt-IdNr: DE163214194




More information about the M3devel mailing list