> > The patch for the $(basename) doesn't fly on an SGI with the > > stock bourne shell. IIRC, the $(command) stuff, nice as it is, > > is I think a relatively newish bash thing, not old style bourne. > > ... Ok, so this is the $() construction that may cause problems on some non-bash sh shells, it becomes more clear now... > > Yes, it is a bashism... > > > The V2 patch Alvin posted seems to work on both platforms, eg: > > > > # prog="cbasename \"$compile\" .cxx`" > > # echo $prog > > Foo Bar > > That might be the best compromise.
As "''" constructs won't work as expected on native bash based platforms, which seems to be a conformity bug(as the first line force the script to be parsed with sh, so mike construction should have worked), I will apply and test the V2 modification (use of \" instead of ', no $(cmd) construction but `cmd` instead.) According to Ian, it should also work on IRIX platforms and probably others non bashed based platforms, will retest this on (Mac Osx,linux,cygwin/mingw). Thanks, Fabien _______________________________________________ fltk-dev mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk-dev
