From owner-freebsd-hackers@FreeBSD.ORG Sat Jul 17 23:59:56 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 0D8F7106566B for ; Sat, 17 Jul 2010 23:59:56 +0000 (UTC) (envelope-from joris.dedieu@gmail.com) Received: from mail-ew0-f54.google.com (mail-ew0-f54.google.com [209.85.215.54]) by mx1.freebsd.org (Postfix) with ESMTP id 93E468FC16 for ; Sat, 17 Jul 2010 23:59:55 +0000 (UTC) Received: by ewy26 with SMTP id 26so1223314ewy.13 for ; Sat, 17 Jul 2010 16:59:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=oTBAlpgvr1AgdaKXPOSIxg2NnuBRmClPdjxOGWI/kBI=; b=iNbdGBlvCBQBPdcXqDwkEPmDr0aWJaDCmEcMKqLhCGA8P2Oa+fINsYHO6B96/fb0L+ qNyOtgCdVtgHFhJmi3E4GL5DLz+zfN/xqAG9sUJ+j6fMzo2Yp9286eJt5jcd7Z8uaseo nJ/T76DqdIZeAu0dDqTOKK2qsAtQcB6rLmc2c= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=YkYT3sBk5KQPMNA68RKGy4gY5wjfLkI2Em18SwcAE5osDJtRnG5Svq7+WtbPtyqIq0 ZFHCGKCO69lLmxMGU8FqanD2W9IPmTYtN/HRPFC+aCZbPdoYSTg27eByaECKykZpwDVz pNjL1Bol1hobsaoNyToRmWAiyyDMIXTGl7sk0= MIME-Version: 1.0 Received: by 10.213.25.138 with SMTP id z10mr2755459ebb.52.1279411194244; Sat, 17 Jul 2010 16:59:54 -0700 (PDT) Received: by 10.213.36.15 with HTTP; Sat, 17 Jul 2010 16:59:54 -0700 (PDT) In-Reply-To: References: Date: Sun, 18 Jul 2010 01:59:54 +0200 Message-ID: From: joris dedieu To: freebsd-hackers@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Re: [PATCH] allow empty files creation with install 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, 17 Jul 2010 23:59:56 -0000 2010/7/17 Garrett Cooper : > On Sat, Jul 17, 2010 at 6:34 AM, joris dedieu wr= ote: >> This patch add a -t switch to install(3). This is a small feature for >> lazy sysadmins. >> >> before : >> >> touch /usr/home/foo/.history /usr/home/foo/.bash_history >> chown foo /usr/home/foo/.history /usr/home/foo/.bash_history >> chmod 600 /usr/home/foo/.history /usr/home/foo/.bash_history >> chflags sappend /usr/home/foo/.history /usr/home/foo/.bash_history >> >> after : >> >> install -o foo -g foo -m 600 -f sappend /usr/home/foo/.history >> /usr/home/foo/.bash_history > > =A0 =A0And why isn't creating a 4-command bourne shell script which does There are a lot of one shot things that don't need a script. > all of these operations an option? install is used a lot in the build > process both on the FreeBSD side and the ports side, so I'd prefer if > it was as minimalist as possible. Well, install is also powerful cp, mkdir, useful on everyday administration so I thought it should also be a powerful touch. And why not more than that ? a powerful file management tool. I understand that build process is critical and with FreeBSD it's "just work". In this perspective this patch is maybe not a necessity. It was fun to do it :) Joris > Thanks, > -Garrett >