12 # Check that prompting works as expected when answering yes...
13 echo yes | darcs whatsnew
-s --posthook 'touch posthook-ran'
17 # Check that prompting works as expected when answering no...
18 echo no | darcs whatsnew
-s --posthook 'touch posthook-ran'
19 test ! -f posthook-ran
21 # Check that prompting works as expected with defaults (yes)...
22 echo ALL
--posthook touch posthook-ran
> _darcs
/prefs
/defaults
23 echo yes | darcs whatsnew
-s
27 # Check that prompting works as expected with defaults (no)...
28 echo no | darcs whatsnew
-s
29 test ! -f posthook-ran
31 # Check that --run-posthook works in defaults
32 echo ALL
--run-posthook >> _darcs
/prefs
/defaults
37 # Check that --run-posthook works when specified both in defaults and on
39 darcs whatsnew
--run-posthook -s
43 # Check that --posthook works when --run-posthook is in defaults
44 echo ALL
--run-posthook > _darcs
/prefs
/defaults
45 darcs whatsnew
--posthook 'touch posthook-ran' -s