This is the mail archive of the cygwin-developers@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Interesting pipe feature.


At 11:32 AM 4/2/2002, Earnie Boyd wrote:
>"Larry Hall (RFK Partners, Inc)" wrote:
> > 
> > At 11:00 AM 4/2/2002, Earnie Boyd wrote:
> > >The command
> > >   `echo $COMSPEC | sed -e 's#\\#/#g#'`
> > >works great on NT4 - SP6.  However, on NT4 - SP5 and on XPh (XP for
> > >home) it issues something similar to
> > >   bash.exe: C:\WINNT\system32\cmd.exe: command not found.
> > >
> > >Any insight on this problem?
> > 
> > In bash on W2K, this gives me:
> > 
> > sed: -e expression #1, char 9: Unknown option to 's'
> > 
> > I had to remove the final '#' after the 'g' to get this to work right.
> > Was that a typo Earnie or is that part of the problem you're seeing?
> > 
>
>That also means you didn't have the back ticks.  I'm trying to execute
>the value of COMSPEC.  Your error is another interesting problem, but
>that I believe to be within sed itself.


OK, sorry.  You're right.  Interestingly enough, I don't have trouble 
running `echo $COMSPEC` directly on W2K, although your command sequence 
above also works.  Do you have the same problem with `echo $COMSPEC` on
XP?

  

Larry Hall                              lhall@rfk.com
RFK Partners, Inc.                      http://www.rfk.com
838 Washington Street                   (508) 893-9779 - RFK Office
Holliston, MA 01746                     (508) 893-9889 - FAX


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]