watch: execute command thru shell, not fork/exec. Other fixes

This commit is contained in:
Denis Vlasenko
2006-10-20 23:48:30 +00:00
parent 9bff26cccb
commit 8d73c35916
2 changed files with 54 additions and 32 deletions

View File

@ -3296,11 +3296,12 @@ USE_FEATURE_START_STOP_DAEMON_FANCY( \
"\t-a\tLock all VTs"
#define watch_trivial_usage \
"[-n <seconds>] COMMAND..."
"[-n <seconds>] [-t] COMMAND..."
#define watch_full_usage \
"Executes a program periodically.\n" \
"Executes a program periodically\n\n" \
"Options:\n" \
"\t-n\tLoop period in seconds - default is 2"
"\t-n\tLoop period in seconds - default is 2\n"
"\t-t\tDon't print header"
#define watch_example_usage \
"$ watch date\n" \
"Mon Dec 17 10:31:40 GMT 2000\n" \