NAME

batsh.pl - run a bilingual cmd.exe / bash .batsh script

SYNOPSIS

batsh.pl [--encoding=ENC] script.batsh [args...]
batsh.pl [--encoding=ENC] -            # read the script from STDIN
batsh.pl [--encoding=ENC] -e 'source'  # run inline source
batsh.pl                               # interactive REPL
batsh.pl --version
batsh.pl --help

DESCRIPTION

Thin launcher around BATsh->main(@ARGV). The process exit code is the script's exit code: the argument of exit N (SH mode) or EXIT [/B] N (CMD mode), or the status of the last executed command.

ENC is one of cp932, sjis, gbk, uhc, big5, utf8, none, or auto (the default).

SEE ALSO

BATsh

AUTHOR

INABA Hitoshi <ina.cpan@gmail.com>

LICENSE

This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.