Opened 19 years ago
Closed 19 years ago
#441 closed defect (fixed)
mythrename needs -b when using file command
Reported by: | Owned by: | xris | |
---|---|---|---|
Priority: | minor | Milestone: | unknown |
Component: | mythtv | Version: | |
Severity: | medium | Keywords: | |
Cc: | Ticket locked: | no |
Description
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.
Note: See
TracTickets for help on using
tickets.
(In [7518]) Fixes #441.