2 message 'testing overriding existing files (this test need the Ruby interpreter http://www.ruby-lang.org/)'
7 input=$1; shift # y, n, a or s
12 inp, out, fd = PTY.getpty("$*")
24 rescue PTY::ChildExited
25 if \$!.status & 0xff != 0
26 STDERR.puts [\$!, \$!.status, \$?].inspect
35 echo foo > test-tmp/test-a &&
36 echo bar > test-tmp/test-b &&
37 echo baz > test-tmp/test-c &&
38 cp -pr test-tmp test-tmp2 &&
39 $lha c test-tmp.lzh test-tmp
41 $lha v test-tmp.lzh &&
47 cp -pr test-tmp2 test-tmp &&
48 pty 3 n $lha xw=test-tmp test-1.lzh
50 diff -r test-tmp test-tmp2
54 cp -pr test-tmp2 test-tmp &&
55 pty 3 y $lha xw=test-tmp test-1.lzh
57 diff -r test-1 test-tmp
61 cp -pr test-1 test-tmp &&
62 pty 1 a $lha x test-tmp.lzh
64 diff -r test-tmp test-tmp2
68 cp -pr test-tmp2 test-tmp &&
69 pty 1 s $lha xw=test-tmp test-1.lzh
71 diff -r test-tmp test-tmp2