Reading From stdin After Command Line Redirection

Tim Chase python.list at tim.thechases.com
Thu Oct 24 06:45:00 EDT 2013


On 2013-10-24 14:53, Ben Finney wrote:
> I think the request is incoherent: If you want to allow the user to
> primarily interact with the program, this is incompatible with also
> wanting to redirect standard input.

As a counter-example, might I suggest one I use regularly:

  gimme_stuff_on_stdout.sh | vim -

I want to use vim interactively, but I want it to read the
file-to-edit from stdin.

-tkc







More information about the Python-list mailing list