From 188e64dde7746219802c1eafb9ef48df31f65f0d Mon Sep 17 00:00:00 2001 From: Nicolas R Date: Tue, 16 Jun 2020 11:05:17 -0600 Subject: Provide a better recommendation for 'Run only under a shell' Using an unset variable hides the true intent and also requires an extra backslash `\$running_under_some_shell` when used in heredoc. Note that this could also lead to mistake when using `\$` in a regular Perl program, as this would be true and not false as it should be. Stop recommending the use of an undefined variable for the shell fallback. Use '0', with a comment making clear the goal of 'if 0'. --- README.bs2000 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'README.bs2000') diff --git a/README.bs2000 b/README.bs2000 index bfed5d5e48..d34cc7ce03 100644 --- a/README.bs2000 +++ b/README.bs2000 @@ -137,7 +137,7 @@ instead: : # use perl eval 'exec /usr/local/bin/perl -S $0 ${1+"$@"}' - if $running_under_some_shell; + if 0; # ^ Run only under a shell =head2 Using Perl in "native" BS2000 -- cgit v1.2.1