From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22375 invoked by alias); 22 Oct 2015 12:40:11 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 20805 Received: (qmail 1778 invoked from network); 22 Oct 2015 12:40:10 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, FREEMAIL_FROM,NML_ADSP_CUSTOM_MED,SPF_HELO_PASS autolearn=no autolearn_force=no version=3.4.0 X-Injected-Via-Gmane: http://gmane.org/ To: zsh-users@zsh.org From: Holger =?iso-8859-1?q?Hoffst=E4tte?= Subject: Accidental function definition - bug or feature? Date: Thu, 22 Oct 2015 12:30:22 +0000 (UTC) Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: p4ff582a1.dip0.t-ipconnect.de User-Agent: Pan/0.139 (Sexual Chocolate; GIT bf56508 git://git.gnome.org/pan2) Hi, today I accidentally b0rked my shell with git and an unquoted filename via copypasta. To reproduce: $git add foo().bar $git --version git:7: command not found: .bar Turns out this unhelpfully defined a local function, which now shadows the command: $functions git git () { .bar } Obviously everything works correctly with quoted filenames. Also bash complains as I would have expected: bash$ git add foo().bar bash: syntax error near unexpected token `(' So..bug or feature? thanks, Holger