From debbugs-submit-bounces@debbugs.gnu.org Thu Jun 27 00:38:06 2013 Received: (at submit) by debbugs.gnu.org; 27 Jun 2013 04:38:06 +0000 Received: from localhost ([127.0.0.1]:44338 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Us3yA-0000aF-13 for submit@debbugs.gnu.org; Thu, 27 Jun 2013 00:38:06 -0400 Received: from eggs.gnu.org ([208.118.235.92]:58279) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Us3y7-0000Zk-AB for submit@debbugs.gnu.org; Thu, 27 Jun 2013 00:38:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Us3xz-0000cL-Tg for submit@debbugs.gnu.org; Thu, 27 Jun 2013 00:37:58 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:51387) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Us3xz-0000cF-R6 for submit@debbugs.gnu.org; Thu, 27 Jun 2013 00:37:55 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:59993) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Us3xw-0000Jt-4Q for bug-automake@gnu.org; Thu, 27 Jun 2013 00:37:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Us3xt-0000bS-PJ for bug-automake@gnu.org; Thu, 27 Jun 2013 00:37:52 -0400 Received: from kawka.in.waw.pl ([178.63.212.103]:52792) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Us3xt-0000Zw-IP for bug-automake@gnu.org; Thu, 27 Jun 2013 00:37:49 -0400 Received: from zbyszek by kawka.in.waw.pl with local (Exim 4.72) (envelope-from ) id 1Us3xl-00044o-0A for bug-automake@gnu.org; Thu, 27 Jun 2013 06:37:41 +0200 Date: Thu, 27 Jun 2013 06:37:40 +0200 From: Zbigniew =?utf-8?Q?J=C4=99drzejewski-Szmek?= To: bug-automake@gnu.org Subject: filenames starting with a dash confuse automake Message-ID: <20130627043740.GW3394@in.waw.pl> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="tvOENZuN7d6HfOWU" Content-Disposition: inline User-Agent: Mutt/1.5.20 (2009-06-14) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) --tvOENZuN7d6HfOWU Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi, I encountered this in systemd, which recently added a file with a dash in the name [1]. Basically, various commands like install and rm are called without guarding the file list with --, which causes them to interpret the file name as an option. In case of systemd, 'make uninstall' and thus 'make distcheck' are affected, but depending on the type of the file (SCRIPT, DATA, etc), other targets can be affected. $ make install DESTDIR=/var/tmp/inst2 make[1]: Entering directory `home/zbyszek/src/automake-dash' /usr/bin/mkdir -p '/var/tmp/inst2/usr/local/bin' /usr/bin/install -c -.sh '/var/tmp/inst2/usr/local/bin' /usr/bin/install: invalid option -- '.' Attached toy "project" reproduces this error. Thanks, Zbyszek [1] http://cgit.freedesktop.org/systemd/systemd/commit/?id=4ad49000 --tvOENZuN7d6HfOWU Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="configure.ac" AC_PREREQ([2.64]) AC_INIT([systemd], [204], [http://bugs.freedesktop.org/enter_bug.cgi?product=systemd], [systemd], [http://www.freedesktop.org/wiki/Software/systemd]) AM_INIT_AUTOMAKE([foreign 1.11 -Wall -Wno-portability]) AC_CONFIG_FILES([Makefile]) AC_OUTPUT --tvOENZuN7d6HfOWU Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="Makefile.am" dist_bin_SCRIPTS = -.sh --tvOENZuN7d6HfOWU Content-Type: application/x-sh Content-Disposition: attachment; filename="-.sh" Content-Transfer-Encoding: quoted-printable --tvOENZuN7d6HfOWU-- From debbugs-submit-bounces@debbugs.gnu.org Thu Jun 27 03:56:14 2013 Received: (at 14728) by debbugs.gnu.org; 27 Jun 2013 07:56:14 +0000 Received: from localhost ([127.0.0.1]:44526 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Us73t-0006FQ-Nz for submit@debbugs.gnu.org; Thu, 27 Jun 2013 03:56:14 -0400 Received: from mail-bk0-f53.google.com ([209.85.214.53]:56801) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Us73p-0006F7-VV; Thu, 27 Jun 2013 03:56:10 -0400 Received: by mail-bk0-f53.google.com with SMTP id e11so135079bkh.26 for ; Thu, 27 Jun 2013 00:56:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:mime-version:to:cc:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=OjixAh25P2NXguBOpoXKmQmPtOlMGMB+VnngWeF37Ts=; b=N87lMXeE4i156jiA5RFYwnWpTSjUMC0EpezDW6ewa8LQEmIpo9KEl4Fq+ku18Lv9hX EWFNXW5NIKG7VDUuhgygCKqO22exICGtW0N3aop43G3fpcxj0IVcPF1PkXzF+s/8klbz Jp8baVgBclnYH65CWEAjZUglmO5cQohRlT/f7qjmxoUADhNrp7XvPwLHcagUrFLajTTT iPdSZ5Zv5bicTqO5yOriYPwaHwOF1lyymdr0+ny3aAD5L+9tqWJDUP+e3E5bCiH3zIW2 1ia0N8/Oow8NCuwdPTtp/UJJ0sboNjnlUEU6cIXakBRVpnDOsM0aL8/ztqZe9irS9fbM pEzA== X-Received: by 10.205.112.198 with SMTP id et6mr1038431bkc.40.1372319762288; Thu, 27 Jun 2013 00:56:02 -0700 (PDT) Received: from [192.168.0.101] (host166-10-dynamic.13-87-r.retail.telecomitalia.it. [87.13.10.166]) by mx.google.com with ESMTPSA id kz11sm444617bkb.11.2013.06.27.00.56.00 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 27 Jun 2013 00:56:01 -0700 (PDT) Message-ID: <51CBF009.1070904@gmail.com> Date: Thu, 27 Jun 2013 09:55:53 +0200 From: Stefano Lattarini MIME-Version: 1.0 To: =?UTF-8?B?WmJpZ25pZXcgSsSZZHJ6ZWpld3NraS1Tem1law==?= Subject: Re: bug#14728: filenames starting with a dash confuse automake References: <20130627043740.GW3394@in.waw.pl> In-Reply-To: <20130627043740.GW3394@in.waw.pl> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 14728 Cc: 14728@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) tags 14728 + moreinfo severity 14728 minor stop On 06/27/2013 06:37 AM, Zbigniew Jędrzejewski-Szmek wrote: > Hi, > I encountered this in systemd, which recently added a file with > a dash in the name [1]. > I fear this falls in the category "Doctor, it hurts when I do that -- Don't do that, then" :-) To elaborate, on Unix systems, having filenames starting with a dash has always been very problematic, and generally a terrible idea. Do you have a very, *very* good reason to have such a file? > Basically, various commands like install and rm are called > without guarding the file list with --, > That's because such usage might be unportable; well, it surely was in the olden days, but I'm not sure whether that is still relevant on today's system. Still, I'm not comfortable changing the old assumption and risking regressions for the users of oldish or proprietary systems. Anyway, if you can send a patch that fixes the issue for you without risking regressions or complicating the code base, I'm ready to consider it (no promise though). > which causes them > to interpret the file name as an option. In case of > systemd, 'make uninstall' and thus 'make distcheck' are > affected, but depending on the type of the file (SCRIPT, DATA, etc), > other targets can be affected. > > $ make install DESTDIR=/var/tmp/inst2 > make[1]: Entering directory `home/zbyszek/src/automake-dash' > /usr/bin/mkdir -p '/var/tmp/inst2/usr/local/bin' > /usr/bin/install -c -.sh '/var/tmp/inst2/usr/local/bin' > /usr/bin/install: invalid option -- '.' > > Attached toy "project" reproduces this error. > > Thanks, > Zbyszek > > [1] http://cgit.freedesktop.org/systemd/systemd/commit/?id=4ad49000 > So, in conclusion, I'm 90-10 for closing this bug as a "wontfix"; although a simple patch or the explanation of a *very* good reason for having a dash-starting filename might change my mind. For the moment, I'm thus not closing the bug. Regards, Stefano From debbugs-submit-bounces@debbugs.gnu.org Fri Jun 28 14:25:03 2013 Received: (at 14728) by debbugs.gnu.org; 28 Jun 2013 18:25:03 +0000 Received: from localhost ([127.0.0.1]:47234 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1UsdLw-0000md-DN for submit@debbugs.gnu.org; Fri, 28 Jun 2013 14:25:02 -0400 Received: from relay5-d.mail.gandi.net ([217.70.183.197]:33673) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1UsdJW-0000hF-Dg for 14728@debbugs.gnu.org; Fri, 28 Jun 2013 14:22:31 -0400 Received: from mfilter13-d.gandi.net (mfilter13-d.gandi.net [217.70.178.141]) by relay5-d.mail.gandi.net (Postfix) with ESMTP id 7254A41C05C; Fri, 28 Jun 2013 20:22:29 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at mfilter13-d.gandi.net Received: from relay5-d.mail.gandi.net ([217.70.183.197]) by mfilter13-d.gandi.net (mfilter13-d.gandi.net [10.0.15.180]) (amavisd-new, port 10024) with ESMTP id RnPz56oux-IP; Fri, 28 Jun 2013 20:22:27 +0200 (CEST) X-Originating-IP: 173.246.103.110 Received: from jtriplet-mobl1 (joshtriplett.org [173.246.103.110]) (Authenticated sender: josh@joshtriplett.org) by relay5-d.mail.gandi.net (Postfix) with ESMTPSA id 5DF2F41C05D; Fri, 28 Jun 2013 20:22:26 +0200 (CEST) Date: Fri, 28 Jun 2013 11:22:19 -0700 From: Josh Triplett To: Stefano Lattarini Subject: Re: bug#14728: filenames starting with a dash confuse automake Message-ID: <20130628182217.GA8331@jtriplet-mobl1> References: <20130627043740.GW3394@in.waw.pl> <51CBF009.1070904@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <51CBF009.1070904@gmail.com> User-Agent: Mutt/1.5.21 (2010-09-15) Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 14728 X-Mailman-Approved-At: Fri, 28 Jun 2013 14:24:58 -0400 Cc: 14728@debbugs.gnu.org, Zbigniew =?utf-8?Q?J=C4=99drzejewski-Szmek?= X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) On Thu, Jun 27, 2013 at 09:55:53AM +0200, Stefano Lattarini wrote: > On 06/27/2013 06:37 AM, Zbigniew J=C4=99drzejewski-Szmek wrote: > > Hi, > > I encountered this in systemd, which recently added a file with=20 > > a dash in the name [1]. > > > I fear this falls in the category "Doctor, it hurts when I do that > -- Don't do that, then" :-) >=20 > To elaborate, on Unix systems, having filenames starting with a > dash has always been very problematic, and generally a terrible > idea. Do you have a very, *very* good reason to have such a file? One obvious reason: as part of a test suite for just such a problem. > > Basically, various commands like install and rm are called > > without guarding the file list with --, > > > That's because such usage might be unportable; well, it surely was > in the olden days, but I'm not sure whether that is still relevant > on today's system. Still, I'm not comfortable changing the old > assumption and risking regressions for the users of oldish or > proprietary systems. Putting -- before the file list might not be portable, but prefixing filenames starting with a - with ./ seems completely portable. Would that work? - Josh Triplett From debbugs-submit-bounces@debbugs.gnu.org Sat Jul 13 18:38:32 2013 Received: (at 14728) by debbugs.gnu.org; 13 Jul 2013 22:38:32 +0000 Received: from localhost ([127.0.0.1]:53358 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Uy8SV-00077l-Pc for submit@debbugs.gnu.org; Sat, 13 Jul 2013 18:38:32 -0400 Received: from mail-wg0-f54.google.com ([74.125.82.54]:63925) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Uy8SS-00077L-VF; Sat, 13 Jul 2013 18:38:29 -0400 Received: by mail-wg0-f54.google.com with SMTP id n11so9104129wgh.33 for ; Sat, 13 Jul 2013 15:38:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:mime-version:to:cc:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=cYreajK53gvZepLo/rP8bXXQaC2i5XD2fwrubzli2Zw=; b=Zg7Lzyg86Z9uA7HdmA0SqGO3x/pcGoX328+xGf4TxpKHIoqAl/XQM8R9ByqY5nMs8T AOCqvE76DKLMeMagB6C/iWL3+TkoauYT2BiSx0wbzCBpOmNiAjAZzucklIqVw31xTItD utqwo9kT0hvwScjTFbpKkme7Uqk7IVOEbNTD4Y1i2yto9639IzA95o3CfJIIr33rRYLc KwEt+/6FySrvQ5DmIGY8rpeQg8LZAit2RGU2MY78jOR0V3krG84TjALx408Hg7sGW3Ha JVKazZVrJleT7ar2wKD+YZjOQfUPOXq16xMtot0aPFdLJFR9Vbn9H79udfWZ0JpYxa7i P5dg== X-Received: by 10.195.13.195 with SMTP id fa3mr27458150wjd.80.1373755102989; Sat, 13 Jul 2013 15:38:22 -0700 (PDT) Received: from [192.168.104.203] ([79.140.211.94]) by mx.google.com with ESMTPSA id u7sm5612075wiw.9.2013.07.13.15.38.21 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 13 Jul 2013 15:38:22 -0700 (PDT) Message-ID: <51E1D6CF.7090801@gmail.com> Date: Sat, 13 Jul 2013 23:38:07 +0100 From: Stefano Lattarini MIME-Version: 1.0 To: Josh Triplett Subject: Re: bug#14728: filenames starting with a dash confuse automake References: <20130627043740.GW3394@in.waw.pl> <51CBF009.1070904@gmail.com> <20130628182217.GA8331@jtriplet-mobl1> In-Reply-To: <20130628182217.GA8331@jtriplet-mobl1> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 14728 Cc: 14728@debbugs.gnu.org, =?UTF-8?B?WmJpZ25pZXcgSsSZZHJ6ZWpld3NraS1Tem1law==?= X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) severity 14728 minor stop Hello, sorry for the delay. On 06/28/2013 07:22 PM, Josh Triplett wrote: > On Thu, Jun 27, 2013 at 09:55:53AM +0200, Stefano Lattarini wrote: >> On 06/27/2013 06:37 AM, Zbigniew Jędrzejewski-Szmek wrote: >>> Hi, >>> I encountered this in systemd, which recently added a file with >>> a dash in the name [1]. >>> >> I fear this falls in the category "Doctor, it hurts when I do that >> -- Don't do that, then" :-) >> >> To elaborate, on Unix systems, having filenames starting with a >> dash has always been very problematic, and generally a terrible >> idea. Do you have a very, *very* good reason to have such a file? > > One obvious reason: as part of a test suite for just such a problem. > I'm not sure this qualifies as a "very good reason", sorry. Anyone on Unix using system files whose name start with a dash deserves to suffer a bit ;-) >>> Basically, various commands like install and rm are called >>> without guarding the file list with --, >>> >> That's because such usage might be unportable; well, it surely was >> in the olden days, but I'm not sure whether that is still relevant >> on today's system. Still, I'm not comfortable changing the old >> assumption and risking regressions for the users of oldish or >> proprietary systems. > > Putting -- before the file list might not be portable, but prefixing > filenames starting with a - with ./ seems completely portable. Would > that work? > Yes, but it might complicate or slow down the code, and I think it's not really worth spending time on it. I won't refuse a patch in this direction though, *if* it doesn't complicate or slow-down the code. Otherwise, I will close this bug as "wontfix" sometime in the nearish future. Thanks, Stefano From debbugs-submit-bounces@debbugs.gnu.org Thu Dec 26 12:22:45 2013 Received: (at 14728) by debbugs.gnu.org; 26 Dec 2013 17:22:45 +0000 Received: from localhost ([127.0.0.1]:44215 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VwEdx-0005hN-3H for submit@debbugs.gnu.org; Thu, 26 Dec 2013 12:22:45 -0500 Received: from mail-ee0-f43.google.com ([74.125.83.43]:43667) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VwEdu-0005h6-HW; Thu, 26 Dec 2013 12:22:43 -0500 Received: by mail-ee0-f43.google.com with SMTP id c13so3787974eek.30 for ; Thu, 26 Dec 2013 09:22:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:mime-version:to:cc:subject:content-type :content-transfer-encoding; bh=SVop81GDvEBedqd9DD14XRMnmsNjPaRR3uwhJhY5Ff0=; b=Jai7TuWgIXik4fAoH4SZxpAIGciUCERQIwZJBPcGNO0y4nGkO27RHSVZJDOlTdoLlK +cTpQ9Lu6VGYNkgGxiWeZE95tRdEEnzY7R2xWLJ1TydJdCX8GWCho8OZw9uwbgrLMShy iL06hrg8ylh7VyTdHREPwfo0ZOBw5ZoWBrg/IjYOz4dD6MsjgZO+zS3gfziRJMC3j+tD rhCD3g/x12QfhKALrFKH9bUwKbVsasusV3l9VFk/fx+99h7tv16TSAxAR4kP2grClTVn 2Ws5y2tgAeHn5uXFqC62fnv/3DGMqCKefeT+FGrk59ZEUmM8H5OIVEGaBDGcINN6JcOD 3OvQ== X-Received: by 10.14.53.14 with SMTP id f14mr7870221eec.105.1388078558789; Thu, 26 Dec 2013 09:22:38 -0800 (PST) Received: from [192.168.0.101] (host143-4-dynamic.5-87-r.retail.telecomitalia.it. [87.5.4.143]) by mx.google.com with ESMTPSA id l4sm74415635een.13.2013.12.26.09.22.34 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 26 Dec 2013 09:22:37 -0800 (PST) Message-ID: <52BC65D6.7060406@gmail.com> Date: Thu, 26 Dec 2013 18:22:30 +0100 From: Stefano Lattarini MIME-Version: 1.0 To: =?UTF-8?B?WmJpZ25pZXcgSsSZZHJ6ZWpld3NraS1Tem1law==?= Subject: Re: filenames starting with a dash confuse automake Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 14728 Cc: 14728@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) tags 14728 wontfix close 14728 stop Stefano Lattarini wrote: > > Yes, but it might complicate or slow down the code, and I think it's > not really worth spending time on it. I won't refuse a patch in this > direction though, *if* it doesn't complicate or slow-down the code. > Otherwise, I will close this bug as "wontfix" sometime in the nearish > future. Since no new activity has been seen on this report in the last six months, I'm closing it as promised. Regards, Stefano From unknown Sat Jun 14 03:57:56 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Fri, 24 Jan 2014 12:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator