2 message 'testing extracting to existent 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 # p [\$!, \$!.status, \$?]
33 echo foo > test-tmp/test-a &&
34 echo bar > test-tmp/test-b &&
35 echo baz > test-tmp/test-c &&
36 cp -pr test-tmp test-tmp2 &&
37 $lha c test-tmp.lzh test-tmp
39 $lha v test-tmp.lzh &&
44 pty 3 n $lha xw=test-tmp test-1.lzh
46 diff -r test-tmp test-tmp2
49 pty 3 y $lha xw=test-tmp test-1.lzh
51 diff -r test-1 test-tmp
54 pty 1 a $lha x test-tmp.lzh
56 diff -r test-tmp test-tmp2
59 pty 1 s $lha xw=test-tmp test-1.lzh
61 diff -r test-tmp test-tmp2