Shell script equality tests and portability
I have just started creating the NetBSD FreeSWITCH package. As mentioned in an earlier post (assuming the the moderator puts these through in the same order that I sent them) I have created the music and sounds packages. Now I am working on the core package. The first issue I came up with is equality testing in some of the shell scripts. The issue is the usage of "==" instead of "=". While the former works on some shells, it is not portable. I believe that the latter is portable. Shall I submit patches? -- D'Arcy J.M. Cain System Administrator, Vex.Net http://www.Vex.Net/ IM:darcy@Vex.Net
yes, http://jira.freeswitch.org On Mon, Oct 22, 2012 at 12:08 PM, D'Arcy J.M. Cain <darcy@vex.net> wrote:
I have just started creating the NetBSD FreeSWITCH package. As mentioned in an earlier post (assuming the the moderator puts these through in the same order that I sent them) I have created the music and sounds packages. Now I am working on the core package.
The first issue I came up with is equality testing in some of the shell scripts. The issue is the usage of "==" instead of "=". While the former works on some shells, it is not portable. I believe that the latter is portable. Shall I submit patches?
-- D'Arcy J.M. Cain System Administrator, Vex.Net http://www.Vex.Net/ IM:darcy@Vex.Net
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-dev mailing list FreeSWITCH-dev@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev http://www.freeswitch.org
-- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire AIM: anthm MSN:anthony_minessale@hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org googletalk:conf+888@conference.freeswitch.org pstn:+19193869900
participants (2)
-
Anthony Minessale
-
D'Arcy J.M. Cain