F01common.lib v0.27
Par Flyounet le mardi 27 avril 2010, 14:00 - Outils & Développements - Lien permanent
Due to lots of bugs in the previous version, I'm happy to show you this one with I hope no bug inside.
Nearly all tests have been done with Ksh, and unfortunately I forget to test under Bash, and that's the result... Sorry.
Changelog :
> Problem with the Bash version. If old Bash is use BASH_SOURCE doesn't exist... Now looks for the files instead of trying to load it directly to avoid, error messages. Search in above and under directory. * F01Version return the path of the Bash extension. * trim : Huge bug ! Instead of unsetting __ltrim & __trim, i unsetted functions ltrim & rtrim... > ltrim & rtrim don't work under Bash ! ARGGGGGGGGGGGGG !!!!! * iniParseFile : In case of a line only containing a left var with incorrect character (like a dash -), the awk version sent an error to the output (and under Ksh stops). Function has been rewritted purely in Shell... * sprintf : Problem under Bash. Bash doesn't support only one _ as a variable name : Corrected. * iniGetValue : Not use grep anymore. Only Shell ! * fileCheck : Problem under Bash. Bash doesn't support only one _ as a variable name : Corrected. * logMe : Problem under Bash. Bash doesn't support only one _ as a variable name : Corrected. > Now only logRotate use non-shell programs ! + myError : If none args then empty __lastError
Variables & Functions diagram :

Files are :
common.lib_v0.27.tar.bz2: L'archive qui contient tous les fichiers,common.lib.README: Une micro documentation,common.lib: La librairie Shell,_common4bash.lib: L'extension pour Bash de la fonctiontextBox(),doc/common.lib.mm: La liste de fonctions et variables sous forme de fichier Free(Mind|Plane),doc/common.lib.png: La liste de fonctions et variables sous forme de fichier image,test/libHelp.sh: Un script de test qui retourne de l'aide sur les fonctions,test/test_common-lib.conf: Un fichier de configuration pour exécuter le script de test,test/test_common-lib.sh: Un script de test, qui exécute quasiment toutes les fonctions de la librairie.
MD5 files :
d04d3958e604ffdd69d5387d6c95110f test/libHelp.sh 727d5784f66d1a3f73c60e6179e97ca0 test/test_common-lib.conf cef5238682be487c62fd55f9054321fb test/test_common-lib.sh 16e92798581ba2f57b82dbdfdbb60645 doc/common.lib.png 882c79e3ff9b15510f6fc457aef94b8d doc/common.lib.mm 9fa4b288ecc8e77c4fc34e712191c738 _common4bash.lib faa364482cbf69235561956c2b14f464 common.lib.README e72679facbec1adc7bd938e7d01d3b53 common.lib 68ce26b91ce97f5b521c96289718e286 F01common.lib_v0.27.tar.bz2
Sha1 files :
f8f1bf4afb8e54ec122f5f6e67a8a0bba72e98c8 test/libHelp.sh c21039c426cf47f9c9e0cc6c36e67c6e458e1978 test/test_common-lib.conf d47f2071c31cf653019e3c9b92fd1bde4503c21d test/test_common-lib.sh 1abdfbf61ef8f0b003e990c4145dd3be675c1936 doc/common.lib.png 43f7a0673984fc8653cc4469d5a9a28229955d85 doc/common.lib.mm c525977312841d164ff589621fed70310b23b9c9 _common4bash.lib d4c8767c77a60dfa2fb97872f22b9030beb6844f common.lib.README 2eaf7218008d8ac5588598bf5093301dfb21e8c5 common.lib b6e842358c2461118b696696ee24f49e9afb7910 F01common.lib_v0.27.tar.bz2
Function list :
Have a look in the previous note (related to version v0.26)
![[_DSC3572] 2008-07-19 12:57:43 Photo Flickr](http://farm4.static.flickr.com/3177/2694777269_2050cbf161_s.jpg)
![[_DSC3571] 2008-07-19 12:57:38 Photo Flickr](http://farm4.static.flickr.com/3219/2694774193_488a9e4231_s.jpg)
![[_DSC3570] 2008-07-19 12:57:36 Photo Flickr](http://farm4.static.flickr.com/3074/2694770993_94366f1328_s.jpg)
![[_DSC3569] 2008-07-19 12:57:35 Photo Flickr](http://farm4.static.flickr.com/3259/2694767807_b0580ae2f9_s.jpg)
![[_DSC3568] 2008-07-19 12:57:24 Photo Flickr](http://farm4.static.flickr.com/3054/2694764513_57c2dab87b_s.jpg)
![[_DSC3567] 2008-07-19 12:57:16 Photo Flickr](http://farm4.static.flickr.com/3182/2694760917_ba2c0ce457_s.jpg)
![[_DSC3566] 2008-07-19 12:57:11 Photo Flickr](http://farm4.static.flickr.com/3094/2695576302_7ba6787b98_s.jpg)
![[_DSC3565] 2008-07-19 12:57:04 Photo Flickr](http://farm4.static.flickr.com/3117/2695572594_0bf7757d27_s.jpg)
![[_DSC3564] 2008-07-19 12:56:55 Photo Flickr](http://farm4.static.flickr.com/3282/2694750469_4112585385_s.jpg)
![[_DSC3563] 2008-07-19 12:56:49 Photo Flickr](http://farm4.static.flickr.com/3257/2694747087_661ea293ec_s.jpg)