bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: sed bug?


From: Bob Proulx
Subject: Re: sed bug?
Date: Sun, 19 Feb 2012 14:50:49 -0700
User-agent: Mutt/1.5.21 (2010-09-15)

Eli Zaretskii wrote:
> > Bob Proulx wrote:
> > That's weird.  But in that case should he try this?
> > 
> >   sed -f x.sed "..\test files\"*.txt
> 
> Alas, this doesn't work, either, because the MS globbing code doesn't
> support "foo"* in the sense that you expect, which is `leave "foo"
> alone and expand the *'.

Hmm...  Pesky things.

> There simply isn't a good solution for the OP's problem, with the MS
> globbing code.  A workaround is this:
> 
>   cd "..\test files\" && sed -f *.txt

Typo check.  I think you meant:

  cd "..\test files\" && sed -f x.sed *.txt

> (yes, MS shells understand "&&" nowadays).

Will wonders never cease!  :-)

Bob



reply via email to

[Prev in Thread] Current Thread [Next in Thread]