View Full Version : pipe not working

10-20-2002, 09:25 AM
i was wondering if anyone could give me a hint as to what i'm doing wrong...

program takes in a two commands and pipes them using the || instead of the standard unix pipe ( | ).

it runs the pipe fine...prints the results, but then exits out of the shell.

ie. myshell> cat myfile || sort

kicks back into bash instead of giving my myshell> prompt after printing the result..

code is attached.

thanks again for any help


10-20-2002, 10:36 AM
ok, i took ur advice, now it doesn't abend abnormally...

it doesn't print the output for the sort.

ie. myshell> cat myfile || sort

until after i exit from the parent

new version of altered code attached.

altered code is lines 67-80.

thanks for the help vVv