Bug#262443: marked as done (vim: Backtick command-substitution in commandline does not work (sometimes))

Debian Bug Tracking System owner@bugs.debian.org
Sat, 16 Apr 2005 16:18:07 -0700


Your message dated Sun, 17 Apr 2005 01:09:03 +0200
with message-id <20050416230903.GA19517@fistandantilus.takhisis.org>
and subject line vim: Backtick command-substitution in commandline does not work (sometimes)
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 31 Jul 2004 00:22:22 +0000
>From jjminar@fastmail.fm Fri Jul 30 17:22:22 2004
Return-path: <jjminar@fastmail.fm>
Received: from relay.inway.cz [212.24.128.3] 
	by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1Bqhdm-0001WA-00; Fri, 30 Jul 2004 17:22:22 -0700
Received: from localhost (localhost [127.0.0.1])
	by relay.inway.cz (Postfix) with ESMTP id C2390179C8C
	for <submit@bugs.debian.org>; Sat, 31 Jul 2004 02:22:19 +0200 (CEST)
Received: from mail.haltyr.dejvice.czf (snat2.arachne.czfree.net [212.24.150.227])
	by relay.inway.cz (Postfix) with ESMTP id 48BC1179C86
	for <submit@bugs.debian.org>; Sat, 31 Jul 2004 02:22:13 +0200 (CEST)
Received: by mail.haltyr.dejvice.czf (Postfix, from userid 1000)
	id 28DC44892; Sat, 31 Jul 2004 02:17:19 +0200 (CEST)
Date: Sat, 31 Jul 2004 02:17:18 +0200
From: Jan Minar <jjminar@fastmail.fm>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: vim: Backtick command-substitution in commandline does not work (sometimes)
Message-ID: <20040731001718.GA26362@kontryhel.haltyr.dyndns.org>
Mime-Version: 1.0
Content-Type: application/pgp; x-action=sign; format=text
Content-Disposition: inline; filename="msg.pgp"
User-Agent: Mutt/1.3.28i
X-Reportbug-Version: 1.50
Delivered-To: submit@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2004_03_25 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-2.0 required=4.0 tests=BAYES_01 autolearn=no 
	version=2.60-bugs.debian.org_2004_03_25
X-Spam-Level: 

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Package: vim
Version: 1:6.3-013+1.backports.org.1
Severity: normal

Hi!

I noticed today :w %.`date -I`.backup does not work anymore -- further
investigation showed backtick command expansion does not work when the
substitution is not surrounded by whitespace -- the following table
gives a summary:

	Command			   Opened file
	---------------------------------------
	:e `echo foo`		-> foo
	:e bar`echo foo`	-> bar
	:e `echo foo`bar	-> bar
	:e baz`echo foo`bar	-> bazbar

Cheers,
Jan.

- -- System Information
Debian Release: 3.0
Architecture: i386
Kernel: Linux kontryhel 2.4.26-jan #6 SMP Tue Jul 27 21:24:30 CEST 2004 i686
Locale: LANG=C, LC_CTYPE=cs_CZ.ISO-8859-2

Versions of packages vim depends on:
ii  dpkg         1.9.21                      Package maintenance system for Deb
ii  libc6        2.2.5-11.5                  GNU C Library: Shared libraries an
ii  libgpmg1     1.19.6-12                   General Purpose Mouse Library [lib
ii  libncurses5  5.2.20020112a-7             Shared libraries for terminal hand
ii  vim-common   1:6.3-013+1.backports.org.1 Vi IMproved - Common files

- -- 
   "To me, clowns aren't funny. In fact, they're kind of scary. I've wondered
 where this started and I think it goes back to the time I went to the circus,
			  and a clown killed my dad."
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQFBCuUO+uczK20Fa5cRAjclAJwN2ha6xdj1ROIb4yE8O1pt3NARSwCg1Yqc
yapWdRptsuuS7DnmNq8msgU=
=3+b0
-----END PGP SIGNATURE-----

---------------------------------------
Received: (at 262443-done) by bugs.debian.org; 16 Apr 2005 23:09:48 +0000
>From zack@bononia.it Sat Apr 16 16:09:48 2005
Return-path: <zack@bononia.it>
Received: from ms001msg.fastwebnet.it [213.140.2.51] 
	by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1DMwQ8-00065k-00; Sat, 16 Apr 2005 16:09:48 -0700
Received: from fistandantilus.takhisis.org (37.10.140.106) by ms001msg.fastwebnet.it (7.2.052.3)
        id 4235CA07006A87F7; Sun, 17 Apr 2005 01:09:17 +0200
Received: by fistandantilus.takhisis.org (Postfix, from userid 3148)
	id 02CB327456F; Sun, 17 Apr 2005 01:09:03 +0200 (CEST)
Date: Sun, 17 Apr 2005 01:09:03 +0200
From: Stefano Zacchiroli <zack@debian.org>
To: 262443-submitter@bugs.debian.org
Cc: 262443-done@bugs.debian.org
Subject: Re: vim: Backtick command-substitution in commandline does not work (sometimes)
Message-ID: <20050416230903.GA19517@fistandantilus.takhisis.org>
Mime-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha1;
	protocol="application/pgp-signature"; boundary="+QahgC5+KEYLbs62"
Content-Disposition: inline
In-Reply-To: <20040731001718.GA26362@kontryhel.haltyr.dyndns.org>
User-Agent: Mutt/1.5.9i
Delivered-To: 262443-done@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-3.0 required=4.0 tests=BAYES_00 autolearn=no 
	version=2.60-bugs.debian.org_2005_01_02
X-Spam-Level: 


--+QahgC5+KEYLbs62
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Jan Minar <jjminar@fastmail.fm> wrote:
> I noticed today :w %.`date -I`.backup does not work anymore -- further
> investigation showed backtick command expansion does not work when the
> substitution is not surrounded by whitespace -- the following table
> gives a summary:

This is not a bug, but the documented behaviour of backtick expansion.
Quoting from ':help backtick-expansion':

> On Unix you can also use backticks in the file name, for example: >
>         :e `find . -name ver\\*.c -print`
> The backslashes before the star are required to prevent "ver*.c" to be
> expanded by the shell before executing the find program.
> This also works for most other systems, with the restriction that the
> backticks must be around the whole item.  It is not possible to have text
> directly before the first or just after the last backtick.

The last sentence describe the behaviour you're reporting.

I'm closing the bug report with this mail.

Cheers.

--=20
Stefano Zacchiroli -*- Computer Science PhD student @ Uny Bologna, Italy
zack@{cs.unibo.it,debian.org,bononia.it} -%- http://www.bononia.it/zack/
If there's any real truth it's that the entire multidimensional infinity
of the Universe is almost certainly being run by a bunch of maniacs. -!-

--+QahgC5+KEYLbs62
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)

iD8DBQFCYZsP1cqbBPLEI7wRAo8xAJwK15mnlxU16N7G+/3NHFK6yI3lwwCgiOmk
dmhf3M7cKaaE+aNp/n6cFHo=
=AsIk
-----END PGP SIGNATURE-----

--+QahgC5+KEYLbs62--