From unknown Mon Jun 23 07:47:01 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#2407 <2407@debbugs.gnu.org> To: bug#2407 <2407@debbugs.gnu.org> Subject: Status: 23.0.90; Emacs chokes on empty command line argument Reply-To: bug#2407 <2407@debbugs.gnu.org> Date: Mon, 23 Jun 2025 14:47:01 +0000 retitle 2407 23.0.90; Emacs chokes on empty command line argument reassign 2407 emacs submitter 2407 Geralt severity 2407 normal thanks From usr.gentoo@googlemail.com Fri Feb 20 01:50:45 2009 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 From schwab@suse.de Fri Feb 20 02:17:45 2009 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 Subject: Re: bug#2407: 23.0.90; Emacs chokes on empty command line argument 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 monnier@iro.umontreal.ca Fri Feb 20 07:28:39 2009 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 From unknown Mon Jun 23 07:47:01 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: $requester Subject: Internal Control Message-Id: bug archived. Date: Sat, 21 Mar 2009 14:24:10 +0000 User-Agent: Fakemail v42.6.9 # A New Hope # A log time ago, in a galaxy far, far away # something happened. # # Magically this resulted in the following # action being taken, but this fake control # message doesn't tell you why it happened # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator