[LUGOS] BASH programming!!!

Stojan Rancic stojan at aufbix.org
Tue May 27 14:23:42 CEST 2003


Hojla Novak,

Tuesday, May 27, 2003, 2:09:39 PM, si napisal(a):


> samo poti pa ne exportira...da ga tepeš...

Meni ona tvoja skripta lepo dela ;) Katero verzijo bash-a imas ? Tukaj
je 2.05a.0(1)-release. Se output:

ns:~$ ./foo.sh
/usr/bin:/bin:/usr/bin/X11:/usr/games
Not set
/usr/bin:/bin:/usr/bin/X11:/usr/games:/home/branko/bla

in sam skript:

#!/bin/bash
if ! echo $PATH | /bin/grep -q "/bla" ; then
     echo $PATH
     echo Not set        
     PATH=$PATH:/home/branko/bla
     export PATH
     echo $PATH
fi

                              GreetZ, Stojan
---------------
Don't try to saw sawdust.




More information about the lugos-list mailing list