Re: [Smslink-users] FreeBSD bash upgrade from 3.2 to 4 breaks sms_stats
Status: Beta
Brought to you by:
panderss
|
From: Philippe A. <pa...@ib...> - 2009-04-02 15:27:35
|
Hello Nicki, Thanks a lot for your fix. I integrated it in my repository and posted a new export of the upcoming 0.56b-4 in the "devel" section, available here: <http://smslink.sourceforge.net/archive/devel/> Cheers. Bye. Ph. A. Nicki de Wet wrote: > Hi All, > > I can report that the simple suggestion by Chet Ramey solved the problem. > Thanks Chet. > > Here is an extract from his email: > >> As of bash-4, bash parses the commands within $(...) at the time the word >> is read, rather than deferring the parse until the subshell is created to >> perform the command substitution. This is required by Posix to avoid the >> burden of forcing the application programmer to match parentheses inside >> the command substitution. >> >> One of the consequences is that bash enforces the rules about >> here-document >> delimiters more strictly. The delimiter must be the only word on the line >> and must be followed immediately by a newline. >> >> I will look at relaxing these rules for bash-4.1, but bash-4.0 does not >> allow >> here-documents in command substitutions to be delimited by end-of-file. >> >>>> 138 EOT_BC) >> This is the error. It should really be >> >> EOT_BC >> ) >> >> Chet > > This is the diff for the change for sms_stats: > 138c138,139 > < EOT_BC) > --- >> EOT_BC >> ) > > Regards, > Nicki > > > -- *Philippe Andersson* Unix System Administrator IBA Particle Therapy | Tel: +32-10-475.983 Fax: +32-10-487.707 eMail: pa...@ib... <http://www.iba-worldwide.com> The contents of this e-mail message and any attachments are intended solely for the recipient (s) named above. This communication is intended to be and to remain confidential and may be protected by intellectual property rights. Any use of the information contained herein (including but not limited to, total or partial reproduction, communication or distribution of any form) by persons other than the designated recipient(s) is prohibited. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free. Ion Beam Applications does not accept liability for any such errors. Thank you for your cooperation. |