about summary refs log tree commit diff
path: root/Doc/Zsh/invoke.yo
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2010-03-16 09:43:51 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2010-03-16 09:43:51 +0000
commit53745d8df0a6e00d2ddf1c08f7ea71820d587673 (patch)
tree8cbc8ea34d3c9d26dcc8428b2652ac8df3f2859d /Doc/Zsh/invoke.yo
parent1b68e0ea00deb508b394f1c0a4413205e621c293 (diff)
downloadzsh-53745d8df0a6e00d2ddf1c08f7ea71820d587673.tar.gz
zsh-53745d8df0a6e00d2ddf1c08f7ea71820d587673.tar.xz
zsh-53745d8df0a6e00d2ddf1c08f7ea71820d587673.zip
27793 and follow ups: add PATH_SCRIPT option to find script using $PATH
Diffstat (limited to 'Doc/Zsh/invoke.yo')
-rw-r--r--Doc/Zsh/invoke.yo14
1 files changed, 12 insertions, 2 deletions
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.