From owner-freebsd-questions@FreeBSD.ORG Tue Jan 16 01:09:56 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id A45B916A40F for ; Tue, 16 Jan 2007 01:09:56 +0000 (UTC) (envelope-from kline@tao.thought.org) Received: from tao.thought.org (dsl231-043-140.sea1.dsl.speakeasy.net [216.231.43.140]) by mx1.freebsd.org (Postfix) with ESMTP id 1CF4B13C43E for ; Tue, 16 Jan 2007 01:09:55 +0000 (UTC) (envelope-from kline@tao.thought.org) Received: from tao.thought.org (localhost [127.0.0.1]) by tao.thought.org (8.13.8/8.13.1) with ESMTP id l0G19S5D040306; Mon, 15 Jan 2007 17:09:28 -0800 (PST) (envelope-from kline@tao.thought.org) Received: (from kline@localhost) by tao.thought.org (8.13.8/8.13.1/Submit) id l0G19CSE040301; Mon, 15 Jan 2007 17:09:12 -0800 (PST) (envelope-from kline) Date: Mon, 15 Jan 2007 17:09:12 -0800 From: Gary Kline To: Chuck Swiger Message-ID: <20070116010911.GA40128@thought.org> References: <20070114024551.GA21847@thought.org> <20070114034148.GC2734@kobe.laptop> <20070114201546.GA28048@thought.org> <20070114203104.GB3404@kobe.laptop> <20070114214410.GB24039@thought.org> <20070115220422.GA2250@kobe.laptop> <20070115222925.GA39166@thought.org> <1489820B-4B25-4B8F-89F1-6FF7E74533A6@mac.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1489820B-4B25-4B8F-89F1-6FF7E74533A6@mac.com> X-Organization: Thought Unlimited. Public service Unix since 1986. X-Of_Interest: Observing twenty years of service to the Unix community User-Agent: Mutt/1.5.13 (2006-08-11) Cc: Giorgos Keramidas , Gary Kline , freebsd-questions@freebsd.org Subject: Re: perl substitution question X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Jan 2007 01:09:56 -0000 On Mon, Jan 15, 2007 at 02:45:57PM -0800, Chuck Swiger wrote: > On Jan 15, 2007, at 2:29 PM, Gary Kline wrote: > >>OMG! I managed to break a new shell war :) > >> > >>/me ducks and runs very far away > > > > No! no, cometh backeth, Giorgos! No war, just peace, love > > and flowers:-) > > % cd /usr/ports/mail/imap-uw/ && make extract && cd work/imap-2004g > % tail -3 Makefile > # A monument to a hack of long ago and far away... > love: > @echo not war? This was from *mumble* years ago, but if you do a make love in most Makefiles, you'll get "make: don't know how to make love. Stop"; now is that old or what? Oh-well. > > > Actually, I do use zsh, just have no clue how to > > set noglob. I was going to ask, but didn't want to show my > > ignorance. [[ been using zsh for 16, 17 years... ]] > [ ... ] > > Chuck, exactly what does noglob do? How to set/unset, please? > > noglob is a keyword (a "precommand modifier", specifically) that > disables wildcard filename globbing: > > % cd /tmp > % touch 'a*' > % touch 'ab' > % ls a* > a* ab > % noglob ls a* > a* > > This trivial case isn't too useful, but consider wanting to copy > all .jpg files from your home directory on another machine to the > local machine via scp or rsync: > > noglob scp kline@machine:*.jpg . > > It's also amazingly handy in conjunction with the "find" command: > > noglob find /usr/obj -name *.a > > ...so much so that I do: > > alias find='noglob find' > > ...in my ZSH environment. > Yes, indeed, thank you. After playing around for some minutes, your alias (or 'noglob find') finds much more easily. Live and learn....obviously. gary > -- > -Chuck > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" -- Gary Kline kline@thought.org www.thought.org Public Service Unix