text: user2970: main.nf is 
  #!/usr/bin/env nextflow
  
  params.input = ''
  tchan = Channel.fromFile(params.input)
  
  tchan.println()
  
  I have a.bam, b.bam and c.bam  
  I run: 
  nextflow run main.nf --input *bam
  
  But it only prints a.bam
  According to the documentation, wildcard character it is interpreted as a glob path matcher
  What am I doing wrong?
  Thank you 
  
  user2970: got it!
  I should run:
  nextflow run main.nf --input "*bam"
  
  instead of 
  nextflow run main.nf --input *bam
  
  
original_text: 2970: <p>main.nf is </p>
  
  <pre><code>#!/usr/bin/env nextflow
  
  params.input = ''
  tchan = Channel.fromFile(params.input)
  
  tchan.println()
  </code></pre>
  
  <p>I have a.bam, b.bam and c.bam  </p>
  
  <p>I run: </p>
  
  <pre><code>nextflow run main.nf --input *bam
  </code></pre>
  
  <p>But it only prints <code>a.bam</code></p>
  
  <p>According to the <a href="https://www.nextflow.io/docs/latest/channel.html#frompath" rel="nofollow noreferrer">documentation</a>, wildcard character it is interpreted as a glob path matcher</p>
  
  <p>What am I doing wrong?</p>
  
  <p>Thank you </p>
   2970: <p>got it!</p>
  
  <p>I should run:</p>
  
  <pre><code>nextflow run main.nf --input "*bam"
  </code></pre>
  
  <p>instead of </p>
  
  <pre><code>nextflow run main.nf --input *bam
  </code></pre>
  