- Aug
- 64
- 2
Using the following (as an example):
copy srcdir dstdir | tee logfile
the files are copied, and their names both displayed and logged.
BUT, if copy has to prompt (overwrite file y/n?), then the prompt line is not displayed UNTIL the response (y or n) is given, after which both the prompt line and the response are displayed. It would be better if the prompt were displayed BEFORE the user typed the response.
copy srcdir dstdir | tee logfile
the files are copied, and their names both displayed and logged.
BUT, if copy has to prompt (overwrite file y/n?), then the prompt line is not displayed UNTIL the response (y or n) is given, after which both the prompt line and the response are displayed. It would be better if the prompt were displayed BEFORE the user typed the response.