annoying BASH does not interpret quotation marks right?

Filippos Klironomos presariod at gmail.com
Mon May 8 17:06:16 UTC 2006


Somehow this seems counterintuitive but the suggestion not to escape the
quotemarks worked. You would expect that escaping the quotemarks you create
the exact command you would manually type yourself for BASH, but apparently
it does not work like that...


On 5/7/06, Cameron Simpson <cs at zip.com.au> wrote:
>
> On 07May2006 16:35, Filippos Klironomos <presariod at gmail.com> wrote:
> |
> | On 5/7/06, Dave Mitchell <davem at iabyn.com <"mailto:davem at iabyn.com"> >
> wrote:
> |
> |     On Sun, May 07, 2006 at 04:09:41PM -0700, Filippos Klironomos wrote:
> |     > Hello list,
> |     >
> |     > I'm trying to parse a list of videos I have to convert them to a
> |     different
> |     > format. The video names
> |     > have spaces in them so I do something like:
> |     >
> |     > for file in *.flv ; do ffmpeg -i \"${file}\" \"${file}.avi\" ;
> done
> |     >
> |     > but the quotmarks do not work and ffmpeg is not fed the whole
> video
> |     name but
> |     > only the
> |     > part up to the first space so it fails.
> |
> |     Don't escape the quotes. ie you just need
> |
> |         for file in *.flv ; do ffmpeg -i "$file" "$file.avi" ; done
> |
> | Same problem!
> | That's why I added the quotes to begin with but somehow BASH keeps
> ignoring
> | them :-(
>
> Then it sounds to me like ffmpeg is stuffing things up.
> The for loop quoted above is perfectly correct, suggesting that ffmpeg
> is mangling the string internally somehow.
> --
> Cameron Simpson <cs at zip.com.au> DoD#743
> http://www.cskk.ezoshosting.com/cs/
>
> Of coarse (sic!) it possible to teleport a body
> so  that  the  "soul"  gets
> left behind.  They are called "honkies", man.
>         - Dr Savory, sav at nanette.sto.pdb.sni.de, in sci.physics
>
> --
> fedora-list mailing list
> fedora-list at redhat.com
> To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20060508/e24d24b7/attachment-0001.htm>


More information about the fedora-list mailing list