4 # for issue381: "darcs send -o message --edit-description doesn't work"
18 echo Hello world
> foobar
20 darcs record
-a -A me
-m add_foobar
22 # Test that editor is called when --output is used with --edit-description
23 echo This is a note
> note
26 echo I am running the editor
29 echo hello world >> \$1
32 echo finished editing >> \$1
33 echo I am done running the editor
38 DARCS_EDITOR
='bash editor' darcs send
--debug --author=me
-a --output=bundle
--edit-description ..
/temp2
40 echo === beginning of bundle
> ===
42 echo === end of bundle
> ===
44 grep ' add_foobar' bundle
45 grep 'finished editing' bundle
47 IFS
=' ' darcs send
--author=me
-a --subject="it works" --to user@place.org
--sendmail-command='grep "^Subject: it works$" %<' ..
/temp2