New user .login file && a question
Barry Margolin
barmar at think.COM
Thu Aug 25 02:59:07 AEST 1988
In article <28862 at bbn.COM> mesard at BBN.COM () writes:
>What gives? Why would csh lose it's place in what I expected to be an
>unlink'ed but not yet forgotten file?
Because I don't think that "cp file existing_file" ever actually
unlinks existing_file. It simply overwrites it. What you should have
done is:
grep -v "FIRST_LOGIN" ~/.login > /tmp/$user.login
rm ~/.login
mv /tmp/$user.login ~/.login
Barry Margolin
Thinking Machines Corp.
barmar at think.com
{uunet,harvard}!think!barmar
More information about the Comp.unix.wizards
mailing list