From 2a92aaa05aa1acbf01092228d30e9b1d7b2a3f61 Mon Sep 17 00:00:00 2001 From: Gurusamy Sarathy Date: Thu, 24 Jul 1997 02:52:28 +1200 Subject: -S flag fixes for DOSISH platforms This patch supercedes the one posted here by Ilya (Message-Id: <199707191651.MAA04897@monk.mps.ohio-state.edu>). There are no changes for Unix platforms over Ilya's version. On DOSISH platforms, the initial check in the current directory (or the actual path to the script, if supplied) includes searching for valid extensions. The fact that -S does not do a PATH search if the supplied filename contains directory separators (on all platforms) is documented. This behavior is similar to Unix and DOS shells. Note -S *does* have an effect on DOSISH platforms even if no PATH search happens: valid extensions will be checked for if the file name is not found. p5p-msgid: 199707250043.UAA02385@aatma.engin.umich.edu --- pod/perldiag.pod | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'pod/perldiag.pod') diff --git a/pod/perldiag.pod b/pod/perldiag.pod index ab40fd122d..409aa21ec0 100644 --- a/pod/perldiag.pod +++ b/pod/perldiag.pod @@ -549,8 +549,19 @@ mention "perl" on the #! line somewhere. =item Can't execute %s +(F) You used the B<-S> switch, but the copies of the script to execute found +in the PATH did not have correct permissions. + +=item Can't find %s on PATH, '.' not in PATH + +(F) You used the B<-S> switch, but the script to execute could not be found +in the PATH, or at least not with the correct permissions. The script +exists in the current directory, but PATH prohibits running it. + +=item Can't find %s on PATH + (F) You used the B<-S> switch, but the script to execute could not be found -in the PATH, or at least not with the correct permissions. +in the PATH. =item Can't find label %s -- cgit v1.2.1