Re: bashisms and linuxisms in GNOME





On Tue, 15 Sep 1998 07:57:46 Frederic Devernay wrote:
> Quite often, bashisms and linuxisms appear in  GNOME...
> I think bash, when invoked ans /bin/sh, should follow strictly the
> Bourne shell, and not add any "extension", such as in
> libgtop/LIBGTOP-VERSION:
> 
> LIBGTOP_VERSION_CODE=$(($LIBGTOP_MAJOR_VERSION*1000000+$LIBGTOP_MINOR_VERSION*1000+$LIBGTOP_MICRO_VERSION))
> 
> which is bash, ksh, but not Bourne shell, sorry, you'll have to use
> "expr":
> 
> LIBGTOP_VERSION_CODE=`expr
> $LIBGTOP_MAJOR_VERSION*1000000+$LIBGTOP_MINOR_VERSION*1000+$LIBGTOP_MICRO_VERSION`
> 
> another one which appears frequently is the "ln -sf" linuxism. The -f
> option is not standard, and something like "ln -sf main.html index.html"
> should be written "rm -f main.html; ln -s main.html index.html".
> 
> I'm sorry not to use a linux system
> 

Why sorry, No one will change it if no one tries it on another system.
Just report bugs without the slams please.
==========
Reklaw - I code therefore I need gin and sprite.
GNOME software projects - Pharmacy * gnome-standalone 
http://home.earthlink.net/~nawalker/



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