From 53745d8df0a6e00d2ddf1c08f7ea71820d587673 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Tue, 16 Mar 2010 09:43:51 +0000 Subject: 27793 and follow ups: add PATH_SCRIPT option to find script using $PATH --- Doc/Zsh/invoke.yo | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'Doc/Zsh/invoke.yo') diff --git a/Doc/Zsh/invoke.yo b/Doc/Zsh/invoke.yo index 01e9b00e6..e03c1e25b 100644 --- a/Doc/Zsh/invoke.yo +++ b/Doc/Zsh/invoke.yo @@ -1,7 +1,7 @@ texinode(Invocation)(Files)(Roadmap)(Top) chapter(Invocation) cindex(invocation) -sect(Invocation Options) +sect(Invocation) cindex(shell options) cindex(options, shell) cindex(shell flags) @@ -17,7 +17,8 @@ first one is assigned to tt($0), rather than being used as a positional parameter. ) item(tt(-i))( -Force shell to be interactive. +Force shell to be interactive. It is still possible to specify a +script to execute. ) item(tt(-s))( Force shell to read commands from the standard input. @@ -27,6 +28,15 @@ execute. ) enditem() +If there are any remaining arguments after option processing, and neither +of the options tt(-c) or tt(-s) was supplied, the first argument is taken +as the file name of a script containing shell commands to be executed. If +the option tt(PATH_SCRIPT) is set, and the file name does not contain a +directory path (i.e. there is no `tt(/)' in the name), first the current +directory and then the command path given by the variable tt(PATH) are +searched for the script. If the option is not set or the file name +contains a `tt(/)' it is used directly. + After the first one or two arguments have been appropriated as described above, the remaining arguments are assigned to the positional parameters. -- cgit 1.4.1