delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-developers/2002/04/02/11:49:57

Mailing-List: contact cygwin-developers-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-developers-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin-developers/>
List-Post: <mailto:cygwin-developers AT cygwin DOT com>
List-Help: <mailto:cygwin-developers-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-developers-owner AT cygwin DOT com
Delivered-To: mailing list cygwin-developers AT cygwin DOT com
Message-Id: <4.3.1.2.20020402114010.024c9c90@pop.ma.ultranet.com>
X-Sender: lhall AT pop DOT ma DOT ultranet DOT com
Date: Tue, 02 Apr 2002 11:42:53 -0500
To: Earnie Boyd <earnie_boyd AT yahoo DOT com>
From: "Larry Hall (RFK Partners, Inc)" <lhall AT rfk DOT com>
Subject: Re: Interesting pipe feature.
Cc: Earnie Boyd <Cygwin-Developers AT cygwin DOT com>
In-Reply-To: <3CA9DD2A.74F77158@yahoo.com>
References: <4 DOT 3 DOT 1 DOT 2 DOT 20020402111635 DOT 02674130 AT pop DOT ma DOT ultranet DOT com>
Mime-Version: 1.0

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 AT rfk DOT com
RFK Partners, Inc.                      http://www.rfk.com
838 Washington Street                   (508) 893-9779 - RFK Office
Holliston, MA 01746                     (508) 893-9889 - FAX

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019