-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
pipe Will try, but it took me days just to answer to your comments :/ For now I am just attaching my experient (pipe.py.txt).
Regarding sh: It looks quite interesting, and most of my scripting is Unix anyway (or WSL if on Windows). It is however somewhat inconvenient to use with fluentpy.
_(range(10)).map(lambda it: str(it)+"\n").call(lambda it: sh.sed("s/^/>> /", _in=it)).to(list)
^^ ^^
In scripting contexts, something like
_(strings).sh.sed("s/^/>> /").to(list)
would be preferable. As it is, that would make sh a thing wrapper to the sh module, that sets _in. And maybe for consistency some ish, that also sets _iter=True...
The downside would be, that it would introduce a feature that doesn't work on Windows. My popen based experiment is platform independent by contrast. Will look into it more.
Originally posted by @kbauer in #6 (comment)
Metadata
Metadata
Assignees
Labels
No labels