www.digitalmars.com         C & C++   DMDScript  

c++ - Pipe problem

reply "Matthew Wilson" <matthew.hat stlsoft.dot.org> writes:
It seems that any version later than 8.37 cannot be piped to another
process.

Specifically, I tend to use the command "dmc | grep -i blahblah" when
looking for a command option. On 8.38+, this just puts a "Error: No files
specified" to stderr. Weird.
Dec 12 2003
parent reply "Walter" <walter digitalmars.com> writes:
"Matthew Wilson" <matthew.hat stlsoft.dot.org> wrote in message
news:brc2vt$1pdk$1 digitaldaemon.com...
 It seems that any version later than 8.37 cannot be piped to another
 process.

 Specifically, I tend to use the command "dmc | grep -i blahblah" when
 looking for a command option. On 8.38+, this just puts a "Error: No files
 specified" to stderr. Weird.

If you're using my grep.exe, it doesn't read from stdin, hence the message.
Dec 12 2003
parent reply "Matthew Wilson" <matthew.hat stlsoft.dot.org> writes:
Ah. It must be different paths. (I normally use the Borland one)

Any reason why your grep couldn't be "enhanced"?

:)

Matthew

"Walter" <walter digitalmars.com> wrote in message
news:brcqtl$2sm4$1 digitaldaemon.com...
 "Matthew Wilson" <matthew.hat stlsoft.dot.org> wrote in message
 news:brc2vt$1pdk$1 digitaldaemon.com...
 It seems that any version later than 8.37 cannot be piped to another
 process.

 Specifically, I tend to use the command "dmc | grep -i blahblah" when
 looking for a command option. On 8.38+, this just puts a "Error: No


 specified" to stderr. Weird.

If you're using my grep.exe, it doesn't read from stdin, hence the


Dec 12 2003
parent reply "Walter" <walter digitalmars.com> writes:
"Matthew Wilson" <matthew.hat stlsoft.dot.org> wrote in message
news:brdl85$12to$1 digitaldaemon.com...
 Ah. It must be different paths. (I normally use the Borland one)

 Any reason why your grep couldn't be "enhanced"?

Nobody seems to care <g>. It's a simple program I wrote because none of the other greps would work right on binary files.
Dec 13 2003
parent reply "Matthew Wilson" <matthew.hat stlsoft.dot.org> writes:
 Ah. It must be different paths. (I normally use the Borland one)

 Any reason why your grep couldn't be "enhanced"?

Nobody seems to care <g>. It's a simple program I wrote because none of

 other greps would work right on binary files.

I'd find it useful. Can you add it to the list?
Dec 13 2003
parent reply "Walter" <walter digitalmars.com> writes:
"Matthew Wilson" <matthew.hat stlsoft.dot.org> wrote in message
news:brgfis$5od$1 digitaldaemon.com...
 Ah. It must be different paths. (I normally use the Borland one)

 Any reason why your grep couldn't be "enhanced"?

Nobody seems to care <g>. It's a simple program I wrote because none of

 other greps would work right on binary files.

I'd find it useful. Can you add it to the list?

Sure!
Dec 14 2003
parent reply "Matthew Wilson" <matthew.hat stlsoft.dot.org> writes:
 Ah. It must be different paths. (I normally use the Borland one)

 Any reason why your grep couldn't be "enhanced"?

Nobody seems to care <g>. It's a simple program I wrote because none



 the
 other greps would work right on binary files.

I'd find it useful. Can you add it to the list?

Sure!

Does your enthusiasm for the adding reflect a prioritisation of the task? ;)
Dec 15 2003
parent "Walter" <walter digitalmars.com> writes:
"Matthew Wilson" <matthew.hat stlsoft.dot.org> wrote in message
news:brjtrg$25rp$1 digitaldaemon.com...
 Ah. It must be different paths. (I normally use the Borland one)

 Any reason why your grep couldn't be "enhanced"?

Nobody seems to care <g>. It's a simple program I wrote because none



 the
 other greps would work right on binary files.

I'd find it useful. Can you add it to the list?

Sure!

Does your enthusiasm for the adding reflect a prioritisation of the task?

No <g>. Bug reports come first.
Dec 15 2003