Path: utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!mailrus!ames!think!husc6!linus!encore!bzs From: bzs@encore.UUCP (Barry Shein) Newsgroups: comp.unix.wizards Subject: Re: New user .login file && a question Message-ID: <3526@encore.UUCP> Date: 27 Aug 88 16:14:10 GMT References: <28862@bbn.COM> Organization: Encore Computer Corp, Marlboro, MA Lines: 15 In-reply-to: mesard@bbn.com's message of 23 Aug 88 15:57:41 GMT Having a new user .login which changes itself into a not-new user .login seems like a fine idea. What I don't understand is why do you use all that grepping etc to a tmp file to build the other, why not just have two .logins (.login and .login.2) and just mv the second over the first and avoid the fancy dancing (I dunno, someday you'll hit a full /tmp/ or something.) Seems a mv is a simpler thing, who cares if they have a bunch of lines in common (in fact, on the first entry the new-user .login could source the second if that's what you want, I'd just duplicate them to avoid stuff like having the file open.) Occam's lektra-shave or some such. -Barry Shein, ||Encore||