From 2f2756ab422102fb686a2d7fc1e4f65e82ec7f01 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Mon, 6 Jul 2009 20:38:53 +0200 Subject: pkg: Execute prereqs in function scope This should encourage the use of typeset / setopt localoptions where neccessary --- man/7/pkg | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'man') diff --git a/man/7/pkg b/man/7/pkg index bce5e79..c260975 100644 --- a/man/7/pkg +++ b/man/7/pkg @@ -139,6 +139,10 @@ The prerequisites are stored in a package in the file F. It as an ordinary shell script which is sourced by pkg's global post-update hook; so it will be sourced after pulling, pushing or refreshing a package. +Note that the file will be sourced in function scope. It is recommended to +introduce parameters and options local to the prereqs script with +C<< typeset >> and C<< setopt localoptions >>, respectively. + It's main use is to check for dependencies. To help with this, the following functions are available: -- cgit v1.2.3