As @samiam has stated the list is returned to you in a semi-random order via readdir() . I'll just add the following. The list returned is what I ...
Slartibartfast is on the right track, but tar's default behaviour is to descend into directories, so you may get more than one copy of the same file included in the ...
The issue is that you're just using a glob, * , to list the files. The glob expands immediately, before tar ever sees it, so what tar really sees is:
Same Order. `--same-order'; `--preserve-order'; `-s'. To process large lists of file names on machines with small amounts of memory. Use in ...
tar's command line is one of Unix's little mysteries. It's difficult to associate arguments with options. Let's say you want to specify the block size (b), the output file ...
Filesystems do not give any guarantees about ordering of files returned in directory listings, thus tarfile.add adds files in random order, when ...
The tar (i.e., tape archive) command is used to convert a group of
Files in data.tar depends on filesystem order; Files in data.tar vary with the locale; Files in data.tar vary with the timezone; Files in data.tar ...
The --same-order option tells tar that the list of file names to be listed or extracted is sorted in the same order as the files in the archive. This allows ...
retrieve files in correct tape order using the command line interace for Globus.