On Mon 03 Oct 2011 08:05:26 AM PDT, Patrick Haller wrote:
> update_config() { [ `mtime $cfg` -gt `mtime $history` ] && . $cfg
> ; }
> export PS1='`update_config`> '
Never heard of mtime(1). Is that POSIX sh? This is:
update_config() { [ $cfg -nt $history ] && . $cfg ; }
--
Waste not fresh tears over old griefs.
-- Euripides
Received on Mon Oct 03 2011 - 20:42:01 CEST