Artifact
9f871c7082650dda55563d3eedaec95b693e4367:
Attachment "1379287.patch" to
ticket [1379287fff]
added by
dgp
2006-03-03 11:32:11.
0000: 49 6e 64 65 78 3a 20 67 65 6e 65 72 69 63 2f 74 Index: generic/t
0010: 63 6c 50 61 74 68 4f 62 6a 2e 63 0a 3d 3d 3d 3d clPathObj.c.====
0020: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d ================
0030: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d ================
0040: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d ================
0050: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 0a ===============.
0060: 52 43 53 20 66 69 6c 65 3a 20 2f 63 76 73 72 6f RCS file: /cvsro
0070: 6f 74 2f 74 63 6c 2f 74 63 6c 2f 67 65 6e 65 72 ot/tcl/tcl/gener
0080: 69 63 2f 74 63 6c 50 61 74 68 4f 62 6a 2e 63 2c ic/tclPathObj.c,
0090: 76 0a 72 65 74 72 69 65 76 69 6e 67 20 72 65 76 v.retrieving rev
00a0: 69 73 69 6f 6e 20 31 2e 34 39 0a 64 69 66 66 20 ision 1.49.diff
00b0: 2d 75 20 2d 72 31 2e 34 39 20 74 63 6c 50 61 74 -u -r1.49 tclPat
00c0: 68 4f 62 6a 2e 63 0a 2d 2d 2d 20 67 65 6e 65 72 hObj.c.--- gener
00d0: 69 63 2f 74 63 6c 50 61 74 68 4f 62 6a 2e 63 09 ic/tclPathObj.c.
00e0: 31 32 20 4a 61 6e 20 32 30 30 36 20 31 38 3a 33 12 Jan 2006 18:3
00f0: 35 3a 32 38 20 2d 30 30 30 30 09 31 2e 34 39 0a 5:28 -0000.1.49.
0100: 2b 2b 2b 20 67 65 6e 65 72 69 63 2f 74 63 6c 50 +++ generic/tclP
0110: 61 74 68 4f 62 6a 2e 63 09 33 20 4d 61 72 20 32 athObj.c.3 Mar 2
0120: 30 30 36 20 30 34 3a 32 33 3a 32 39 20 2d 30 30 006 04:23:29 -00
0130: 30 30 0a 40 40 20 2d 33 30 39 2c 31 32 20 2b 33 00.@@ -309,12 +3
0140: 30 39 2c 32 30 20 40 40 0a 20 09 09 20 20 20 20 09,20 @@. ..
0150: 20 2a 20 45 69 74 68 65 72 20 77 61 79 2c 20 77 * Either way, w
0160: 65 20 6e 6f 77 20 72 65 6d 6f 76 65 20 74 68 65 e now remove the
0170: 20 6c 61 73 74 20 70 61 74 68 20 65 6c 65 6d 65 last path eleme
0180: 6e 74 2e 0a 20 09 09 20 20 20 20 20 2a 2f 0a 20 nt.. .. */.
0190: 0a 2d 09 09 20 20 20 20 77 68 69 6c 65 20 28 2d .-.. while (-
01a0: 2d 63 75 72 4c 65 6e 20 3e 3d 20 30 29 20 7b 0a -curLen >= 0) {.
01b0: 2b 09 09 20 20 20 20 77 68 69 6c 65 20 28 2d 2d +.. while (--
01c0: 63 75 72 4c 65 6e 20 3e 20 30 29 20 7b 0a 20 09 curLen > 0) {. .
01d0: 09 09 69 66 20 28 49 73 53 65 70 61 72 61 74 6f ..if (IsSeparato
01e0: 72 4f 72 4e 75 6c 6c 28 6c 69 6e 6b 53 74 72 5b rOrNull(linkStr[
01f0: 63 75 72 4c 65 6e 5d 29 29 20 7b 0a 20 09 09 09 curLen])) {. ...
0200: 20 20 20 20 54 63 6c 5f 53 65 74 4f 62 6a 4c 65 Tcl_SetObjLe
0210: 6e 67 74 68 28 72 65 74 56 61 6c 2c 20 63 75 72 ngth(retVal, cur
0220: 4c 65 6e 29 3b 0a 20 09 09 09 20 20 20 20 62 72 Len);. ... br
0230: 65 61 6b 3b 0a 20 09 09 09 7d 0a 20 09 09 20 20 eak;. ...}. ..
0240: 20 20 7d 0a 2b 09 09 20 20 20 20 69 66 20 28 63 }.+.. if (c
0250: 75 72 4c 65 6e 20 3d 3d 20 30 29 20 7b 0a 2b 09 urLen == 0) {.+.
0260: 09 09 2f 2a 20 41 74 74 65 6d 70 74 20 74 6f 20 ../* Attempt to
0270: 2e 2e 20 62 65 79 6f 6e 64 20 72 6f 6f 74 20 62 .. beyond root b
0280: 65 63 6f 6d 65 73 20 72 6f 6f 74 3a 20 22 2f 22 ecomes root: "/"
0290: 20 2a 2f 0a 2b 09 09 09 69 66 20 28 64 69 72 53 */.+...if (dirS
02a0: 65 70 5b 33 5d 20 21 3d 20 30 29 20 7b 0a 2b 09 ep[3] != 0) {.+.
02b0: 09 09 20 20 20 20 54 63 6c 5f 53 65 74 4f 62 6a .. Tcl_SetObj
02c0: 4c 65 6e 67 74 68 28 72 65 74 56 61 6c 2c 20 30 Length(retVal, 0
02d0: 29 3b 0a 2b 09 09 09 7d 20 65 6c 73 65 20 7b 0a );.+...} else {.
02e0: 2b 09 09 09 20 20 20 20 54 63 6c 5f 53 65 74 4f +... Tcl_SetO
02f0: 62 6a 4c 65 6e 67 74 68 28 72 65 74 56 61 6c 2c bjLength(retVal,
0300: 20 31 29 3b 0a 2b 09 09 09 7d 0a 2b 09 09 20 20 1);.+...}.+..
0310: 20 20 7d 0a 20 09 09 7d 0a 20 09 09 64 69 72 53 }. ..}. ..dirS
0320: 65 70 20 2b 3d 20 33 3b 0a 20 09 09 6f 6c 64 44 ep += 3;. ..oldD
0330: 69 72 53 65 70 20 3d 20 64 69 72 53 65 70 3b 0a irSep = dirSep;.
0340: 49 6e 64 65 78 3a 20 74 65 73 74 73 2f 66 69 6c Index: tests/fil
0350: 65 53 79 73 74 65 6d 2e 74 65 73 74 0a 3d 3d 3d eSystem.test.===
0360: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d ================
0370: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d ================
0380: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d ================
0390: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d ================
03a0: 0a 52 43 53 20 66 69 6c 65 3a 20 2f 63 76 73 72 .RCS file: /cvsr
03b0: 6f 6f 74 2f 74 63 6c 2f 74 63 6c 2f 74 65 73 74 oot/tcl/tcl/test
03c0: 73 2f 66 69 6c 65 53 79 73 74 65 6d 2e 74 65 73 s/fileSystem.tes
03d0: 74 2c 76 0a 72 65 74 72 69 65 76 69 6e 67 20 72 t,v.retrieving r
03e0: 65 76 69 73 69 6f 6e 20 31 2e 35 33 0a 64 69 66 evision 1.53.dif
03f0: 66 20 2d 75 20 2d 72 31 2e 35 33 20 66 69 6c 65 f -u -r1.53 file
0400: 53 79 73 74 65 6d 2e 74 65 73 74 0a 2d 2d 2d 20 System.test.---
0410: 74 65 73 74 73 2f 66 69 6c 65 53 79 73 74 65 6d tests/fileSystem
0420: 2e 74 65 73 74 09 35 20 41 70 72 20 32 30 30 35 .test.5 Apr 2005
0430: 20 31 37 3a 30 33 3a 32 32 20 2d 30 30 30 30 09 17:03:22 -0000.
0440: 31 2e 35 33 0a 2b 2b 2b 20 74 65 73 74 73 2f 66 1.53.+++ tests/f
0450: 69 6c 65 53 79 73 74 65 6d 2e 74 65 73 74 09 33 ileSystem.test.3
0460: 20 4d 61 72 20 32 30 30 36 20 30 34 3a 32 33 3a Mar 2006 04:23:
0470: 33 38 20 2d 30 30 30 30 0a 40 40 20 2d 33 37 30 38 -0000.@@ -370
0480: 2c 36 20 2b 33 37 30 2c 37 36 20 40 40 0a 20 20 ,6 +370,76 @@.
0490: 20 20 20 20 20 20 20 73 65 74 20 72 65 73 20 22 set res "
04a0: 6f 6b 22 0a 20 20 20 20 20 7d 0a 20 7d 20 7b 6f ok". }. } {o
04b0: 6b 7d 0a 2b 74 65 73 74 20 66 69 6c 65 73 79 73 k}.+test filesys
04c0: 74 65 6d 2d 31 2e 34 32 20 7b 66 69 6c 65 20 6e tem-1.42 {file n
04d0: 6f 72 6d 61 6c 69 73 61 74 69 6f 6e 20 2e 2e 20 ormalisation ..
04e0: 62 65 79 6f 6e 64 20 72 6f 6f 74 20 28 42 75 67 beyond root (Bug
04f0: 20 31 33 37 39 32 38 37 29 7d 20 7b 0a 2b 20 20 1379287)} {.+
0500: 20 20 73 65 74 20 61 20 5b 66 69 6c 65 20 6e 6f set a [file no
0510: 72 6d 20 2f 78 78 78 2f 2e 2e 5d 0a 2b 20 20 20 rm /xxx/..].+
0520: 20 73 65 74 20 62 20 5b 66 69 6c 65 20 6e 6f 72 set b [file nor
0530: 6d 20 2f 5d 0a 2b 20 20 20 20 0a 2b 20 20 20 20 m /].+ .+
0540: 69 66 20 7b 21 5b 73 74 72 69 6e 67 20 65 71 75 if {![string equ
0550: 61 6c 20 24 61 20 24 62 5d 7d 20 7b 0a 2b 20 20 al $a $b]} {.+
0560: 20 20 20 20 20 20 73 65 74 20 72 65 73 20 22 50 set res "P
0570: 61 74 68 73 20 73 68 6f 75 6c 64 20 62 65 20 65 aths should be e
0580: 71 75 61 6c 3a 20 24 61 20 2c 20 24 62 22 0a 2b qual: $a , $b".+
0590: 20 20 20 20 7d 20 65 6c 73 65 20 7b 0a 2b 20 20 } else {.+
05a0: 20 20 20 20 20 20 73 65 74 20 72 65 73 20 22 6f set res "o
05b0: 6b 22 0a 2b 20 20 20 20 7d 0a 2b 7d 20 7b 6f 6b k".+ }.+} {ok
05c0: 7d 0a 2b 74 65 73 74 20 66 69 6c 65 73 79 73 74 }.+test filesyst
05d0: 65 6d 2d 31 2e 34 32 2e 31 20 7b 66 69 6c 65 20 em-1.42.1 {file
05e0: 6e 6f 72 6d 61 6c 69 73 61 74 69 6f 6e 20 2e 2e normalisation ..
05f0: 20 62 65 79 6f 6e 64 20 72 6f 6f 74 20 28 42 75 beyond root (Bu
0600: 67 20 31 33 37 39 32 38 37 29 7d 20 7b 0a 2b 20 g 1379287)} {.+
0610: 20 20 20 73 65 74 20 61 20 5b 66 69 6c 65 20 6e set a [file n
0620: 6f 72 6d 20 2f 78 78 78 2f 2e 2e 2f 5d 0a 2b 20 orm /xxx/../].+
0630: 20 20 20 73 65 74 20 62 20 5b 66 69 6c 65 20 6e set b [file n
0640: 6f 72 6d 20 2f 5d 0a 2b 20 20 20 20 0a 2b 20 20 orm /].+ .+
0650: 20 20 69 66 20 7b 21 5b 73 74 72 69 6e 67 20 65 if {![string e
0660: 71 75 61 6c 20 24 61 20 24 62 5d 7d 20 7b 0a 2b qual $a $b]} {.+
0670: 20 20 20 20 20 20 20 20 73 65 74 20 72 65 73 20 set res
0680: 22 50 61 74 68 73 20 73 68 6f 75 6c 64 20 62 65 "Paths should be
0690: 20 65 71 75 61 6c 3a 20 24 61 20 2c 20 24 62 22 equal: $a , $b"
06a0: 0a 2b 20 20 20 20 7d 20 65 6c 73 65 20 7b 0a 2b .+ } else {.+
06b0: 20 20 20 20 20 20 20 20 73 65 74 20 72 65 73 20 set res
06c0: 22 6f 6b 22 0a 2b 20 20 20 20 7d 0a 2b 7d 20 7b "ok".+ }.+} {
06d0: 6f 6b 7d 0a 2b 74 65 73 74 20 66 69 6c 65 73 79 ok}.+test filesy
06e0: 73 74 65 6d 2d 31 2e 34 33 20 7b 66 69 6c 65 20 stem-1.43 {file
06f0: 6e 6f 72 6d 61 6c 69 73 61 74 69 6f 6e 20 2e 2e normalisation ..
0700: 20 62 65 79 6f 6e 64 20 72 6f 6f 74 20 28 42 75 beyond root (Bu
0710: 67 20 31 33 37 39 32 38 37 29 7d 20 7b 0a 2b 20 g 1379287)} {.+
0720: 20 20 20 73 65 74 20 61 20 5b 66 69 6c 65 20 6e set a [file n
0730: 6f 72 6d 20 2f 78 78 78 2f 66 6f 6f 2f 2e 2e 2f orm /xxx/foo/../
0740: 2e 2e 5d 0a 2b 20 20 20 20 73 65 74 20 62 20 5b ..].+ set b [
0750: 66 69 6c 65 20 6e 6f 72 6d 20 2f 5d 0a 2b 20 20 file norm /].+
0760: 20 20 0a 2b 20 20 20 20 69 66 20 7b 21 5b 73 74 .+ if {![st
0770: 72 69 6e 67 20 65 71 75 61 6c 20 24 61 20 24 62 ring equal $a $b
0780: 5d 7d 20 7b 0a 2b 20 20 20 20 20 20 20 20 73 65 ]} {.+ se
0790: 74 20 72 65 73 20 22 50 61 74 68 73 20 73 68 6f t res "Paths sho
07a0: 75 6c 64 20 62 65 20 65 71 75 61 6c 3a 20 24 61 uld be equal: $a
07b0: 20 2c 20 24 62 22 0a 2b 20 20 20 20 7d 20 65 6c , $b".+ } el
07c0: 73 65 20 7b 0a 2b 20 20 20 20 20 20 20 20 73 65 se {.+ se
07d0: 74 20 72 65 73 20 22 6f 6b 22 0a 2b 20 20 20 20 t res "ok".+
07e0: 7d 0a 2b 7d 20 7b 6f 6b 7d 0a 2b 74 65 73 74 20 }.+} {ok}.+test
07f0: 66 69 6c 65 73 79 73 74 65 6d 2d 31 2e 34 33 2e filesystem-1.43.
0800: 31 20 7b 66 69 6c 65 20 6e 6f 72 6d 61 6c 69 73 1 {file normalis
0810: 61 74 69 6f 6e 20 2e 2e 20 62 65 79 6f 6e 64 20 ation .. beyond
0820: 72 6f 6f 74 20 28 42 75 67 20 31 33 37 39 32 38 root (Bug 137928
0830: 37 29 7d 20 7b 0a 2b 20 20 20 20 73 65 74 20 61 7)} {.+ set a
0840: 20 5b 66 69 6c 65 20 6e 6f 72 6d 20 2f 78 78 78 [file norm /xxx
0850: 2f 66 6f 6f 2f 2e 2e 2f 2e 2e 2f 5d 0a 2b 20 20 /foo/../../].+
0860: 20 20 73 65 74 20 62 20 5b 66 69 6c 65 20 6e 6f set b [file no
0870: 72 6d 20 2f 5d 0a 2b 20 20 20 20 0a 2b 20 20 20 rm /].+ .+
0880: 20 69 66 20 7b 21 5b 73 74 72 69 6e 67 20 65 71 if {![string eq
0890: 75 61 6c 20 24 61 20 24 62 5d 7d 20 7b 0a 2b 20 ual $a $b]} {.+
08a0: 20 20 20 20 20 20 20 73 65 74 20 72 65 73 20 22 set res "
08b0: 50 61 74 68 73 20 73 68 6f 75 6c 64 20 62 65 20 Paths should be
08c0: 65 71 75 61 6c 3a 20 24 61 20 2c 20 24 62 22 0a equal: $a , $b".
08d0: 2b 20 20 20 20 7d 20 65 6c 73 65 20 7b 0a 2b 20 + } else {.+
08e0: 20 20 20 20 20 20 20 73 65 74 20 72 65 73 20 22 set res "
08f0: 6f 6b 22 0a 2b 20 20 20 20 7d 0a 2b 7d 20 7b 6f ok".+ }.+} {o
0900: 6b 7d 0a 2b 74 65 73 74 20 66 69 6c 65 73 79 73 k}.+test filesys
0910: 74 65 6d 2d 31 2e 34 34 20 7b 66 69 6c 65 20 6e tem-1.44 {file n
0920: 6f 72 6d 61 6c 69 73 61 74 69 6f 6e 20 2e 2e 20 ormalisation ..
0930: 62 65 79 6f 6e 64 20 72 6f 6f 74 20 28 42 75 67 beyond root (Bug
0940: 20 31 33 37 39 32 38 37 29 7d 20 7b 0a 2b 20 20 1379287)} {.+
0950: 20 20 73 65 74 20 61 20 5b 66 69 6c 65 20 6e 6f set a [file no
0960: 72 6d 20 2f 78 78 78 2f 66 6f 6f 2f 2e 2e 2f 2e rm /xxx/foo/../.
0970: 2e 2f 62 61 72 5d 0a 2b 20 20 20 20 73 65 74 20 ./bar].+ set
0980: 62 20 5b 66 69 6c 65 20 6e 6f 72 6d 20 2f 62 61 b [file norm /ba
0990: 72 5d 0a 2b 20 20 20 20 0a 2b 20 20 20 20 69 66 r].+ .+ if
09a0: 20 7b 21 5b 73 74 72 69 6e 67 20 65 71 75 61 6c {![string equal
09b0: 20 24 61 20 24 62 5d 7d 20 7b 0a 2b 20 20 20 20 $a $b]} {.+
09c0: 20 20 20 20 73 65 74 20 72 65 73 20 22 50 61 74 set res "Pat
09d0: 68 73 20 73 68 6f 75 6c 64 20 62 65 20 65 71 75 hs should be equ
09e0: 61 6c 3a 20 24 61 20 2c 20 24 62 22 0a 2b 20 20 al: $a , $b".+
09f0: 20 20 7d 20 65 6c 73 65 20 7b 0a 2b 20 20 20 20 } else {.+
0a00: 20 20 20 20 73 65 74 20 72 65 73 20 22 6f 6b 22 set res "ok"
0a10: 0a 2b 20 20 20 20 7d 0a 2b 7d 20 7b 6f 6b 7d 0a .+ }.+} {ok}.
0a20: 2b 74 65 73 74 20 66 69 6c 65 73 79 73 74 65 6d +test filesystem
0a30: 2d 31 2e 34 35 20 7b 66 69 6c 65 20 6e 6f 72 6d -1.45 {file norm
0a40: 61 6c 69 73 61 74 69 6f 6e 20 2e 2e 20 62 65 79 alisation .. bey
0a50: 6f 6e 64 20 72 6f 6f 74 20 28 42 75 67 20 31 33 ond root (Bug 13
0a60: 37 39 32 38 37 29 7d 20 7b 0a 2b 20 20 20 20 73 79287)} {.+ s
0a70: 65 74 20 61 20 5b 66 69 6c 65 20 6e 6f 72 6d 20 et a [file norm
0a80: 2f 78 78 78 2f 2e 2e 2f 2e 2e 2f 62 61 72 5d 0a /xxx/../../bar].
0a90: 2b 20 20 20 20 73 65 74 20 62 20 5b 66 69 6c 65 + set b [file
0aa0: 20 6e 6f 72 6d 20 2f 62 61 72 5d 0a 2b 20 20 20 norm /bar].+
0ab0: 20 0a 2b 20 20 20 20 69 66 20 7b 21 5b 73 74 72 .+ if {![str
0ac0: 69 6e 67 20 65 71 75 61 6c 20 24 61 20 24 62 5d ing equal $a $b]
0ad0: 7d 20 7b 0a 2b 20 20 20 20 20 20 20 20 73 65 74 } {.+ set
0ae0: 20 72 65 73 20 22 50 61 74 68 73 20 73 68 6f 75 res "Paths shou
0af0: 6c 64 20 62 65 20 65 71 75 61 6c 3a 20 24 61 20 ld be equal: $a
0b00: 2c 20 24 62 22 0a 2b 20 20 20 20 7d 20 65 6c 73 , $b".+ } els
0b10: 65 20 7b 0a 2b 20 20 20 20 20 20 20 20 73 65 74 e {.+ set
0b20: 20 72 65 73 20 22 6f 6b 22 0a 2b 20 20 20 20 7d res "ok".+ }
0b30: 0a 2b 7d 20 7b 6f 6b 7d 0a 2b 74 65 73 74 20 66 .+} {ok}.+test f
0b40: 69 6c 65 73 79 73 74 65 6d 2d 31 2e 34 36 20 7b ilesystem-1.46 {
0b50: 66 69 6c 65 20 6e 6f 72 6d 61 6c 69 73 61 74 69 file normalisati
0b60: 6f 6e 20 2e 2e 20 62 65 79 6f 6e 64 20 72 6f 6f on .. beyond roo
0b70: 74 20 28 42 75 67 20 31 33 37 39 32 38 37 29 7d t (Bug 1379287)}
0b80: 20 7b 0a 2b 20 20 20 20 73 65 74 20 61 20 5b 66 {.+ set a [f
0b90: 69 6c 65 20 6e 6f 72 6d 20 2f 78 78 78 2f 2e 2e ile norm /xxx/..
0ba0: 2f 62 61 72 5d 0a 2b 20 20 20 20 73 65 74 20 62 /bar].+ set b
0bb0: 20 5b 66 69 6c 65 20 6e 6f 72 6d 20 2f 62 61 72 [file norm /bar
0bc0: 5d 0a 2b 20 20 20 20 0a 2b 20 20 20 20 69 66 20 ].+ .+ if
0bd0: 7b 21 5b 73 74 72 69 6e 67 20 65 71 75 61 6c 20 {![string equal
0be0: 24 61 20 24 62 5d 7d 20 7b 0a 2b 20 20 20 20 20 $a $b]} {.+
0bf0: 20 20 20 73 65 74 20 72 65 73 20 22 50 61 74 68 set res "Path
0c00: 73 20 73 68 6f 75 6c 64 20 62 65 20 65 71 75 61 s should be equa
0c10: 6c 3a 20 24 61 20 2c 20 24 62 22 0a 2b 20 20 20 l: $a , $b".+
0c20: 20 7d 20 65 6c 73 65 20 7b 0a 2b 20 20 20 20 20 } else {.+
0c30: 20 20 20 73 65 74 20 72 65 73 20 22 6f 6b 22 0a set res "ok".
0c40: 2b 20 20 20 20 7d 0a 2b 7d 20 7b 6f 6b 7d 0a 20 + }.+} {ok}.
0c50: 0a 20 74 65 73 74 20 66 69 6c 65 73 79 73 74 65 . test filesyste
0c60: 6d 2d 32 2e 30 20 7b 6e 65 77 20 6e 61 74 69 76 m-2.0 {new nativ
0c70: 65 20 70 61 74 68 7d 20 7b 75 6e 69 78 7d 20 7b e path} {unix} {
0c80: 0a 20 20 20 20 66 6f 72 65 61 63 68 20 66 20 5b . foreach f [
0c90: 6c 73 6f 72 74 20 5b 67 6c 6f 62 20 2d 6e 6f 63 lsort [glob -noc
0ca0: 6f 6d 70 6c 61 69 6e 20 2f 75 73 72 2f 62 69 6e omplain /usr/bin
0cb0: 2f 63 2a 5d 5d 20 7b 0a /c*]] {.