RE: export question



I am sorry that you think I was arguing with you. I apologize if it sounded
that way. Yes what you showed me will do what I wanted. But it did not
explain why export was not working. I could do what you suggest, and by
adding another file I can source that file and put the variable into the
environment, but you did not explain why export was not working. Roberto
Sanchez explained that is a subsequent email.

Thank you both for your help. I think I can fix my current issue and
understand where I was going wrong.

Tony

-----Original Message-----
From: Mike McCarty [mailto:Mike.McCarty@xxxxxxxxxxxxx]
Sent: Sunday, January 07, 2007 3:02 AM
To: debian-user@xxxxxxxxxxxxxxxx
Subject: Re: export question

Tony Heal wrote:
Here is the problem. What you suggest will place the variable in the
environment, but that is what export is supposed to do.

From the man for bash
export [-fn] [name[=word]] ...
export -p
The supplied names are marked for automatic export to the environment
of
subsequently executed commands.

Export should allow me to use the variable in other scripts, but it does
not
seem to be doing what it does if used in the profile.


I showed you how to do what you want. I showed that it
does what you want by example. I don't know why you are
arguing with me. The example I gave does exactly what you
just described. If you do what I suggested, subsequent
scripts will see those variables.


That is what I am confused about.

You wouldn't be confused if you would lift a finger
and try my example for yourself. You are being lazy.

Mike
--
This message made from 100% recycled bits.
You have found the bank of Larn.
I can explain it for you, but I can't understand it for you.
I speak only for myself, and I am unanimous in that!


--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx
with a subject of "unsubscribe". Trouble? Contact
listmaster@xxxxxxxxxxxxxxxx

-----Original Message-----
From: Mike McCarty [mailto:Mike.McCarty@xxxxxxxxxxxxx]
Sent: Sunday, January 07, 2007 3:02 AM
To: debian-user@xxxxxxxxxxxxxxxx
Subject: Re: export question

Tony Heal wrote:
Here is the problem. What you suggest will place the variable in the
environment, but that is what export is supposed to do.

From the man for bash
export [-fn] [name[=word]] ...
export -p
The supplied names are marked for automatic export to the environment
of
subsequently executed commands.

Export should allow me to use the variable in other scripts, but it does
not
seem to be doing what it does if used in the profile.


I showed you how to do what you want. I showed that it
does what you want by example. I don't know why you are
arguing with me. The example I gave does exactly what you
just described. If you do what I suggested, subsequent
scripts will see those variables.


That is what I am confused about.

You wouldn't be confused if you would lift a finger
and try my example for yourself. You are being lazy.

Mike
--
p="p=%c%s%c;main(){printf(p,34,p,34);}";main(){printf(p,34,p,34);}
This message made from 100% recycled bits.
You have found the bank of Larn.
I can explain it for you, but I can't understand it for you.
I speak only for myself, and I am unanimous in that!


--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx
with a subject of "unsubscribe". Trouble? Contact
listmaster@xxxxxxxxxxxxxxxx


--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx
with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx



Relevant Pages

  • Re: export question
    ... environment, but that is what export is supposed to do. ... Export should allow me to use the variable in other scripts, ... You have found the bank of Larn. ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx with a subject of "unsubscribe". ...
    (Debian-User)
  • Re: Why do people in the UK put a u in the word color?
    ... rest of the 4 letter words carry. ... <snicker snicker guffaw>, and you don't know the difference between ... "I love the environment, but I'm cheap on the environment." ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • Ordering init scripts & use of CONCURRENCY
    ... by changing the numbers would no longer work. ... I.e., starting scripts in parallel. ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • Re: Community hostility [Was Recent spam increase]
    ... Any group of people will end up arguing about stuff. ... the fact that we all come from such varied backgrounds, ... real problem is and throw it out there? ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • Re: Tool for document management
    ... if not arguing then maybe just annoying. ... I can see several use cases for a writing project to be similar ... Manoj Srivastava ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)