cat > script <<'+-+-+-+-+-END-OF-FILE-+-+-+-+-+'
: "handle bad arguments"

: Standard output is not used on DOS and VMS, therefore the first two tests
: should be modified as follows -
: empexpt -TESTMODE -w  test0  $MSTESTDB					
: empexpt -TESTMODE     test0  baddb					

empexpt -TESTMODE -w  -  $MSTESTDB					
empexpt -TESTMODE     -  baddb					
mkdir badexp
empexpt -TESTMODE badexp
rmdir badexp
empexpt -TESTMODE test0  baddb			
empexpt -TESTMODE test1  $MSTESTDB badtable			

rm -rf test0 test1
+-+-+-+-+-END-OF-FILE-+-+-+-+-+
chmod 755 script
cat > stdout <<'+-+-+-+-+-END-OF-FILE-+-+-+-+-+'

*** Usage: illegal option 'w'

*** Error: 'baddb' is not a valid database

*** Error: cannot create file 'badexp'

*** Error: 'baddb' is not a valid database
*** Export Error *** table 'badtable' does not exist
+-+-+-+-+-END-OF-FILE-+-+-+-+-+
chmod 644 stdout
cat > tag <<'+-+-+-+-+-END-OF-FILE-+-+-+-+-+'
Test export utility, command line arguments.
+-+-+-+-+-END-OF-FILE-+-+-+-+-+
chmod 644 tag
cat > stdout.jp_euc <<'+-+-+-+-+-END-OF-FILE-+-+-+-+-+'

*** Usage: ץ 'w' ŬڤǤ

*** Error: 'baddb' ̵ʥǡ١Ǥ

*** Error: ե 'badexp' Ǥޤ

*** Error: 'baddb' ̵ʥǡ١Ǥ
*** Export Error *** ơ֥ 'badtable' ¸ߤޤ
+-+-+-+-+-END-OF-FILE-+-+-+-+-+
chmod 644 stdout.jp_euc
