[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
sourcing and args
From: |
debian_sid |
Subject: |
sourcing and args |
Date: |
Thu, 7 Jul 2005 15:11:07 +0200 |
User-agent: |
KMail/1.7.2 |
Configuration Information [Automatically generated, do not change]:
Machine: i386
OS: linux-gnu
Compiler: gcc
Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='i386'
-DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='i386-pc-linux-gnu'
-DCONF_VENDOR='pc' -DLOCALEDIR='/usr/share/locale' -DPACKAGE='bash' -DSHELL
-DHAVE_CONFIG_H -I. -I../bash -I../bash/include -I../bash/lib -g -O2
uname output: Linux indiga 2.6.7 #2 SMP Thu Oct 7 19:38:07 CEST 2004 i686
GNU/Linux
Machine Type: i386-pc-linux-gnu
Bash Version: 3.0
Patch Level: 16
Release Status: release
Description:
When sourcing a bash script from a 'parent' script the parameters/args
supplied to the 'parent' script are
passed on to the sourced script (!)
unless there are parameters supplied to the sourced script , which
makes me conclude its a bug
Repeat-By:
so i.e.
a) . somescript
and
b) . somescript -q
will behave differently
in a) somescript will receive its parents args while in b) it does not
Fix:
- sourcing and args,
debian_sid <=