| > at_times=:
| > times >dev/null 2>&1 && at_times=times
| > $at_times >at-times
| > echo $?
|
| > times: not found
| > 0
|
| This suggests that this works, but that the shell somehow
| doesn't let its 'not found' message be redirected :-(
|
| How about
|
| at_times=:
| (times) >dev/null 2>&1 && at_times=times
| echo at_times=$at_times
| $at_times >at-times
| echo $?
|
| or
|
| at_times=times
| (times) >dev/null 2>&1 || at_times=:
| echo at_times=$at_times
| $at_times >at-times
| echo $?
I like the former more. Would you install it please?
lib/autotest/general.m4. TIA.