[PLUG] conditional redirect in shell script

Galen Seitz galens at seitzassoc.com
Wed Jun 5 19:31:15 UTC 2002


galens at seitzassoc.com said:
> I want to conditionally redirect stdout to /dev/null in a shell
> script. However, it appears that redirection occurs before variable
> expansion,  which means my approach won't work.  What is the correct
> way to do this? 

Nevermind, I found the answer.  eval is my friend.

galen






More information about the PLUG mailing list