dash.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Makarius <makarius@sketis.net>
To: dash@vger.kernel.org
Subject: Re: dash drops exported bash functions
Date: Thu, 11 Feb 2016 13:15:12 +0100 (CET)	[thread overview]
Message-ID: <alpine.LNX.2.00.1602111309450.33198@lxbroy10.informatik.tu-muenchen.de> (raw)
In-Reply-To: <alpine.LNX.2.00.1602110431550.61314@lxbroy10.informatik.tu-muenchen.de>

On Thu, 11 Feb 2016, Makarius wrote:

> I am a long-term user of GNU bash who is depending on the "export -f" feature 
> of that shell (in an application that is on the free market for decades). The 
> bash guys turn a shell function "foo" into the environment variable 
> "BASH_FUNC_foo%%" and hope to be able to pick it up later on.
>
> Dash gets into this game, because Ubuntu and Debian have chosen to make it 
> the default for /bin/sh some years ago. This means that typical "system" 
> invocations of Unix tools and libraries are now going through dash: /bin/sh 
> -c is often seen in practice instead of more delicate execve invocations.
>
> This means with /bin/sh -> dash users have no proper chance to avoid it. 
> Sitting right there in the center /bin/sh, dash acquires special 
> responsibilities to play nice with other shells.

After reading the official (!) sources of bash-4.3, I've found out the 
following: Not the bash guys are introducing this ill-formed name 
decoration "%%", but the Debian guys. See 
http://sourcesdev.debian.net/patches/bash/4.3-14/bash43-027.diff

This means dash is not working against bash, but against Debian. Or 
rather: Debian is working against themselves and their users.


 	Makarius


  reply	other threads:[~2016-02-11 12:15 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-02-11  3:53 dash drops exported bash functions Makarius
2016-02-11 12:15 ` Makarius [this message]
2016-02-11 13:40   ` Makarius
2016-02-11 14:19     ` Olof Johansson
2016-02-11 14:30       ` Makarius
2016-02-11 14:46         ` Stephane Chazelas
  -- strict thread matches above, loose matches on Subject: below --
2016-02-10 15:18 Joachim Breitner
2016-02-10 15:54 ` Eric Blake
2016-02-10 16:31   ` Joachim Breitner

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=alpine.LNX.2.00.1602111309450.33198@lxbroy10.informatik.tu-muenchen.de \
    --to=makarius@sketis.net \
    --cc=dash@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).