[Gllug] simple bash problem
Christian Smith
csmith at micromuse.com
Wed Jan 23 19:58:21 UTC 2002
On 23 Jan 2002, mike wrote:
>anyone got any idea why this is not working
>
>#!/bin/bash -v
>export PATH='/usr/local/gnome/bin:$PATH'
>export LD_LIBRARY_PATH=$'/usr/local/gnome/lib:$LD_LIBRARY_PATH'
>export GNOME_PATH=$'/usr/local/gnome'
>export PKG_CONFIG_PATH=$'/usr/local/gnome/lib/pkgconfig:/usr/lib'
>export USE_GNOME_2_MACROS=1
>
>or this
>
>#!/bin/bash
>PATH=/usr/local/gnome/bin:$PATH
>export PATH
>LD_LIBRARY_PATH=/usr/local/gnome/lib/:$LD_LIBRARY_PATH
>export LD_LIBRARY_PATH
>GNOME_PATH=/usr/local/gnome/
>export GNOME_PATH
>PKG_CONFIG_PATH=/usr/local/gnome/lib/pkgconfig/:/usr/lib
>export PKG_CONFIG_PATH
>USE_GNOME_2_MACROS="1"
>export USE_GNOME_2_MACROS
>
>both run without error but dont do anything apart from set
>USEER=Mike=_./programname
What exactly are you trying to do? If you're running these as scripts,
they won't affect your environment, only the environment of the script
itself and it's children.
Probably what you want to do is:
$ source <stuff>
This reads the commands from the file <stuff> as if you typed them in at
the command line yourself.
>
>
>
>
--
/"\
\ / ASCII RIBBON CAMPAIGN - AGAINST HTML MAIL
X - AGAINST MS ATTACHMENTS
/ \
--
Gllug mailing list - Gllug at linux.co.uk
http://list.ftech.net/mailman/listinfo/gllug
More information about the GLLUG
mailing list