Path: utzoo!utgpu!water!watmath!clyde!ima!think!barmar From: barmar@think.COM (Barry Margolin) Newsgroups: comp.unix.wizards Subject: Re: New user .login file && a question Message-ID: <26265@think.UUCP> Date: 24 Aug 88 16:59:07 GMT References: <28862@bbn.COM> Sender: news@think.UUCP Reply-To: barmar@kulla.think.com.UUCP (Barry Margolin) Organization: Thinking Machines Corporation, Cambridge, MA Lines: 17 In article <28862@bbn.COM> mesard@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@think.com {uunet,harvard}!think!barmar