[arch-general] [PATCH 21/48] Both rc.single and rc.shutdown use the same code to kill everything.
Kurt J. Bosch
kjb-temp-2009 at alpenjodel.de
Wed Sep 1 21:27:36 EDT 2010
2010-09-01 17:29, Victor Lowther:
>
> Bash globbing cannot handle it, but bash knows how to test file
> timestamps, so we could code something up that handles killing the
> daemons in reverse timestamp order if we had to.
ls -l --full-time healthd fancontrol
-rw-r--r-- 1 root root 0 2010-09-02 00:51:28.680006529 +0200 fancontrol
-rw-r--r-- 1 root root 0 2010-09-02 00:51:28.736673174 +0200 healthd
[[ healthd -nt fancontrol || healthd -ot fancontrol ]] || echo equal
equal
It appears as if bash doesn't recognise fractions of a second :/
More information about the arch-general
mailing list