All of lore.kernel.org
 help / color / mirror / Atom feed
From: Paul Eggleton <paul.eggleton@linux.intel.com>
To: Trevor Woerner <twoerner@gmail.com>
Cc: yocto@yoctoproject.org
Subject: Re: bash specific syntax in bbclass files
Date: Fri, 03 May 2013 13:25:45 +0100	[thread overview]
Message-ID: <2109913.gzGz2H4P05@helios> (raw)
In-Reply-To: <CAHUNapTFABWCNOLf4=iiBuTEMtxim-KZAbMVbstW+u3925X_8Q@mail.gmail.com>

On Friday 03 May 2013 07:40:24 Trevor Woerner wrote:
> If every other distribution, over the next year, switched to python-3
> as their default, but (instead of updating) future versions of Ubuntu
> installed a symlink called python-3 pointing back to python-2, would
> that hold back Yocto from adopting python-3-isms too?

That's not quite the same situation and I don't think they would do that. They 
might however (as I guess they do now) point the standard python binary at 
python2 and then expect those using python3 scripts to explicitly request 
python3.

> It's sad how Ubuntu has so effectively killed the adoption of all
> features of bash (the default shell on many Linux distributions)
> introduced in the last 10 years by masquerading their crippled shell
> as "bash". And it's even sadder to see how so many projects, in
> response, have simply said "let's write all our shell scripts in
> original Bourne shell syntax" as a result.

Well, that is one way of looking at it; the change to dash in Ubuntu has 
indeed been quite a painful road (not so much for us but for the Linux 
ecosystem in general). On the other hand, it's not that dash is masquerading 
as bash, it's selected as providing /bin/sh. If you have written a shell 
script that starts with #!/bin/sh and then proceeds to use bash-specific 
syntax, sure it might well work on most systems because they're using bash, 
but the script started with something that wasn't true - it's not in fact a 
standard Unix Bourne-compatible shell script, it's a bash script.

It's also worth mentioning that we have had some benefit out of these changes, 
in that the scripts that have been fixed that end up running on the target will 
now more likely run when /bin/sh is provided by ash (i.e. busybox).

Cheers,
Paul

-- 

Paul Eggleton
Intel Open Source Technology Centre


      parent reply	other threads:[~2013-05-03 12:25 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-02  0:13 bash specific syntax in bbclass files seth bollinger
2013-05-02  8:07 ` Paul Eggleton
2013-05-03  6:36   ` Gaurang Shastri
2013-05-03  6:58     ` Paul Eggleton
2013-05-03 11:40       ` Trevor Woerner
2013-05-03 12:12         ` Robert P. J. Day
2013-05-03 12:25         ` Paul Eggleton [this message]

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=2109913.gzGz2H4P05@helios \
    --to=paul.eggleton@linux.intel.com \
    --cc=twoerner@gmail.com \
    --cc=yocto@yoctoproject.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.