[asterisk-bugs] [JIRA] (ASTERISK-27240) SHELL function it's returning wrong value

Richard Mudgett (JIRA) noreply at issues.asterisk.org
Fri Sep 1 11:40:07 CDT 2017


     [ https://issues.asterisk.org/jira/browse/ASTERISK-27240?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Richard Mudgett updated ASTERISK-27240:
---------------------------------------

    Description: 
Using a SHELL function:
{noformat}
exten => 1,1,NoOp(${SHELL([[ "102,101" == *102* ]] && echo -n 1 || echo -n 0)})
{noformat}
SHELL function always return 0, and must be 1.


  was:
Using a SHELL function:

    exten => 1,1,NoOp(${SHELL([[ "102,101" == *102* ]] && echo -n 1 || echo -n 0)})

SHELL function always return 0, and must be 1.



> SHELL function it's returning wrong value
> -----------------------------------------
>
>                 Key: ASTERISK-27240
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-27240
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Functions/func_shell
>    Affects Versions: 11.6.0
>         Environment: Distro: Debian GNU/Linux 8.5 (jessie)
> Kernel: Linux XXX 4.2.8-1-pve
> Asterisk: Asterisk certified/11.6-cert13 built by root @ XXX on a x86_64 running Linux
>            Reporter: Javier Valencia
>            Severity: Minor
>
> Using a SHELL function:
> {noformat}
> exten => 1,1,NoOp(${SHELL([[ "102,101" == *102* ]] && echo -n 1 || echo -n 0)})
> {noformat}
> SHELL function always return 0, and must be 1.



--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list