From owner-freebsd-hackers@FreeBSD.ORG Sat Jul 17 21:22:49 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 92DFC106564A for ; Sat, 17 Jul 2010 21:22:49 +0000 (UTC) (envelope-from yanegomi@gmail.com) Received: from mail-iw0-f182.google.com (mail-iw0-f182.google.com [209.85.214.182]) by mx1.freebsd.org (Postfix) with ESMTP id 58B0E8FC1F for ; Sat, 17 Jul 2010 21:22:49 +0000 (UTC) Received: by iwn35 with SMTP id 35so4180053iwn.13 for ; Sat, 17 Jul 2010 14:22:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:sender:received :in-reply-to:references:date:x-google-sender-auth:message-id:subject :from:to:cc:content-type; bh=jdj1TrJUlJiWsBKMFOPQeT00+gAdMQRoHr8z/0z5I4g=; b=S/tdXWoqnQHiq9Ch8xkYtDbgLQI11H00W9wVX/IyGbIFe44mlOheZdRhoRvz4g88yk A7548Jn/o8o+ZGltTrkRY7aefRetcqDWm7QAGT22/y25kZusBWJIdxaSH3SLWP8e6coZ TIqOIIf+TX8f8vRZEnqMP3Fout7netzod2GhM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; b=UTiZMvw5ZBjPCwaSgRXGkyEC7QmSI1lC/9Qs2v64Z3MI4vu4vA/5hHoqDgiorFAl+3 UsPnPfJ3yvJogBiMJVQHEDB2QvF82OeILb06zaxiL8XqvYtAvrXtaA+GuZ7Z7p0N6OhV Krq0gF7Cs1Kg4cj2R35QvyudfAyK0uKEbXjGY= MIME-Version: 1.0 Received: by 10.231.200.146 with SMTP id ew18mr2432989ibb.117.1279401768594; Sat, 17 Jul 2010 14:22:48 -0700 (PDT) Sender: yanegomi@gmail.com Received: by 10.231.169.18 with HTTP; Sat, 17 Jul 2010 14:22:48 -0700 (PDT) In-Reply-To: References: Date: Sat, 17 Jul 2010 14:22:48 -0700 X-Google-Sender-Auth: 26KzLbxrl3bZDxLtkNbNK-hHyz4 Message-ID: From: Garrett Cooper To: joris dedieu Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-hackers@freebsd.org 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 21:22:49 -0000 On Sat, Jul 17, 2010 at 6:34 AM, joris dedieu wrote: > 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 And why isn't creating a 4-command bourne shell script which does 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. Thanks, -Garrett