On Fri, 14 Nov 2008, Guy Roussin wrote: Hi Guy,
> I add this line on top of my PRG : > #/usr/bin/hbrun //gtcgi > I notice that the option //gtcgi is not activated > if the prg file is a DOS file (CRLF) but works > fine if the file is saved as a UNIX file ... So the behavior is correct. For linux kernel the 1-st line ends at LF character and CR becomes last character of //gtcgi argument so it pass to hbrun "//gtcgi\r" Do you want to add to Harbour code which will strip \r from passed arguments? I do not find it as good idea because it wile reduce the functionality. F.e.: ./myapp "`cat dostext.txt`" will lost CR characters when received as parameter in myapp. best regards, Przemek _______________________________________________ Harbour mailing list Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour