From owner-freebsd-questions@FreeBSD.ORG Fri Nov 21 18:04:52 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7856D16A4CF for ; Fri, 21 Nov 2003 18:04:52 -0800 (PST) Received: from ms-smtp-03-eri0.southeast.rr.com (ms-smtp-03-lbl.southeast.rr.com [24.25.9.102]) by mx1.FreeBSD.org (Postfix) with ESMTP id DBE2A43F85 for ; Fri, 21 Nov 2003 18:04:45 -0800 (PST) (envelope-from wegster@mindcore.net) Received: from mindcore.net (rdu163-100-105.nc.rr.com [24.163.100.105]) hAM24iFm003394; Fri, 21 Nov 2003 21:04:44 -0500 (EST) Message-ID: <3FBEC43B.4070505@mindcore.net> Date: Fri, 21 Nov 2003 21:04:43 -0500 From: Scott W User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.5) Gecko/20031007 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Marty Landman References: <6.0.0.22.0.20031121114154.08a0a190@pop.face2interface.com> <3FBEBEA8.7000805@mindcore.net> <6.0.0.22.0.20031121205837.05221fe8@pop.face2interface.com> In-Reply-To: <6.0.0.22.0.20031121205837.05221fe8@pop.face2interface.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-questions@FreeBSD.org Subject: Re: a good way to save a keystroke? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 22 Nov 2003 02:04:52 -0000 Marty Landman wrote: > At 08:40 PM 11/21/2003, Scott W wrote: > >> So yep, it's doing what you want, the way you wanted to...use >> something similar fairly often myself, although note that the >> 'current' standard for executing commands is now $(cmd), eg >> >> more $(which apachectl) > > > I get > > FreeB more $(which apachectl) > Illegal variable name. > FreeB > > Maybe I should've mentioned I'm on 4.8, or is there another reason? > > Marty Landman Face 2 Interface Inc 845-679-9387 > Sign On Required: Web membership software for your site > Make a Website: http://face2interface.com/Home/Demo.shtml > > D'oh, my mistake- you're using csh I take it? Sorry, I believe the $(cmd) syntax is now 'the standard' in sh/ksh/Bourne/bash, but evidently not csh....sorry, I've never been keen on csh, but that syntax won't work for you, although it will/does even in freeBSD sh. Sorry for the confusion, Scott