help-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Help-bash] What could cause ls and echo return different files?


From: Peng Yu
Subject: [Help-bash] What could cause ls and echo return different files?
Date: Wed, 14 May 2014 11:33:53 -0500

Hi,

I have a file system on glusterfs (http://www.gluster.org/). The
strange thing is that the following commands can give different files.

$ ls xxx.fastq.gz.*
xxx.fastq.gz.finished  xxx.fastq.gz.stdouterr
$ echo xxx.fastq.gz.*
xxx.fastq.gz.finished xxx.fastq.gz.lockfile xxx.fastq.gz.stdouterr

Even more wired, the exact same commands may give different answers
from time to time. This must be somehow related to glusterfs. But is
there a way at the bash level to show what might be wrong.

$ echo xxx.fastq.gz.*
xxx.fastq.gz.finished xxx.fastq.gz.stdouterr
$ ls xxx.fastq.gz.*
xxx.fastq.gz.finished  xxx.fastq.gz.lockfile  xxx.fastq.gz.stdouterr
$ ls xxx.fastq.gz.*
xxx.fastq.gz.finished  xxx.fastq.gz.lockfile  xxx.fastq.gz.stdouterr
$ ls xxx.fastq.gz.*
xxx.fastq.gz.finished  xxx.fastq.gz.lockfile  xxx.fastq.gz.stdouterr
$ echo xxx.fastq.gz.*
xxx.fastq.gz.finished xxx.fastq.gz.lockfile xxx.fastq.gz.stdouterr
$ echo xxx.fastq.gz.*
xxx.fastq.gz.finished xxx.fastq.gz.lockfile xxx.fastq.gz.stdouterr
$ ls xxx.fastq.gz.*
xxx.fastq.gz.finished  xxx.fastq.gz.stdouterr

-- 
Regards,
Peng



reply via email to

[Prev in Thread] Current Thread [Next in Thread]