Hello. I've a couple of (probably elementary) questions about shell
programming. Any help on these, including good references for the novice
shell programmer, would be greatly appreciated.
1) Is it possible to/how does one change the value of a shell or
environment variable from within a subshell? The application I have
in mind is modifying the display variable with a shell script.
2) Alternatively, I've tried:
alias disp setenv DISPLAY '"grad"$1":0"'
where the intended result of: disp 01 would be
setenv DISPLAY grad01:0
Instead the command is formatted like:
setenv DISPLAY grad:0 01
Any suggestions on how this approach could be made to work?
Thanks in advance for any help. Replies by e-mail or follow-up posts
are fine.
Mike Buksas
--
Michael W. Buksas | Mathematics Department | Just my opinions,
919/571-1339 | 919/515-7321 | Or probably yours.
http://www2.ncsu.edu/eos/users/m/mwbuksas/www