[FoLUG] bash Vs sh

Francesco sizukesa77@tiscali.it
Dom 25 Lug 2004 17:51:18 CEST


On Sun, 2004-07-25 at 15:39 +0200, Cris wrote:

> 
>  if (shell_name[0] == 's' && shell_name[1] == 'h' && shell_name[2] == '\0')
>     act_like_sh++;
> 
> [eccetera eccetera]

si infatti avevo immaginato che facesse un controllo sull' argv[0] :)


-- 
Francesco

(o<                                    (@_
//\                                    //\
V_/_....Powered By Debian GNU/Linux....V_/_

"What we see now is like a dim image in a mirror...
Then we shall see face to face...."  Ghost In The Shell

http://xoomer.virgilio.it/frpiano



Maggiori informazioni sulla lista FoLUG