code_junkie

How to I export a system scope environment variable in bash

Nov 12th, 2011
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.09 KB | None | 0 0
  1. #!/bin/bash
  2. echo MYVAR=abc123
  3.  
  4. $ eval "$(foo.sh)"
  5. $ echo $MYVAR #==> abc123
Add Comment
Please, Sign In to add comment