[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: last `set option value' always passed as $1 and $2 during a 'source'
From: |
Philip Lijnzaad |
Subject: |
Re: last `set option value' always passed as $1 and $2 during a 'source' ?? |
Date: |
11 Jun 2001 16:57:06 +0100 |
On 11 Jun 2001 16:17:10 +0200,
"Sven" == Sven Mascheck <sven.mascheck@student.uni-ulm.de> wrote:
Sven> Philip Lijnzaad <lijnzaad@ebi.ac.uk> wrote:
>> [...] When I comment out the ``set horizontal-scroll-mode on' in the
>> calling shell, I don't see these funny options. It appears that the last
>> ``set option value'' is always given as $1 and $2 to a source'd script.
Sven> You're clearly confusing the set command of readline (p.48)
Sven> and the set built-in of bash (p.81) %-)
I know that horizontal-scroll-mode is an readline option, but your reply
doesn't address the question (and the pages you refer to are in which book?),
which is why a source'd script gets any other options. In fact, if you
set foo bar
, this will result in $1 being 'foo' and $2 being 'bar' when doing a
source somefile. So readline is irrelevant, and my question remains.
Philip
--
If you have a procedure with 10 parameters, you probably missed some. (Kraulis)
-----------------------------------------------------------------------------
Philip Lijnzaad, lijnzaad@ebi.ac.uk \ European Bioinformatics Institute,rm A2-08
+44 (0)1223 49 4639 / Wellcome Trust Genome Campus, Hinxton
+44 (0)1223 49 4468 (fax) \ Cambridgeshire CB10 1SD, GREAT BRITAIN
- last `set option value' always passed as $1 and $2 during a 'source' ??, Philip Lijnzaad, 2001/06/11
- Re: last `set option value' always passed as $1 and $2 during a 'source' ??, Sven Mascheck, 2001/06/11
- Re: last `set option value' always passed as $1 and $2 during a 'source' ??,
Philip Lijnzaad <=
- Re: last `set option value' always passed as $1 and $2 during a 'source' ??, Paul Jarc, 2001/06/11
- Re: last `set option value' always passed as $1 and $2 during a 'source' ??, Philip Lijnzaad, 2001/06/11
- Re: last `set option value' always passed as $1 and $2 during a 'source' ??, Paul Jarc, 2001/06/11
- Re: last `set option value' always passed as $1 and $2 during a 'source' ??, Philip Lijnzaad, 2001/06/11
- Re: last `set option value' always passed as $1 and $2 during a 'source' ??, Paul Jarc, 2001/06/11
- Re: last `set option value' always passed as $1 and $2 during a 'source' ??, Philip Lijnzaad, 2001/06/12
- Re: last `set option value' always passed as $1 and $2 during a 'source' ??, Paul Jarc, 2001/06/12
- $# equals 1 in scripts sourced with no arguments from a login shell when bash 1.x vars are set (was: last `set option value' always passed as $1 and $2 during a 'source' ??), Denis McKeon, 2001/06/11
- Re: $# equals 1 in scripts sourced with no arguments from a login shell when bash 1.x vars are set, Paul Jarc, 2001/06/12
- Re: $# equals 1 in scripts sourced with no arguments from a login shell when bash 1.x vars are set, Denis McKeon, 2001/06/13