id summary reporter owner description type status priority milestone component version severity resolution keywords cc 578 bug in libmondo-devices.c victor gattegno Bruno Cornec "This concerns these lines in libmondo-devices.c {{{ Line 916 : (""dvdrecord -scanbus 2> /dev/null | grep \"") '\"" | grep -n \""\"" | grep DVD | cut -d':' -f1"") Line 921 : (""cdrecord -scanbus 2> /dev/null | grep \"") '\"" | grep -n \""\"" | grep DVD | cut -d':' -f1"") }}} '''If I execute it manually on a RHEL 6 machine, I get an error:''' {{{ # cdrecord -scanbus 2> /dev/null | grep \"") '\"" -bash: syntax error near unexpected token `)' }}} '''I found this solution:''' {{{ # cdrecord -scanbus 2> /dev/null | grep \)\ \' 0,0,0 0) 'TEAC ' 'DV-W28E-RW ' 'G.B2' Removable CD-ROM }}} '''Also, line 921, there is a ""grep DVD""''' I guess that it should be a ""grep CD"". '''Otherwise, on my RHEL 6 results, I don't see the utility of the ''grep -n \""\""''''' {{{ # cdrecord -scanbus | grep \)\ \' | grep -n \""\"" # }}} '''Because there is no "" in the results of dvdrecord nor in the results of cdrecord.''' {{{ # dvdrecord -scanbus scsibus0: 0,0,0 0) 'TEAC ' 'DV-W28E-RW ' 'G.B2' Removable CD-ROM 0,1,0 1) * 0,2,0 2) * 0,3,0 3) * 0,4,0 4) * 0,5,0 5) * 0,6,0 6) * 0,7,0 7) * }}} {{{ # cdrecord -scanbus scsibus0: 0,0,0 0) 'TEAC ' 'DV-W28E-RW ' 'G.B2' Removable CD-ROM 0,1,0 1) * 0,2,0 2) * 0,3,0 3) * 0,4,0 4) * 0,5,0 5) * 0,6,0 6) * 0,7,0 7) * }}} '''Anyway cdrecord and dvdrecord are a link to wodim''' {{{ # ls -l /usr/bin/dvdrecord lrwxrwxrwx. 1 root root 36 Oct 11 16:23 /usr/bin/dvdrecord -> /etc/alternatives/cdrecord-dvdrecord # ls -l /usr/bin/cdrecord lrwxrwxrwx. 1 root root 26 Oct 11 16:23 /usr/bin/cdrecord -> /etc/alternatives/cdrecord # ls -l /etc/alternatives/cdrecord-dvdrecord lrwxrwxrwx. 1 root root 14 Oct 11 16:23 /etc/alternatives/cdrecord-dvdrecord -> /usr/bin/wodim # ls -l /etc/alternatives/cdrecord lrwxrwxrwx. 1 root root 14 Oct 11 16:23 /etc/alternatives/cdrecord -> /usr/bin/wodim }}} '''As there is no : delimitator in the results, I suggest''' {{{ # cdrecord -scanbus 2> /dev/null | grep \)\ \' | grep CD | cut -d' ' -f1 0,0,0 }}} '''And the same for DVD, I cannot test but it should be''' {{{ # dvdrecord -scanbus 2> /dev/null | grep \)\ \' | grep DVD | cut -d' ' -f1 }}} Now, for blu-ray, maybe another test will be needed too. " defect closed high 3.0.1 mondo 3.0.0 normal fixed CD DVD