Alsa-Devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Takashi Iwai <tiwai@suse.de>
To: Clemens Ladisch <clemens@ladisch.de>
Cc: alsa-devel@alsa-project.org, "Roc Vallès" <vallesroc@gmail.com>,
	"Jordi Mallach" <jordi@debian.org>
Subject: Re: alsa-tools 1.0.28 regression with sblive/emu10k1: init_live shell script broken.
Date: Fri, 27 Jun 2014 16:50:13 +0200	[thread overview]
Message-ID: <s5ha98ytniy.wl%tiwai@suse.de> (raw)
In-Reply-To: <53AAFF8A.5060809@ladisch.de>

At Wed, 25 Jun 2014 18:57:46 +0200,
Clemens Ladisch wrote:
> 
> Roc Vallès wrote:
> > I've recently upgraded to alsa-tools 1.0.28. There's apparently a
> > regression: live_init, the script that is bundled for sound blaster
> > live soundcard initialization, has been broken.
> >
> > # /usr/bin/init_live
> > /usr/bin/init_live: line 49: log: command not found
> > /usr/bin/init_live: line 51: local: can only be used in a function
> > ...
> 
> Broken by the patch below.  Where are the parentheses?
> 
> 
>     commit a17282503f4ceb62f66eb5a28726fd096af0a70b
>     Author: Elimar Riesebieter <riesebie@lxtec.de>
>     Date:   Wed May 15 19:19:07 2013 +0200
> 
>     Fix bashisms.
> 
>     The "€œfunction"€ builtin is a bashism that can be simply omitted with
>     no behaviour change, if parentheses are supplied.
> 
>     Signed-off-by: Jordi Mallach <jordi@debian.org>
>     Signed-off-by: Takashi Iwai <tiwai@suse.de>
> 
>     diff --git a/ld10k1/setup/init_live.in b/ld10k1/setup/init_live.in
>     index 70d30c8..5e6580f 100644
>     --- a/ld10k1/setup/init_live.in
>     +++ b/ld10k1/setup/init_live.in
>     @@ -46,7 +46,7 @@ std_playback=playback
>      std_capture=capture
>      #std_capture=capture_noswitch
> 
>     -function log
>     +log
>      {
>          local level=$1
>     ...

Indeed.  Fixed now in git tree.


thanks,

Takashi
_______________________________________________
Alsa-devel mailing list
Alsa-devel@alsa-project.org
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

  reply	other threads:[~2014-06-27 14:50 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-06-25 16:37 alsa-tools 1.0.28 regression with sblive/emu10k1: init_live shell script broken Roc Vallès
2014-06-25 16:57 ` Clemens Ladisch
2014-06-27 14:50   ` Takashi Iwai [this message]
  -- strict thread matches above, loose matches on Subject: below --
2014-06-25 16:10 Roc Vallès

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=s5ha98ytniy.wl%tiwai@suse.de \
    --to=tiwai@suse.de \
    --cc=alsa-devel@alsa-project.org \
    --cc=clemens@ladisch.de \
    --cc=jordi@debian.org \
    --cc=vallesroc@gmail.com \
    /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