search for: law00

Displaying 2 results from an estimated 2 matches for "law00".

2015 Feb 14
4
C5 BASH IF
...not found --------------------------------- WORKING first comparison 5 if [ $dir="law" ] 6 then 7 www="law" 8 dir=${file:0:5} 9 else 10 www="www/s" 11 fi ------------------------------------ NON-WORKING second comparison 15 if [ $file='law00.css' ] 16 then 17 file=$dir/$file 18 echo "css" 19 else 20 file=$dir/$file\.php 21 echo "no css" 22 fi 23 #---------------------------- Every comparison in the second test, including wrong comparisons, satisfy the test and caused the 'cs...
2015 Feb 14
0
C5 BASH IF
On Sat, 2015-02-14 at 05:26 +0000, Always Learning wrote: > NON-WORKING second comparison > > 15 if [ $file='law00.css' ] > 16 then > 17 file=$dir/$file > 18 echo "css" > 19 else > 20 file=$dir/$file\.php > 21 echo "no css" > 22 fi > 23 #---------------------------- > > Every comparison in the second test, including wrong co...