[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Bash ShellShock patches break "at" job submission of bash scripts
From: |
Chet Ramey |
Subject: |
Re: Bash ShellShock patches break "at" job submission of bash scripts |
Date: |
Thu, 30 Oct 2014 10:46:48 -0400 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 10/29/14, 9:58 PM, Marshall Giguere wrote:
> Bash Version: 4.2
> Patch Level: 25
> Release Status: release
>
> Description:
> Submitting a shell script job to "at" either via pipe, or
> command line fails.
It fails if you have exported functions in your environment. This is a bug
in `at': specifically, its assumption that every string that appears in the
environment is a valid shell identifier. This was never a valid
assumption to make, but now that exported functions use characters outside
the identifier namespace it's become more apparent. The problem is
amplified by the fact that dash is reacting poorly to whatever `at' is
trying to do to format the environment strings as assignment statements.
I believe that the upstream `at' developer is working on a fix.
Chet
- --
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU chet@case.edu http://cnswww.cns.cwru.edu/~chet/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (Darwin)
iEUEARECAAYFAlRST1gACgkQu1hp8GTqdKsqZgCfVgW688lpx7NNTDrRlQyCp15C
PvkAl2TTvqdsoRh9r6+tnKk6QXQ3FNM=
=i5Yh
-----END PGP SIGNATURE-----