dash drops exported bash functions

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Dear dash developers,

a change in 0.5.8, very likely this one
http://git.kernel.org/cgit/utils/dash/dash.git/commit/?id=46d3c1a614f11f0d40a7e73376359618ff07abcd
broke the exporting of bash shell functions via the environment.

The attached script shows the breakage, as it outputs

$ ./exporttest.sh 
exportest called ()
Setting up environment
Calling myself
exportest called (1)
function foo successfully called
Calling myself directly
exportest called (2)
function foo successfully called
Calling myself via dash
exportest called (3)
/tmp/exporttest.sh: Zeile 33: foo: Kommando nicht gefunden.
Done

Exporting bash functions via the environment might be a rarely used
feature, but it is used in practice, unfortunately (otherwise I
wouldn’t have noticed this).

Thanks,
Joachim

-- 
Joachim “nomeata” Breitner
  mail@xxxxxxxxxxxxxxxxxxx • https://www.joachim-breitner.de/
  XMPP: nomeata@xxxxxxxxxxxxxxxxxxx • OpenPGP-Key: 0xF0FBF51F
  Debian Developer: nomeata@xxxxxxxxxx

Attachment: exporttest.sh
Description: application/shellscript

Attachment: signature.asc
Description: This is a digitally signed message part


[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux