Script to Set Environment Variable?
How do I write a script to set an environment variable?
I feel like I should know this. I want to set my PATH in pbuilder & the
author suggested using an "A" hook. However, I can't create a hook - an
executable - which sets an environment variable.
I tried:
#!/bin/sh
export PATH=/usr/lib/ccache:$PATH
and just:
export PATH=/usr/lib/ccache:$PATH
but in either case, calling ./A10hook doesn't change my environment
variable. I hope I'm just missing something foolishly obvious.
Thanks for any help!
Jack
Reply to: