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

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

    When you submit the form an invisible reCAPTCHA check will be performed.
    You must follow the Privacy Policy and Google Terms of use.
  • 12 comments