[Gambas-user] report-ng script

Joshua Higgins joshiggins at ...1601...
Sun Jan 17 18:40:39 CET 2010


Good idea, seems better that way.

Benoit, is there a central place we can put this script?

2010/1/17 Doriano Blengino <doriano.blengino at ...1909...>:
> Hi Joshua,
>
> just took a look at your script, and wanted to make a stupid suggestion.
>
> Instead of writing:
>
>   echo "[OperatingSystem]" > $OutputFile
>   echo "OperatingSystem=$OS" >> $OutputFile
>
> with many repeats, you could do:
>
>   (
>       echo "[OperatingSystem]"
>       echo "OperatingSystem=$OS"
>       if [ blah blah blah ]; then
>          ...
>       fi
>   ) > $OutputFile
>
> ...easier to write and less error-prone.
>
> Just a thought.
>
> Regards,
>
> --
> Doriano Blengino
>
> "Listen twice before you speak.
> This is why we have two ears, but only one mouth."
>
>



-- 
joshua higgins
>>>>>>------




More information about the User mailing list