Opened 14 years ago

Closed 14 years ago

#441 closed defect (fixed)

mythrename needs -b when using file command

Reported by: asmythtv@… 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.

Change History (1)

comment:1 Changed 14 years ago by danielk

Resolution: fixed
Status: newclosed

(In [7518]) Fixes #441.

Note: See TracTickets for help on using tickets.