Output of last shell command

前端 未结 11 1540
渐次进展
渐次进展 2020-12-29 02:49

Not until midway through a 3 hour build script, I\'ll remember that I want to see something at the beginning of the output after it\'s done. At this point I\'ve exceeded th

11条回答
  •  死守一世寂寞
    2020-12-29 02:50

    No. The output of a program never passes through the shell's hands. Without redirection, it goes straight to the TTY. With redirection, it goes straight to whatever file or pipe it was directed to. The shell has no idea what the process sent to stdout/stderr.

提交回复
热议问题