perlquestion
Special_K
If I run the "umask" command in a Linux terminal, the result is 2. I am running tcsh and have a perl script that runs the following commands:
<code>
printf("umask is %s\n", umask());
system "/usr/bin/xterm -name \"test\" -hold -e '$command' & ";
</code>
<p>
where $command is:
</p>
<code>
echo \"umask is \" ; umask; ";
</code>
<p>
The first printf() statement returns 2, but the echo called from the xterm returns 22. Why are these different, and what should I do to make the 22 a 2?
</p>