morfizm (morfizm) wrote,
morfizm
morfizm

Unix question

If output of an executable I control is already being redirected, how can I redirect it back to the terminal? Say, in case of a bash script?

Trying to make vimdiff work with perforce resolve. It works with "p4 diff", but doesn't with "p4 resolve", because resolve is piping $P4DIFF somewhere (I guess, to "less"). When output is redirected, vimdiff doesn't work, prints garbage and freezes the terminal.
Tags: in english, software development
Subscribe

  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 11 comments