--- orig/help2man-1.29/help2man.PL	2002-09-06 16:14:18.000000000 +0000
+++ gnu.dev/help2man-1.29/help2man.PL	2003-02-20 21:04:28.000000000 +0000
@@ -85,6 +85,12 @@ use Getopt::Long;
 use Text::Tabs qw(expand);
 use POSIX qw(strftime setlocale LC_TIME);
 
+# If we're running in a DJGPP environment, set up $ENV{SHELL} to point
+# to bash. If we don't do this, the wrong shell might be used
+# (e.g. command.com) and backtick execution with stderr redirection
+# (e.g. `$ARGV[0] --help 2>/dev/null`) will fail.
+if (defined($ENV{DJDIR})) { $ENV{SHELL} = '/dev/env/DJDIR/bin/bash.exe'; }
+
 !NO!SUBS!
 
 # Interpolate program name and version:
--- orig/help2man-1.29/Makefile.in	2002-09-06 16:14:18.000000000 +0000
+++ gnu.dev/help2man-1.29/Makefile.in	2003-02-20 22:19:38.000000000 +0000
@@ -76,7 +76,7 @@ $(target): $(srcdir)/$(target).PL
 	chmod 555 $@
 
 $(target)$(manext): $(target) $(srcdir)/$(target).h2m
-	./$(target) --include=$(srcdir)/$(target).h2m \
+	$(PERL) ./$(target) --include=$(srcdir)/$(target).h2m \
 	    --output=$@ ./$(target)
 
 info: $(target).info
