I've written a script in sh (which is bash) which is executable
and in the $USER $PATH

when I was testing it, I used "sh doit.sh" and all was okay.

Problem is that script needs to generate files with the same umask
of $USER which is different from the system umask, and can change
from user to user.

Situation, when that is run as tested (login shell), all is fine.
a umask of 007 is applied to files created. But when it's deposited
in the $PATH directory and run as "doit.sh" it uses the system umask.

okay I think I know what to do here, change the she-bang to invoke
a login shell...

#!/bin/sh --login

no workie. I don't see any other ways (eg set -o login) to make a
login shell.  ...So how do I inherit the user's umask within the
script?

// George



-- 
George Georgalis, systems architect, administrator <IXOYE><
http://galis.org/ cell:646-331-2027 mailto:[EMAIL PROTECTED]


-- 
[email protected]
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list

Reply via email to