You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 12, 2022. It is now read-only.
The "heroku run" command fouls the output of the command that it is running by putting its own status message on standard out, instead of on standard error where it belongs:
$ heroku run echo hi | wc
2 9 55
Of course, "echo hi" should produce one line of output, not two—which would be the case if the following message were sent to standard error:
Running `echo hi` attached to terminal... up, run.1
This error makes it difficult to pass the output of "heroku run" into other Unix programs, like "grep" or "sort"—one has to write commands like:
$ heroku run find myapp/lib/ | (read throwaway; grep py)
Compare with the behavior of "ssh", which always sends status information to stderr:
The "heroku run" command fouls the output of the command that it is running by putting its own status message on standard out, instead of on standard error where it belongs:
Of course, "echo hi" should produce one line of output, not two—which would be the case if the following message were sent to standard error:
This error makes it difficult to pass the output of "heroku run" into other Unix programs, like "grep" or "sort"—one has to write commands like:
Compare with the behavior of "ssh", which always sends status information to stderr:
The text was updated successfully, but these errors were encountered: