Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 25 May 2012 07:44:39 +0200 (CEST)
From:      =?ISO-8859-1?Q?Trond_Endrest=F8l?= <Trond.Endrestol@fagskolen.gjovik.no>
To:        sbruno@freebsd.org
Cc:        "freebsd-stable@freebsd.org" <freebsd-stable@freebsd.org>
Subject:   Re: bash 4.2 patchlevel 28
Message-ID:  <alpine.BSF.2.00.1205250742580.84474@mail.fig.ol.no>
In-Reply-To: <1337890075.2709.16.camel@powernoodle-l7.corp.yahoo.com>
References:  <1337890075.2709.16.camel@powernoodle-l7.corp.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
  This message is in MIME format.  The first part should be readable text,
  while the remaining parts are likely unreadable without MIME-aware tools.

--2055831798-446179856-1337924684=:84474
Content-Type: TEXT/PLAIN; charset=ISO-8859-1
Content-Transfer-Encoding: 8BIT

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

On Thu, 24 May 2012 13:07-0700, Sean Bruno wrote:

> Noted that the following syntax is broken somewhere between 4.2
> patchlevel 10 and 28.  I'm sure its because we shouldn't be doing that
> over here at big purple, but we do ... and its a PITA.  I'm bisecting to
> find out what is going on.
> 
> test:
> VARIABLE="$(uname)"
> bash: command substitution: line 3: syntax error near unexpected token
> `)'
> bash: command substitution: line 3: `uname)"'
> 
> Odd, but his works at patchlevel 10

I'm unable to reproduce this behaviour on one of my systems:

trond@enterprise:~>bash --version
GNU bash, version 4.2.28(0)-release (amd64-portbld-freebsd9.0)
Copyright (C) 2011 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later 
<http://gnu.org/licenses/gpl.html>;

This is free software; you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
trond@enterprise:~>my_var="$(uname)"
trond@enterprise:~>echo $my_var
FreeBSD
trond@enterprise:~>

I'm not sure what's going on in your case.

- -- 
+-------------------------------+------------------------------------+
| Vennlig hilsen,               | Best regards,                      |
| Trond Endrestøl,              | Trond Endrestøl,                   |
| IT-ansvarlig,                 | System administrator,              |
| Fagskolen Innlandet,          | Gjøvik Technical College, Norway,  |
| tlf. dir.   61 14 54 39,      | Office.....: +47 61 14 54 39,      |
| tlf. mob.   952 62 567,       | Cellular...: +47 952 62 567,       |
| sentralbord 61 14 54 00.      | Switchboard: +47 61 14 54 00.      |
+-------------------------------+------------------------------------+

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.18 (FreeBSD)

iEYEARECAAYFAk+/HEwACgkQbYWZalUoElvZYwCeLq5IHGp2dLyf+pcbzC1jk3RK
us4An1AX5SelbwMEEVmooiopPmF9SAlI
=9bTW
-----END PGP SIGNATURE-----
--2055831798-446179856-1337924684=:84474--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?alpine.BSF.2.00.1205250742580.84474>