From owner-freebsd-hackers@FreeBSD.ORG Mon Jul 16 22:01:19 2012 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 46F4C106566B for ; Mon, 16 Jul 2012 22:01:19 +0000 (UTC) (envelope-from dave@jetcafe.org) Received: from nahkohe.jetcafe.org (nahkohe.jetcafe.org [205.147.26.32]) by mx1.freebsd.org (Postfix) with ESMTP id 084D48FC12 for ; Mon, 16 Jul 2012 22:01:18 +0000 (UTC) X-Envelope-To: Received: from [205.147.26.5] (hokkshideh4.jetcafe.org [205.147.26.5]) by nahkohe.jetcafe.org (8.14.2/8.14.2) with ESMTP id q6GLfgJH077490 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Mon, 16 Jul 2012 14:41:42 -0700 (PDT) Message-ID: <50048A96.5060803@jetcafe.org> Date: Mon, 16 Jul 2012 14:41:42 -0700 From: Dave Hayes User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:13.0) Gecko/20120612 Thunderbird/13.0 MIME-Version: 1.0 To: freebsd-hackers@freebsd.org References: <4FF4BEED.10103@FreeBSD.org> <62039A45-92E4-4588-988D-6DF39D7B01E5@bsdimp.com> <201207050922.25815.j.mckeown@ru.ac.za> <20120705082857.GB37083@server.rulingia.com> <4FF55864.8040807@FreeBSD.org> In-Reply-To: <4FF55864.8040807@FreeBSD.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: Pull in upstream before 9.1 code freeze? 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: Mon, 16 Jul 2012 22:01:19 -0000 On 07/05/12 02:03, Doug Barton wrote: > On 07/05/2012 01:28, Peter Jeremy wrote: >> On 2012-Jul-05 09:22:25 +0200, Jonathan McKeown >> wrote: >>> As for the idea that Linux refugees need extra help to migrate, >>> that's the sort of thinking that led to things like: >>> >>> alias dir=ls >> >> Whilst we're on the subject, can we please also have #define BEGIN >> { #define END } wired into gcc to help people migrating from Algol >> and Pascal. > > Um, this kind of elitist crap really isn't helpful. > > If the new feature gets created, and you don't want to use it, turn it > off. No problem. > > I appreciate the people who've spoken up as to why they wouldn't want > to use it, but I haven't seen anything yet that says "having this > feature is a universally bad idea." Why not create a command wtf(1)? When you type it, it detects the shell you are using, looks at the last command you typed, and provides all sorts of arbitrarily verbose and usable documentation and suggestions as to what that command might have done, what the verbatim command will do, and where you can find more information. So a very brief example command flow might be: # lsof -p 8646 lsof: command not found # wtf I see you just tried to use the command 'lsof'. This command is not installed. If you want this command, there is a port for that which you can install by doing this (as root): cd /usr/ports/sysutils/lsof make install Alternatively you can type man fstat for the FreeBSD native equivalent for this functionality. Commands which are similar include: ls lshal lsvfs For more information on this wtf entry, or to suggest changes see this link: http://wtf.freebsd.org/command/8/lsof If you want to speak to a human who might know, try this mailing list: freebsd-questions@freebsd.org # I think this might appeal to both camps, and allows people the sublime pleasure of telling new users to type 'wtf' if they have an issue with a command. I'm not married to the name or even the idea. But I'd like to see someone explain why this isn't a valid solution to both sides. :D -- Dave Hayes - Consultant - Altadena CA, USA - dave@jetcafe.org >>>> *The opinions expressed above are entirely my own* <<<< A solved problem is as useful to the mind as a broken sword on a battlefield.