From owner-freebsd-questions@FreeBSD.ORG Mon Jan 15 22:46:01 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 C7F5E16A407 for ; Mon, 15 Jan 2007 22:46:01 +0000 (UTC) (envelope-from cswiger@mac.com) Received: from mail-out4.apple.com (mail-out4.apple.com [17.254.13.23]) by mx1.freebsd.org (Postfix) with ESMTP id AD4A113C44C for ; Mon, 15 Jan 2007 22:46:01 +0000 (UTC) (envelope-from cswiger@mac.com) Received: from relay6.apple.com (a17-128-113-36.apple.com [17.128.113.36]) by mail-out4.apple.com (8.13.8/8.13.8) with ESMTP id l0FMjwSW011971; Mon, 15 Jan 2007 14:45:58 -0800 (PST) Received: from relay6.apple.com (unknown [127.0.0.1]) by relay6.apple.com (Symantec Mail Security) with ESMTP id A41741007D; Mon, 15 Jan 2007 14:45:58 -0800 (PST) X-AuditID: 11807124-a34ecbb000006d75-e1-45ac0426de42 Received: from [17.214.13.96] (unknown [17.214.13.96]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by relay6.apple.com (Apple SCV relay) with ESMTP id 8FB98100B3; Mon, 15 Jan 2007 14:45:58 -0800 (PST) In-Reply-To: <20070115222925.GA39166@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> Mime-Version: 1.0 (Apple Message framework v752.2) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <1489820B-4B25-4B8F-89F1-6FF7E74533A6@mac.com> Content-Transfer-Encoding: 7bit From: Chuck Swiger Date: Mon, 15 Jan 2007 14:45:57 -0800 To: Gary Kline X-Mailer: Apple Mail (2.752.2) X-Brightmail-Tracker: AAAAAA== Cc: Giorgos Keramidas , 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: Mon, 15 Jan 2007 22:46:01 -0000 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? > 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. -- -Chuck