Really Weird Shell - the structural regular expression shell - Programming On Unix
Users browsing this thread: 2 Guest(s)
|
|||
(18-05-2019, 01:12 PM)zge Wrote:(12-05-2019, 11:32 AM)z3bra Wrote: I disagree with that. The shell's job is to handle IPC, and that's it. Text processing is done by the processes themselves, the shell only connects outputs to the next process input. Don't get me wrong, I do not reject it at all! I love structural expression, and find such a tool to be a godsend actually, as I don't know any of awk, and sed is a pain to work with multi-line patterns. What I meant is that handling processes and processing text are two different tasks, and I do believe in the "one tool for each task" moto. There are plenty of shells out there that are pretty good at managing jobs. We do lack a good structural expression tool though, so I would advise focusing on this part, and have it integrate well with other tools, rather than implementing missing features inside it. Also, I really want to use it, but I don't wanna swap my shell :) Now to use it from another shell in a pipeline, you need something like (I suppose): Code: echo "I run Linux" | rwsh -c 'cat |> ,x/[lL]inux/ c/GNU+Linux/ |> ,p' | tee linux.txt In this fashion, I think it will have difficulties gaining adoption (and I hope it would get adopted!) I didn't mean to be rude or rant about the tool. I though about how I'd use it myself and the little irks I would have with it (again, regarding my workflow, and I think Unix workflows in general). Sorry if I hurt anyone, I didn't mean to |
|||