From owner-freebsd-questions@FreeBSD.ORG Fri Nov 21 18:11:12 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 5F0D316A4CE for ; Fri, 21 Nov 2003 18:11:12 -0800 (PST) Received: from endif.cjb.net (65-101-229-205.dnvr.qwest.net [65.101.229.205]) by mx1.FreeBSD.org (Postfix) with SMTP id B7F124401A for ; Fri, 21 Nov 2003 18:11:10 -0800 (PST) (envelope-from end@endif.cjb.net) Received: (qmail 54582 invoked from network); 22 Nov 2003 02:11:04 -0000 Received: from localhost (127.0.0.1) by localhost with SMTP; 22 Nov 2003 02:11:04 -0000 Date: Fri, 21 Nov 2003 19:11:04 -0700 From: Robin Schoonover To: Scott W Message-Id: <20031121191104.378a262c.end@endif.cjb.net> In-Reply-To: <3FBEC43B.4070505@mindcore.net> 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> <3FBEC43B.4070505@mindcore.net> X-Mailer: Sylpheed version 0.9.6claws (GTK+ 1.2.10; i386-portbld-freebsd5.1) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit cc: Marty Landman 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:11:12 -0000 On Fri, 21 Nov 2003 21:04:43 -0500, Scott W wrote: > 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, The backticks (`) are of a general standard than the $(cmd) syntax. Not only do backticks work under all shells I've tried them under, but they are parts of perl and php. -- Robin Schoonover (aka End) # # "I'm betting that I'm just abnormal enough to survive." -The Tick #