[Date Index][Thread Index]
[Date Prev][Date Next][Thread Prev][Thread Next]

Re: Misterious Behavior of WML calling WML



On Wed, 2 Sep 1998, Oliver Paukstadt wrote:

> HY HY
> 
> Found it. Seems to be the sed making the trouble. It's not gnu, it's irix
> ;-(
> 

The sed was one problem, but there was another.
I solved in a bit hacky way: I delete the whole environment except the
PATH before starting wml. This looks like this:

system("unset `env | perl -e 'foreach(grep(!/^PATH=/,
<STDIN>)){s/^([^=]*)=.*\$/\$1/igs;print \"\$_\\n\";}' ` 
; cd $Daten/$dir ; wml -qs $file");

Not very nice, but it's now 
eperl calling sh calling perl and calling wml.

Does Anyone know a shorter Statement to delete all the Environment except
path? Perl prefered, because of the ugly sh on irix5.3...

BYtE Oli

+++tEkknO, schwEIss Und grEllEs lIcht - bIs dIE wElt zUsAmmEnbrIcht !+++++
+++oliver@paukstadt.de+++http://www.paukstadt.de++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 


______________________________________________________________________
Website META Language (WML)                www.engelschall.com/sw/wml/
Official Support Mailing List                   sw-wml@engelschall.com
Automated List Manager                       majordomo@engelschall.com