Including output of environment variable in command line?
Janina Sajka
janina at afb.net
Sat Sep 22 13:48:02 EDT 2001
Charley:
I suspect he's talking BASH where $HOME is a user's top level file
directory. For ordinary users this is nowhere near the root of the
directory tree.
On Thu, 20 Sep 2001, Charles Crawford wrote:
> I don't know what language you are using. Usually there is an
> initialization of the variable such as store "home" to mydir
> and then you would use mydir as the variable to capture the input of the
> user and if the default of home, the program would search for he associated
> object of home when executing the operation at run time. I only really
> know Clipper but it would look like this:
>
> Store "home" to mydir
> accept " Where do you want to go? " to mydir
> goto mydir
>
>
> Of course I have no idea of the context in which your are programming.
>
> -- Charlie Crawford.
> At 02:18 PM 9/20/01 +00-02, you wrote:
> >Hello list, I used to know how to do this but can't think of it at the
> >moment. How does one go about including the output of an environment
> >variable in a command line? I thought it was something like the following
> >command line example.
> > 'program --directory $HOME$/test' where $HOME$ is the variable I want to
> > insert. When I try this the program complains it can not find the directory.
> >
> >Any help on this would be appreciated.
> >
> >Doug
> >
> >
> >_______________________________________________
> >Speakup mailing list
> >Speakup at braille.uwo.ca
> >http://speech.braille.uwo.ca/mailman/listinfo/speakup
>
>
>
> _______________________________________________
> Speakup mailing list
> Speakup at braille.uwo.ca
> http://speech.braille.uwo.ca/mailman/listinfo/speakup
>
--
Janina Sajka, Director
Technology Research and Development
Governmental Relations Group
American Foundation for the Blind (AFB)
Email: janina at afb.net Phone: (202) 408-8175
Chair, Accessibility SIG
Open Electronic Book Forum (OEBF)
http://www.openebook.org
Will electronic books surpass print books? Read our white paper,
Surpassing Gutenberg, at http://www.afb.org/ebook.asp
Download a free sample Digital Talking Book edition of Martin Luther
King Jr's inspiring "I Have A Dream" speech at
http://www.afb.org/mlkweb.asp
Learn how to make accessible software at
http://www.afb.org/accessapp.asp
More information about the Speakup
mailing list