![]() |
sponsored links |
|
|
sponsored links
|
|
|
5
24th May 03:35
External User
Posts: 1
|
Can you post a link to this particular grep32? It might help
someone to replicate your issue. -- Charles Dye raster@highfiber.com |
|
|
7
24th May 03:35
External User
Posts: 1
|
I'll try it later.
The ******** difference is the use of the session start program (by default, 4STARt.BTM). There is a little more in 4NT's help, esp. the warnings about 4START, in topics autobatch and piping (on the bottom of the help pane is the name of the topic). You can get to each topic with the command "help specifictopic", e.g., help piping. However, there is nothing about the relative timings, esp. no comparison of the order in which CMD and 4NT do all the little things needed, e.g., create the pipe, create the secondary shell, execute the command in the primary shell feeding the pipe, execute the command in the secondary shell consuming the pipe, close the secondary shell when command execution is completed after executing 4EXIT.BTM (if any). Please read in the AUTOBATCH topic the section about pipes and the use of the _PIPE internal variable to bypass parts or all of 4START.BTM. There is nothing obvious here to interfere with grep32. If it is not grep itself, or if you need 4NT to deal with the problem, you'll need to communicate with JPsoft in jpsoft_support@email.sparklist.com or send email to support@jpsoft.com. I am on contract with JPsoft for help file maintenance, but not for general technical support. Like Charles Dye, I monitor this venue out of personal interest. You could just use "alias d*" to do that! I had problems with redirection of 16-bit text ("console") applications under Win98, but not with piping, and neither redirection nor piping problems with WinXP and 4NT 6.01. Of course, I found awk too awkward to use, and sed to be to sad... I just use the string functions of 4NT, or my own user defined functions (many of which Rex implemented at my suggestions) and batch programs. They are slower than a compiled program, but a lot faster to develop and test. The only major problem is the presence of special characters in the data to be ****yzed, esp. []()<|>'"`&^ which have syntactic meaning in 4NT, but not in filter programs. -- Steve |
|
|
8
24th May 03:35
External User
Posts: 1
|
FWIW, here is what I get under 4NT (I used my own file, and grep'd two ways,
once directly, once with a pipe). The only difference is that directly you get the filename listed, with the pipe you don't. (I got the same output with CMD, by the way.) So, I suspect the problem is the ^d part of your command. I do get the "error" you describe when running "problem.bat" under 4NT, not under CMD. And if I alter the commands below, replacing "strong" with "^strong", I get the same error you get there too. I don't think this is a pipe problem in the usual way. ============== grep32 7.911 Copyright 1986-2005 Oak Road Systems http://oakroadsystems.com grep: This is the unregistered evaluation version. To register and get more features (and suppress this message) see file REGISTER.TXT or visit http://oakroadsystems.com/sharware/ ---------- hellodolly.txt You're still goin' strong grep: found 1 match in 1 file of 1 examined Thanks for trying grep. Your feedback is very welcome! If you like grep, please buy it at http://oakroadsystems.com/sharware/ -- if it doesn't meet your needs, please write to support@oakroadsystems.com and tell us how we can improve it. grep32 7.911 Copyright 1986-2005 Oak Road Systems http://oakroadsystems.com grep: This is the unregistered evaluation version. To register and get more features (and suppress this message) see file REGISTER.TXT or visit http://oakroadsystems.com/sharware/ You're still goin' strong^M grep: found 1 match in 1 file of 1 examined Thanks for trying grep. Your feedback is very welcome! If you like grep, please buy it at http://oakroadsystems.com/sharware/ -- if it doesn't meet your needs, please write to support@oakroadsystems.com and tell us how we can improve it. -- -= rags =- <rags AT math . mcgill . ca> <http://www.math.mcgill.ca/rags> Eliminate Spam with Mailwasher Pro <http://entier.ecosm.com/link/?webepq> |
|
|
9
24th May 03:35
External User
Posts: 1
|
My take is that this is not a problem with the pipe per se, but a
difference between the way 4NT and CMD parse the right-hand side of the pipe. I suggest that you simply enclose the troublesome regexp in double quotes, rather than escaping escapes. This approach ought to work in both 4NT and Brand X: type zonk | grep32 "^d" alias | grep32 "^d" In 4NT you may also be able to get away with e.g. alias | grep32 ^d but this almost certainly won't work in CMD. Bug or feature? Theological question; ask Rex.... -- Charles Dye raster@highfiber.com |
|