[asterisk-bugs] [Asterisk 0012593]: [patch] get_ilbc_source.sh script "read" command needs an argument

noreply at bugs.digium.com noreply at bugs.digium.com
Tue May 6 14:49:21 CDT 2008


The following issue has been ASSIGNED. 
====================================================================== 
http://bugs.digium.com/view.php?id=12593 
====================================================================== 
Reported By:                bkruse
Assigned To:                qwell
====================================================================== 
Project:                    Asterisk
Issue ID:                   12593
Category:                   Codecs/codec_ilbc
Reproducibility:            always
Severity:                   tweak
Priority:                   normal
Status:                     assigned
Asterisk Version:           SVN 
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!): 115414 
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             05-06-2008 14:43 CDT
Last Modified:              05-06-2008 14:49 CDT
====================================================================== 
Summary:                    [patch] get_ilbc_source.sh script "read" command
needs an argument
Description: 
The get_ilbc_source.sh script in the contrib/script folder of 1.4 does a
shell command "read", which in turns needs an argument (variable name) to
read into.

This could be GNU bash 3.2.25 specific issue, but a ./ of the script
outputs this:

./get_ilbc_source.sh
***
This script will download the Global IP Solutions iLBC encoder/decoder
source code from http://ilbcfreeware.org. Use of this code requires
agreeing to the license agreement present at that site.

This script assumes that you have already agreed to the license
agreement.
If you have not done so, you can abort the script now.
***
read: 21: arg count

When you add a variable to read into, it works fine.


====================================================================== 

---------------------------------------------------------------------- 
 svnbot - 05-06-08 14:49  
---------------------------------------------------------------------- 
Repository: asterisk
Revision: 115421

U   branches/1.2/contrib/scripts/get_ilbc_source.sh

------------------------------------------------------------------------
r115421 | qwell | 2008-05-06 14:49:19 -0500 (Tue, 06 May 2008) | 7 lines

read requires an argument on some non-bash shells

(closes issue http://bugs.digium.com/view.php?id=12593)
Reported by: bkruse
Patches:
      getilbc.sh_12593_v1.diff uploaded by bkruse (license 132)

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=115421 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
05-06-08 14:49  svnbot         Checkin                                      
05-06-08 14:49  svnbot         Note Added: 0086485                          
05-06-08 14:49  svnbot         Status                   new => assigned     
05-06-08 14:49  svnbot         Assigned To               => qwell           
======================================================================




More information about the asterisk-bugs mailing list