bish icon indicating copy to clipboard operation
bish copied to clipboard

Bish does not support I/O redirection

Open tdenniston opened this issue 9 years ago • 4 comments

Should be able to do e.g. ls | grep foo in bish.

tdenniston avatar Mar 10 '15 13:03 tdenniston

i dont understand

ypersyntelykos avatar Mar 10 '15 13:03 ypersyntelykos

Well, one of the most powerful primitives in bash (or any sort of shell) is redirection of input/output between processes. It's the "Unix philosophy": write lots of small programs that perform one job, and stitch them together with I/O redirection. Thus, bish must support these operations.

ls | grep foo simply means list files, but instead of printing the listing to the screen, redirect that output into the input of the grep tool. That's what the pipe character | means. Then grep is given a pattern to match, and prints all matches to the screen.

tdenniston avatar Mar 10 '15 13:03 tdenniston

+1

pketh avatar Mar 13 '15 20:03 pketh

Punting on this issue so I can do a 0.1 release.

tdenniston avatar Apr 20 '15 15:04 tdenniston