{"action":"created","issue":{"url":"https://api.github.com/repos/nextflow-io/nextflow/issues/77","labels_url":"https://api.github.com/repos/nextflow-io/nextflow/issues/77/labels{/name}","comments_url":"https://api.github.com/repos/nextflow-io/nextflow/issues/77/comments","events_url":"https://api.github.com/repos/nextflow-io/nextflow/issues/77/events","html_url":"https://github.com/nextflow-io/nextflow/issues/77","id":109460962,"number":77,"title":"REPL vs cli: different output for example","user":{"login":"huguesfontenelle","id":6872108,"avatar_url":"https://avatars.githubusercontent.com/u/6872108?v=3","gravatar_id":"","url":"https://api.github.com/users/huguesfontenelle","html_url":"https://github.com/huguesfontenelle","followers_url":"https://api.github.com/users/huguesfontenelle/followers","following_url":"https://api.github.com/users/huguesfontenelle/following{/other_user}","gists_url":"https://api.github.com/users/huguesfontenelle/gists{/gist_id}","starred_url":"https://api.github.com/users/huguesfontenelle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/huguesfontenelle/subscriptions","organizations_url":"https://api.github.com/users/huguesfontenelle/orgs","repos_url":"https://api.github.com/users/huguesfontenelle/repos","events_url":"https://api.github.com/users/huguesfontenelle/events{/privacy}","received_events_url":"https://api.github.com/users/huguesfontenelle/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-10-02T09:38:20Z","updated_at":"2015-10-02T14:32:31Z","closed_at":"2015-10-02T10:25:35Z","body":"Just running the basic example in both the REPL console and Command-Line Interface. I get different outputs. Not worried about the order of course, but the `convertToUpper` running twice for each chunk in REPL!!!\r\n\r\n**CLI**\r\n```\r\nN E X T F L O W  ~  version 0.15.3\r\nLaunching tutorial.nf\r\n[warm up] executor > local\r\n[40/37170e] Submitted process > splitLetters (1)\r\n[8f/52d30c] Submitted process > convertToUpper (1)\r\n[0e/9ac9b7] Submitted process > convertToUpper (2)\r\nHELLO\r\nWORLD!\r\n```\r\n\r\n\r\n**REPL**\r\n```\r\n[warm up] executor > local\r\n[29/ffdaba] Submitted process > splitLetters (1)\r\n[1f/e3106b] Submitted process > convertToUpper (1)\r\n[83/a5730f] Submitted process > convertToUpper (2)\r\nWORLD!\r\nWORLD!\r\nHELLO \r\nHELLO\r\n```\r\n\r\n\r\n**script** (for reference)\r\n```\r\n#!/usr/bin/env nextflow\r\n\r\nparams.str = 'Hello world!'\r\n\r\nprocess splitLetters {\r\n\r\n    output:\r\n    file 'chunk_*' into letters mode flatten\r\n\r\n    \"\"\"\r\n    printf '${params.str}' | split -b 6 - chunk_\r\n    \"\"\"\r\n}\r\n\r\n\r\nprocess convertToUpper {\r\n\r\n    input:\r\n    file x from letters\r\n\r\n    output:\r\n    stdout result\r\n\r\n    \"\"\"\r\n    cat $x | tr '[a-z]' '[A-Z]'\r\n    \"\"\"\r\n}\r\n\r\nresult.subscribe {\r\n    println it.trim()\r\n}\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/nextflow-io/nextflow/issues/comments/145039647","html_url":"https://github.com/nextflow-io/nextflow/issues/77#issuecomment-145039647","issue_url":"https://api.github.com/repos/nextflow-io/nextflow/issues/77","id":145039647,"user":{"login":"pditommaso","id":816968,"avatar_url":"https://avatars.githubusercontent.com/u/816968?v=3","gravatar_id":"","url":"https://api.github.com/users/pditommaso","html_url":"https://github.com/pditommaso","followers_url":"https://api.github.com/users/pditommaso/followers","following_url":"https://api.github.com/users/pditommaso/following{/other_user}","gists_url":"https://api.github.com/users/pditommaso/gists{/gist_id}","starred_url":"https://api.github.com/users/pditommaso/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pditommaso/subscriptions","organizations_url":"https://api.github.com/users/pditommaso/orgs","repos_url":"https://api.github.com/users/pditommaso/repos","events_url":"https://api.github.com/users/pditommaso/events{/privacy}","received_events_url":"https://api.github.com/users/pditommaso/received_events","type":"User","site_admin":false},"created_at":"2015-10-02T14:32:31Z","updated_at":"2015-10-02T14:32:31Z","body":"You are welcome. "}}