bug-bash
[Top][All Lists]
Advanced

[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 <address@hidden> wrote:

Sven> Philip Lijnzaad <address@hidden> 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, address@hidden \ 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]