I'm trying to do something like this. But it's not working.
$ alias setroot="export ROOT=$1; export PATH=$ROOT/bin:$PATH"
$ setroot /path/to/root
bash: export: `/path/to/root': not a valid identifier
Can someone point out, what is going wrong here? To clarify, I need ROOT also in my environment.