delorie.com/archives/browse.cgi   search  
Mail Archives: geda-help/2012/12/12/15:08:14

X-Authentication-Warning: delorie.com: mail set sender to geda-help-bounces using -f
X-Recipient: geda-help AT delorie DOT com
Received-SPF: None identity=pra; client-ip=207.181.246.185;
receiver=smtp01.lnh.mail.rcn.net;
envelope-from="bobgus AT rcn DOT com";
x-sender="bobgus AT rcn DOT com";
x-conformance=sidf_compatible
Received-SPF: Neutral identity=mailfrom; client-ip=207.181.246.185;
receiver=smtp01.lnh.mail.rcn.net;
envelope-from="bobgus AT rcn DOT com";
x-sender="bobgus AT rcn DOT com";
x-conformance=sidf_compatible;
x-record-type="v=spf1"
Received-SPF: None identity=helo; client-ip=207.181.246.185;
receiver=smtp01.lnh.mail.rcn.net;
envelope-from="bobgus AT rcn DOT com";
x-sender="postmaster AT hoho4 DOT chidig DOT com";
x-conformance=sidf_compatible
Message-ID: <1355342881.1739.13.camel@hoho6.chidig.com>
Subject: Re: [geda-help] Dirt Dumb Level..
From: Bob Gustafson <bobgus AT rcn DOT com>
To: geda-help AT delorie DOT com
Date: Wed, 12 Dec 2012 14:08:01 -0600
In-Reply-To: <1763693.MV8q8EB28b@harrington.peter-b.co.uk>
References: <1355205873 DOT 14812 DOT 39 DOT camel AT hoho6 DOT chidig DOT com>
<CAGde_xMGc-P=ZaE63hq0QefnjbAxHPS+sNo=+GxC+xAjye-6eA AT mail DOT gmail DOT com>
<1355254388 DOT 14812 DOT 95 DOT camel AT hoho6 DOT chidig DOT com>
<1763693 DOT MV8q8EB28b AT harrington DOT peter-b DOT co DOT uk>
X-Mailer: Evolution 3.4.4 (3.4.4-2.fc17)
Mime-Version: 1.0
X-Junkmail-Whitelist: YES (by domain whitelist at mr17.lnh.mail.rcn.net)
Reply-To: geda-help AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: geda-help AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On Wed, 2012-12-12 at 19:33 +0000, Peter TB Brett wrote:
> On Tuesday 11 December 2012 13:33:08 you wrote:
> > On Tue, 2012-12-11 at 15:35 +0100, Svenn Are Bjerkem wrote:
> > > On 11 December 2012 15:05, Bob Gustafson <bobgus AT rcn DOT com> wrote:
> > > > Cool - thanks much.
> > > > 
> > > > One needs to get one's head around Guile before approaching gEDA..
> > > > 
> > > > Perhaps a mini-note somewhere in the beginning tutorial..
> > > > 
> > > > Yes, I know - write it myself.
> > > 
> > > Don't forget to mention that Guile is not Skill in your manual in
> > > case a cadence composer user happens to drop by.....
> > 
> > Here is a stab at documentation enhancement:
> > 
> > At the top of the document geda:gsch2pcb_tutorial,
> > just above gschem -> gsch2pcb -> PCB
> > 
> > *** This document is geda:gsch2pcb_tutorial
> > *** http://wiki.geda-project.org/geda:gsch2pcb_tutorial
> > 
> > The reason is that if this document is saved to a local file, the
> > source and name of the file is lost.
> > 
> > ----
> > 
> > Just above the code fragment
> > (component-library "${HOME}/gaf/gschem-sym")
> > in the Setup section
> > 
> > *** The ${HOME} in the lines below are a little misleading.
> > *** The ${HOME} implies that there is something that will
> > *** evaluate an expression HOME=/home/user1/gEDA or something
> > *** like that. This is NOT the case as the syntax is that of
> > *** a Guile (Scheme (lisp)) source script, not bash. In Guile,
> > *** there is no implicit evaluation of the phrase ${HOME}.
> > ***
> > *** To define the ${HOME} for use in the lines below, one way is:
> > *** (define "${HOME}" "/home/user1/gEDA")
> > *** or similar. If you get strange error messages, the documentation
> > *** on the Guile language may be helpful. Guile is not Skill.
> > ***
> > *** Be also aware that some symbols, such as 'source-library' and
> > *** 'build-path' are not native Guile, but gEDA functions with their
> > *** own particular argument requirements and syntax.
> > 
> > Feel free to correct/hack it up.
> > 
> > Equipped as I am with a virgin pair of eyeballs, I can only write what
> > I see..  Hopefully my eyes will improve with experience, but that
> > might not be good for the next noobies coming along.
> 
> You're looking for the 'expand-env-variables' function.
> 
> (expand-env-variables "${HOME}")
> --> "/home/peter"
> 
> Cheers,
> 
>                         Peter
> 

[user1 AT hoho6 ~]$ guile
guile> (expand-env-variables "${HOME}")

Backtrace:
In standard input:
   1: 0* (expand-env-variables "${HOME}")

standard input:1:1: In expression (expand-env-variables "${HOME}"):
standard input:1:1: Unbound variable: expand-env-variables
ABORT: (unbound-variable)
guile> 


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019