From unknown Mon Jun 23 07:50:01 2025 X-Loop: owner@emacsbugs.donarmstrong.com Subject: bug#2407: 23.0.90; Emacs chokes on empty command line argument Reply-To: Geralt , 2407@debbugs.gnu.org Resent-From: Geralt Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Fri, 20 Feb 2009 10:00:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-Emacs-PR-Message: report 2407 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by submit@emacsbugs.donarmstrong.com id=B.123512344523814 (code B ref -1); Fri, 20 Feb 2009 10:00:02 +0000 Received: (at submit) by emacsbugs.donarmstrong.com; 20 Feb 2009 09:50:45 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=0.1 required=4.0 tests=FOURLA autolearn=no version=3.2.5-bugs.debian.org_2005_01_02 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n1K9of34023806 for ; Fri, 20 Feb 2009 01:50:42 -0800 Received: from mx10.gnu.org ([199.232.76.166]:47671) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1LaRzj-0005Ew-Qp for emacs-pretest-bug@gnu.org; Fri, 20 Feb 2009 04:48:32 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1LaS1l-0003PE-H3 for emacs-pretest-bug@gnu.org; Fri, 20 Feb 2009 04:50:39 -0500 Received: from mail-bw0-f160.google.com ([209.85.218.160]:55604) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LaS1k-0003OT-I2 for emacs-pretest-bug@gnu.org; Fri, 20 Feb 2009 04:50:36 -0500 Received: by bwz4 with SMTP id 4so2290700bwz.18 for ; Fri, 20 Feb 2009 01:50:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type:content-transfer-encoding; bh=kwDrsfbhLzV+jeOL1Odmwp3YdlIvmpSSZ6WDBtYGUIw=; b=dGHeGMe/w6sOjFNd4Rc7qqLxAg7njROlSZ2bIiou5nYbx2eQO+0i4t7yuyFuZC4tTl piO0Ql5JhUcSscGJSmPt1PaGmKjgpVDcN4MsDkE/MRV4PRmoMbJ1fAPenBEVenDbCPNg Cj6qhvs2BEaKVLPn6pAVqjPoeZyc9/70zFUaE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type :content-transfer-encoding; b=wwEaySNftBN5E1j0aTImAUclMbRIyKW1dv25pttK7N6t2FFHtdqb4e39UwASpjPXEL HoZQ5WjngnKqJ8i5bbYWBdiHdc86DU/70Ib4YlnErqxR+gEQlSlS2fLlNzfaaFRxVBTR yyvmcUMz838asNmCoaFrVe1KsRU1Vqk2x4iUs= MIME-Version: 1.0 Received: by 10.181.202.8 with SMTP id e8mr224659bkq.25.1235123434766; Fri, 20 Feb 2009 01:50:34 -0800 (PST) Date: Fri, 20 Feb 2009 10:50:34 +0100 Message-ID: From: Geralt To: emacs-pretest-bug@gnu.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Please write in English if possible, because the Emacs maintainers usually do not have translators to read other languages for them. Your bug report will be posted to the emacs-pretest-bug@gnu.org mailing list. Please describe exactly what actions triggered the bug and the precise symptoms of the bug: When running emacs with an empty command line argument like this: emacs '' it won't start and display the following message: Option `' is ambiguous This makes it impossible to just call emacs "$*" inside a shell script (without checking if "$*" is an empty string). If Emacs crashed, and you have the Emacs process in the gdb debugger, please include the output from the following gdb commands: `bt full' and `xbacktrace'. If you would like to further debug the crash, please read the file /usr/share/emacs/23.0.90/etc/DEBUG for instructions. In GNU Emacs 23.0.90.1 (i686-pc-linux-gnu, GTK+ Version 2.14.7) of 2009-02-17 on sascha-xps Windowing system distributor `The X.Org Foundation', version 11.0.10502000 configured using `configure '--prefix=/usr' '--host=i686-pc-linux-gnu' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--datadir=/usr/share' '--sysconfdir=/etc' '--localstatedir=/var/lib' '--program-suffix=-emacs-23' '--infodir=/usr/share/info/emacs-23' '--with-sound' '--with-x' '--with-toolkit-scroll-bars' '--with-gif' '--with-jpeg' '--with-png' '--with-rsvg' '--with-tiff' '--with-xpm' '--with-freetype' '--with-xft' '--without-libotf' '--without-m17n-flt' '--with-x-toolkit=gtk' '--without-hesiod' '--without-kerberos' '--without-kerberos5' '--with-gpm' '--with-dbus' '--build=i686-pc-linux-gnu' 'build_alias=i686-pc-linux-gnu' 'host_alias=i686-pc-linux-gnu' 'CFLAGS=-O2 -march=prescott -pipe' 'LDFLAGS=-Wl,-O1'' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: de_DE.utf8 value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: en_US.utf8 value of $XMODIFIERS: nil locale-coding-system: utf-8-unix default-enable-multibyte-characters: t Major mode: Lisp Interaction Minor modes in effect: eldoc-mode: t auto-complete-mode: t iswitchb-mode: t which-function-mode: t minibuffer-depth-indicate-mode: t recentf-mode: t icicle-mode: t show-paren-mode: t auto-dictionary-mode: t flyspell-mode: t tooltip-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: -1 global-auto-composition-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t column-number-mode: t line-number-mode: t transient-mark-mode: t Recent input: Recent messages: Loading /home/sascha/.emacs.d/site-lisp/auto-complete/auto-complete.el (source)...done Loading /home/sascha/.emacs.d/site-lisp/auto-complete/ac-dabbrev.el (source)...done Loading /home/sascha/.emacs.d/site-lisp/my-stuff/init.el (source)...done Starting new Ispell process [default] ... For information about GNU Emacs and the GNU system, type C-h C-a. Menu-Bar mode enabled Buffer dictionary was nil Ispell process killed Local Ispell dictionary set to en Buffer dictionary is now en From unknown Mon Jun 23 07:50:01 2025 X-Loop: owner@emacsbugs.donarmstrong.com Subject: bug#2407: 23.0.90; Emacs chokes on empty command line argument Reply-To: Andreas Schwab , 2407@debbugs.gnu.org Resent-From: Andreas Schwab Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Fri, 20 Feb 2009 10:25:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-Emacs-PR-Message: followup 2407 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by 2407-submit@emacsbugs.donarmstrong.com id=B2407.123512506531751 (code B ref 2407); Fri, 20 Feb 2009 10:25:04 +0000 Received: (at 2407) by emacsbugs.donarmstrong.com; 20 Feb 2009 10:17:45 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-3.0 required=4.0 tests=HAS_BUG_NUMBER autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from mx2.suse.de (ns2.suse.de [195.135.220.15]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n1KAHfn9031731 for <2407@emacsbugs.donarmstrong.com>; Fri, 20 Feb 2009 02:17:42 -0800 Received: from Relay2.suse.de (mail2.suse.de [195.135.221.8]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx2.suse.de (Postfix) with ESMTP id CB5B1483B0; Fri, 20 Feb 2009 11:17:39 +0100 (CET) From: Andreas Schwab To: Geralt Cc: 2407@debbugs.gnu.org References: X-Yow: A can of ASPARAGUS, 73 pigeons, some LIVE ammo, and a FROZEN DAQUIRI!! Date: Fri, 20 Feb 2009 11:17:38 +0100 In-Reply-To: (Geralt's message of "Fri, 20 Feb 2009 10:50:34 +0100") Message-ID: User-Agent: Gnus/5.110009 (No Gnus v0.9) Emacs/22.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Geralt writes: > This makes it impossible to just call emacs "$*" inside a shell script > (without checking if "$*" is an empty string). You should use "$@" anyway. Andreas. -- Andreas Schwab, SuSE Labs, schwab@suse.de SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany PGP key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different." From unknown Mon Jun 23 07:50:01 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.420 (Entity 5.420) X-Loop: owner@emacsbugs.donarmstrong.com From: help-debbugs@gnu.org (Emacs bug Tracking System) To: Geralt Subject: bug#2407 closed by Stefan Monnier (Re: bug#2407: 23.0.90; Emacs chokes on empty command line argument) Message-ID: References: X-Emacs-PR-Message: they-closed 2407 X-Emacs-PR-Package: emacs Reply-To: 2407@debbugs.gnu.org Date: Fri, 20 Feb 2009 15:35:09 +0000 Content-Type: multipart/mixed; boundary="----------=_1235144109-25760-1" This is a multi-part message in MIME format... ------------=_1235144109-25760-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" This is an automatic notification regarding your bug report which was filed against the emacs package: #2407: 23.0.90; Emacs chokes on empty command line argument It has been closed by Stefan Monnier . Their explanation is attached below along with your original report. If this explanation is unsatisfactory and you have not received a better one in a separate message then please contact Stefan Monnier by replying to this email. --=20 2407: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D2407 Emacs Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1235144109-25760-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 2407-done) by emacsbugs.donarmstrong.com; 20 Feb 2009 15:28:39 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-0.5 required=4.0 tests=HAS_BUG_NUMBER,XIRONPORT autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from ironport2-out.teksavvy.com (ironport2-out.teksavvy.com [206.248.154.182]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n1KFSab8024122 for <2407-done@emacsbugs.donarmstrong.com>; Fri, 20 Feb 2009 07:28:38 -0800 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AkwFAEdbnklMCpTK/2dsb2JhbACBbtMPhA8Gg0o X-IronPort-AV: E=Sophos;i="4.38,242,1233550800"; d="scan'208";a="34142397" Received: from 76-10-148-202.dsl.teksavvy.com (HELO pastel.home) ([76.10.148.202]) by ironport2-out.teksavvy.com with ESMTP; 20 Feb 2009 10:28:15 -0500 Received: by pastel.home (Postfix, from userid 20848) id D92884B488; Fri, 20 Feb 2009 10:28:14 -0500 (EST) From: Stefan Monnier To: Andreas Schwab Cc: 2407-done@debbugs.gnu.org Subject: Re: bug#2407: 23.0.90; Emacs chokes on empty command line argument Message-ID: References: Date: Fri, 20 Feb 2009 10:28:14 -0500 In-Reply-To: (Andreas Schwab's message of "Fri, 20 Feb 2009 11:17:38 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.90 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii >> This makes it impossible to just call emacs "$*" inside a shell script >> (without checking if "$*" is an empty string). > You should use "$@" anyway. Exactly. Stefan ------------=_1235144109-25760-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by emacsbugs.donarmstrong.com; 20 Feb 2009 09:50:45 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=0.1 required=4.0 tests=FOURLA autolearn=no version=3.2.5-bugs.debian.org_2005_01_02 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n1K9of34023806 for ; Fri, 20 Feb 2009 01:50:42 -0800 Received: from mx10.gnu.org ([199.232.76.166]:47671) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1LaRzj-0005Ew-Qp for emacs-pretest-bug@gnu.org; Fri, 20 Feb 2009 04:48:32 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1LaS1l-0003PE-H3 for emacs-pretest-bug@gnu.org; Fri, 20 Feb 2009 04:50:39 -0500 Received: from mail-bw0-f160.google.com ([209.85.218.160]:55604) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LaS1k-0003OT-I2 for emacs-pretest-bug@gnu.org; Fri, 20 Feb 2009 04:50:36 -0500 Received: by bwz4 with SMTP id 4so2290700bwz.18 for ; Fri, 20 Feb 2009 01:50:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type:content-transfer-encoding; bh=kwDrsfbhLzV+jeOL1Odmwp3YdlIvmpSSZ6WDBtYGUIw=; b=dGHeGMe/w6sOjFNd4Rc7qqLxAg7njROlSZ2bIiou5nYbx2eQO+0i4t7yuyFuZC4tTl piO0Ql5JhUcSscGJSmPt1PaGmKjgpVDcN4MsDkE/MRV4PRmoMbJ1fAPenBEVenDbCPNg Cj6qhvs2BEaKVLPn6pAVqjPoeZyc9/70zFUaE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type :content-transfer-encoding; b=wwEaySNftBN5E1j0aTImAUclMbRIyKW1dv25pttK7N6t2FFHtdqb4e39UwASpjPXEL HoZQ5WjngnKqJ8i5bbYWBdiHdc86DU/70Ib4YlnErqxR+gEQlSlS2fLlNzfaaFRxVBTR yyvmcUMz838asNmCoaFrVe1KsRU1Vqk2x4iUs= MIME-Version: 1.0 Received: by 10.181.202.8 with SMTP id e8mr224659bkq.25.1235123434766; Fri, 20 Feb 2009 01:50:34 -0800 (PST) Date: Fri, 20 Feb 2009 10:50:34 +0100 Message-ID: Subject: 23.0.90; Emacs chokes on empty command line argument From: Geralt To: emacs-pretest-bug@gnu.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Please write in English if possible, because the Emacs maintainers usually do not have translators to read other languages for them. Your bug report will be posted to the emacs-pretest-bug@gnu.org mailing list. Please describe exactly what actions triggered the bug and the precise symptoms of the bug: When running emacs with an empty command line argument like this: emacs '' it won't start and display the following message: Option `' is ambiguous This makes it impossible to just call emacs "$*" inside a shell script (without checking if "$*" is an empty string). If Emacs crashed, and you have the Emacs process in the gdb debugger, please include the output from the following gdb commands: `bt full' and `xbacktrace'. If you would like to further debug the crash, please read the file /usr/share/emacs/23.0.90/etc/DEBUG for instructions. In GNU Emacs 23.0.90.1 (i686-pc-linux-gnu, GTK+ Version 2.14.7) of 2009-02-17 on sascha-xps Windowing system distributor `The X.Org Foundation', version 11.0.10502000 configured using `configure '--prefix=/usr' '--host=i686-pc-linux-gnu' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--datadir=/usr/share' '--sysconfdir=/etc' '--localstatedir=/var/lib' '--program-suffix=-emacs-23' '--infodir=/usr/share/info/emacs-23' '--with-sound' '--with-x' '--with-toolkit-scroll-bars' '--with-gif' '--with-jpeg' '--with-png' '--with-rsvg' '--with-tiff' '--with-xpm' '--with-freetype' '--with-xft' '--without-libotf' '--without-m17n-flt' '--with-x-toolkit=gtk' '--without-hesiod' '--without-kerberos' '--without-kerberos5' '--with-gpm' '--with-dbus' '--build=i686-pc-linux-gnu' 'build_alias=i686-pc-linux-gnu' 'host_alias=i686-pc-linux-gnu' 'CFLAGS=-O2 -march=prescott -pipe' 'LDFLAGS=-Wl,-O1'' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: de_DE.utf8 value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: en_US.utf8 value of $XMODIFIERS: nil locale-coding-system: utf-8-unix default-enable-multibyte-characters: t Major mode: Lisp Interaction Minor modes in effect: eldoc-mode: t auto-complete-mode: t iswitchb-mode: t which-function-mode: t minibuffer-depth-indicate-mode: t recentf-mode: t icicle-mode: t show-paren-mode: t auto-dictionary-mode: t flyspell-mode: t tooltip-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: -1 global-auto-composition-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t column-number-mode: t line-number-mode: t transient-mark-mode: t Recent input: Recent messages: Loading /home/sascha/.emacs.d/site-lisp/auto-complete/auto-complete.el (source)...done Loading /home/sascha/.emacs.d/site-lisp/auto-complete/ac-dabbrev.el (source)...done Loading /home/sascha/.emacs.d/site-lisp/my-stuff/init.el (source)...done Starting new Ispell process [default] ... For information about GNU Emacs and the GNU system, type C-h C-a. Menu-Bar mode enabled Buffer dictionary was nil Ispell process killed Local Ispell dictionary set to en Buffer dictionary is now en ------------=_1235144109-25760-1--