[mythtv-commits] Ticket #441: mythrename needs -b when using file
command
MythTV
mythtv at cvs.mythtv.org
Sun Oct 9 06:50:22 UTC 2005
#441: mythrename needs -b when using file command
--------------------------------+-------------------------------------------
Reporter: asmythtv at dsgml.com | Owner: xris
Type: defect | Status: new
Priority: minor | Milestone:
Component: mythtv | Version:
Severity: medium | --------------------------------+-------------------------------------------
When you use the file command to dectect what sort of file you are working
with you need to use the -b option of file. If you don't then file will
preface the result with the file name.
So if the file is called: a.mpg, and it's a text file it will say:
a.mpg: ASCII text
Then when you do the regex to check if it has mpg in the result - it will
always succeed! (Because the file name has the word .mpg in it.)
Anyway use -b and file will not echo the filename.
--
Ticket URL: <http://cvs.mythtv.org/trac/ticket/441>
MythTV <http://www.mythtv.org/>
MythTV
More information about the mythtv-commits
mailing list