7 rm -fr file-creation
&&
8 git init file-creation
&&
11 git commit
--allow-empty -m init
&&
12 echo postimage
>"$postimage" &&
13 git add
-N "$postimage" &&
14 git
diff HEAD
>"../git-$desc.diff"
17 rm -fr trad-modification
&&
18 mkdir trad-modification
&&
20 cd trad-modification
&&
21 echo preimage
>"$postimage.orig" &&
22 echo postimage
>"$postimage" &&
23 ! diff -u "$postimage.orig" "$postimage" >"../diff-$desc.diff"
26 rm -fr trad-creation
&&
27 mkdir trad-creation
&&
31 echo postimage
>"b/$postimage" &&
32 ! diff -pruN a b
>"../add-$desc.diff"
36 do_filename plain postimage.txt
&&
37 do_filename
'with spaces' 'post image.txt' &&
38 do_filename
'with tab' 'post image.txt' &&
39 do_filename
'with backslash' 'post\image.txt' &&
40 do_filename
'with quote' '"postimage".txt' &&
41 expand add-plain.
diff >damaged.
diff ||