Skip to contentSkip to conversation

bit comparations in usb.agent

DISCUSSION Gioele Barabucci 2 participants 2 messages Mar 4, 2001

lore
Share & tools
lore
#0 lore raw

It does not seem difficult to do...

Is the problem that bash1 do not have bit operators?
If so, can you tell me (I have not bash1) if in bash1 a operation like

echo ${BASH_VERSINFO[0]}

is correct?

Signature · 11 lines
Gioele Barabucci (Gb]) 
) mailto:[email protected]
) http://www.gioelebarabucci.com
) ) I've been and now I've gone
) )          /Magic Pie^Oasis


_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
[email protected]
http://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
#1 lore raw
Quoted 2 lines

It does not seem difficult to do...
Is the problem that bash1 do not have bit operators?

Problem is nobody donating the work to write/debug/integrate/retest. Bit operations aren't the most widely available functionality, either.

Quoted 5 lines

If so, can you tell me (I have not bash1) if in bash1 a operation like

echo ${BASH_VERSINFO[0]}

is correct?

I just tried this on an RH 6.2 system and got "bad substitution". "bash -version" says 1.14.7(1) ... surely sources to bash1 are widely available!

- Dave

_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
http://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel