From owner-freebsd-hackers@FreeBSD.ORG Sat Feb 27 02:57:47 2010 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7EAB1106564A for ; Sat, 27 Feb 2010 02:57:47 +0000 (UTC) (envelope-from jhellenthal@gmail.com) Received: from mail-yx0-f177.google.com (mail-yx0-f177.google.com [209.85.210.177]) by mx1.freebsd.org (Postfix) with ESMTP id 2E54D8FC1F for ; Sat, 27 Feb 2010 02:57:46 +0000 (UTC) Received: by yxe7 with SMTP id 7so154106yxe.3 for ; Fri, 26 Feb 2010 18:57:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:date:from:to:cc :subject:in-reply-to:message-id:references:user-agent :x-openpgp-key-id:x-openpgp-key-fingerprint:mime-version :content-type; bh=9giYDuPlrvbYfYBgrgF8tzYclo39srF10vV/NAbmU5E=; b=LCdH/Qhqsifrs5yC+S9UdAYaZKosgJu+45YdPBOq/QoQMtFInhQEmatsrlUpyc/Dmo nFfJ9SPdaQ/G4Pkw3eX9Chi1P+sYZteAB26YT5xsthnxRGJfP6OeeLvFK625t0y+HuL3 TBh45tflwuZ4MtzBHMneCB1BDJilbTlHdcm8M= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:date:from:to:cc:subject:in-reply-to:message-id:references :user-agent:x-openpgp-key-id:x-openpgp-key-fingerprint:mime-version :content-type; b=WWlLxWYLowbWyggT3gz4PZK6F8PZ4pTeaWqg3qFYEqqUo1Q6DR7cHOvG+affwYrY+y mk7YqaJLrF/9QObZKZcRHMTIMpwcstjqCuTZsWPHryzVUOV6fdNEbSlxvGb/eQXuXTFQ ymhybbBQkGpWQfFlNqsDeECYMa9SVC0NvRHzk= Received: by 10.150.48.25 with SMTP id v25mr1113956ybv.240.1267239461242; Fri, 26 Feb 2010 18:57:41 -0800 (PST) Received: from ppp-21.16.dialinfree.com (ppp-21.16.dialinfree.com [209.172.21.16]) by mx.google.com with ESMTPS id 6sm272147yxg.30.2010.02.26.18.57.00 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 26 Feb 2010 18:57:39 -0800 (PST) Sender: "J. Hellenthal" Date: Fri, 26 Feb 2010 21:55:30 -0500 From: jhell To: Garrett Cooper In-Reply-To: <7d6fde3d1002260256g71b6e431i705cb8180fdd0a5d@mail.gmail.com> Message-ID: References: <7d6fde3d1002251850m3d32904emece0182e905b84c5@mail.gmail.com> <20100226092119.GA61498@owl.midgard.homeip.net> <7d6fde3d1002260203l5c7491c7w9ed84cdf40acf9d7@mail.gmail.com> <201002261229.10310.j.mckeown@ru.ac.za> <7d6fde3d1002260256g71b6e431i705cb8180fdd0a5d@mail.gmail.com> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) X-OpenPGP-Key-Id: 0x89D8547E X-OpenPGP-Key-Fingerprint: 85EF E26B 07BB 3777 76BE B12A 9057 8789 89D8 547E MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: FreeBSD Hackers , Jonathan McKeown Subject: Re: mktemp(1) in /tmp or $PWD? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 27 Feb 2010 02:57:47 -0000 On Fri, 26 Feb 2010 05:56, yanefbsd@ wrote: > On Fri, Feb 26, 2010 at 2:29 AM, Jonathan McKeown wrote: >> On Friday 26 February 2010 12:03:42 Garrett Cooper wrote: >>> FreeBSD is a great system; if there are ways that I can possibly make >>> it better by adding smart defaults >> >> Be careful about that value judgement. There are certainly ways you can change >> it. Not everyone might feel the change is for the better, and changing the >> default behaviour of widely-used commands is one change that you might find >> some people disagree with. > > I agree that there are some things that I'm going to have to apply on > my own personal machines to achieve behavior that I want, and I agree > that my way may not be the best way to do things, but that's part of > the reasoning why I'm asking whether or not others find some value in > what I'm proposing... > > Thanks, > -Garrett > Hi Garrett, First off don't get me wrong and I understand where your coming from on this but. GNU/Linux utilities have assumed the lazy system administrators approach for a long time, let me explain. By specifying defaults as said $PWD to find(1) you are now assuming that the user does not want to see any usage info and now has to type -h or maybe --help or possibly -? "This is Wrong". Now on the case for mktemp(1) always specifying a /tmp as a default is making the lazy assumption that /tmp will always be usable yes this is BSD, Linux, UNIX but any utility that is going to write and not have a specified path should always write to $CWD and if $CWD is not writable then its a programming mistake. I like knowing that when I issue a command whether it be from a script or from the prompt that I do not have to look elsewhere unless that is what I wanted. Regards, -- jhell