You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nifi.apache.org by "Aldrin Piri (JIRA)" <ji...@apache.org> on 2015/07/27 05:40:04 UTC

[jira] [Comment Edited] (NIFI-758) Update nifi.sh to use POSIX compliant syntax

    [ https://issues.apache.org/jira/browse/NIFI-758?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14642222#comment-14642222 ] 

Aldrin Piri edited comment on NIFI-758 at 7/27/15 3:39 AM:
-----------------------------------------------------------

Providing patch to ensure POSIX compliance.  The issue is that Debian and derivative distributions default to an ASH shell, primarily DASH.  While POSIX compliant, it does not provide the same extensions such as the native syntactical [[ test.  


was (Author: aldrin):
Providing patch to ensure POSIX compliance

> Update nifi.sh to use POSIX compliant syntax
> --------------------------------------------
>
>                 Key: NIFI-758
>                 URL: https://issues.apache.org/jira/browse/NIFI-758
>             Project: Apache NiFi
>          Issue Type: Bug
>          Components: Core Framework
>    Affects Versions: 0.2.0, 0.2.1
>            Reporter: Aldrin Piri
>            Assignee: Aldrin Piri
>            Priority: Minor
>         Attachments: 0001-NIFI-758-Defaulting-to-POSIX-compliant-single-bracke.patch
>
>
> In environments where bash or bash-compatible shell is not the default (small form factors use dash), the [[ test syntax is not valid and will cause those parts of the script to be ignored due to an error when being evaluated.
> This is preferable to forcing bash execution via the shebang line for the sake of maximizing portability. 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)