Complete.Org: Mailing Lists: Archives: linux-help: July 2006:
[linux-help] Re: Dollar Arguments
Home

[linux-help] Re: Dollar Arguments

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: linux-help@xxxxxxxxx
Subject: [linux-help] Re: Dollar Arguments
From: Tom Hull <thull2@xxxxxxx>
Date: Sat, 01 Jul 2006 19:54:27 -0500
Reply-to: linux-help@xxxxxxxxx

Bruce Bales wrote:
> On Saturday 01 July 2006 15:25, Tom Hull wrote:
> 
>>Bruce Bales wrote:
>>
>>>I can find what is contained in $HOME or $PATH by using the command echo
>>>$HOME or echo $PATH.  But I often run into other arguments preceded with
>>>a "$" which I can't decipher with echo; as in the yum repos where it uses
>>>$basearch and fc$releasever.  I know basearch is probably i386 or i586
>>>and fc$releasever is fc5, but often I don't know what is hidden and echo
>>>usually doesn't help.  google seems to ignore the "$".
>>>
>>>Is there a way to retrieve this information or a file where it is stored?
>>>bruce
>
> Looking at /etc/yum, where the $basearch and $releasever are used didn't show 
> any assignments.  I tried to grep for them and found they are used a lot, but 
> not assigned here.
> 
> [bruce@blacky etc]$ grep -Hr "basearch" yum* |wc
>      59     240    6026
> [bruce@blacky etc]$ grep -Hr "basearch=" yum* |wc
>       0       0       0
> [bruce@blacky etc]$ grep -Hr "releasever" yum* |wc
>      70     270    7070
> [bruce@blacky etc]$ grep -Hr "releasever=" yum* |wc
>       0       0       0
> [bruce@blacky etc]$
> (I also did a visual search and found no assignments.)  I'll try to dig into 
> some of the python code associated with yum.
> 
> Since these variables are used in a configure file and not a shell script I 
> can't see how to use the sh -x -c .

Not knowing anything about yum, I was guessing shell script. If it's
python it won't help to use shell tricks. Don't know what does help.
The shell notion of denoting variables with $ has been picked up by
other script languages. Python undoubtedly has debugging switches,
but I don't know what they are or how they work.

> bruce

-- 
/*
  *  Tom Hull * http://tomhull.com/ * http://notesoneverydaylife.com/
  */


-- This is the linux-help@xxxxxxxxx list.  To unsubscribe,
visit http://www.complete.org/cgi-bin/listargate-aclug.cgi


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