Brian Elliott Finley wrote:
Thus spake Andrea Righi ([EMAIL PROTECTED]):

I don't find that to be the case.  Perhaps you're having some
other strangeness that affects this in some way?

Please do this test as an example.  The test_functions file includes a
function with lines cut and pasted from the send_monitor_msg function in
our functions file:

   1) copy the two attached files into /tmp
   2) chmod +x test_script
   3) ./test_script

It should return the mac address for your eth0.  And you'll note that
in "test_script", $DEVICE is not set until _after_ the functions are
sourced.

You can even change the script to use ash instead of sh, and you'll get
the same behavior.

Cheers, -Brian


Very true! Anyway I've experienced the wrong behaviour in the busybox shell before the change... maybe this is due to other side effects.. I'll do some checks tonight.

Thanks,
-Andrea


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Sisuite-devel mailing list
Sisuite-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sisuite-devel

Reply via email to