- or download this
#!perl -w
$CYGWIN_BIN="C:\\cygwin\\bin";
$ENV{TEST_FUNC} = "() {\necho Hey, it works!;\n };\n";
system(("$CYGWIN_BIN\\bash.exe", "-c \"declare -f\""));
system(("$CYGWIN_BIN\\bash.exe", "-c \"TEST_FUNC\""));
- or download this
#!perl -w
$CYGWIN_BIN="C:\\cygwin\\bin";
$ENV{test_func} = "() {\necho Hey, it works!;\n };\n";
system(("$CYGWIN_BIN\\bash.exe", "-c \"declare -f\""));
system(("$CYGWIN_BIN\\bash.exe", "-c \"test_func\""));