Commit 62925f5
authored
ls: list file arguments in columns
* Test case: "perl ls spell ar ar ."
* The argument list is split into files and directories
* File arguments are listed first in multi-column output, followed by each directory argument
* Previously List() was called once per file argument; this was incorrect because List() is unable to format the arguments together in columns
* Fix this by preparing a sorted file list and attribute hash (containing stat() data), then calling List() once
* DirEntries() has to be called once per file, then the stat data returned is merged into a single hash
* Bump version1 parent f2d8543 commit 62925f5
1 file changed
+9
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
114 | 114 | | |
115 | 115 | | |
116 | 116 | | |
117 | | - | |
| 117 | + | |
118 | 118 | | |
119 | 119 | | |
120 | 120 | | |
| |||
517 | 517 | | |
518 | 518 | | |
519 | 519 | | |
520 | | - | |
| 520 | + | |
521 | 521 | | |
522 | | - | |
523 | | - | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
524 | 529 | | |
525 | 530 | | |
526 | 531 | | |
| |||
0 commit comments