#!/bin/sh
export PATH=/foo/foo:$PATH
Then, we need excute ". start.sh".
$ man 1 bash
BASH_ARGC
An array variable whose values are the number of parameters in each
frame of the current bash execution call stack. The number of
parameters to the current subroutine (shell function or script
executed with . or source) is at the top of the stack. When a
subroutine is executed, the number of parameters passed is pushed onto
BASH_ARGC. The shell sets BASH_ARGC only when in extended debugging
mode (see the description of the extdebug option to the shopt builtin
below)
--
Alan Lu, a man, enjoy programming & UNIX.
My website: http://alan0098.googlepages.com/
沒有留言:
張貼留言