Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 35240a6a576e13851a11203bd09357aa29ea9e15
Ticket: 1537059fffffffffffffffffffffffffffffffff
HP-UX 11.00 - glob returns incorrect file names
User & Date: skipaugur on 2006-08-08 23:30:38
Changes

  1. assignee changed to: "vincentdarley"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    Following is a copy of my comp.lang.tcl thread - Don
    Porter suggested submitting a bug report here.:
    
    Odd glob result with Tcl 8.4.13 and HP-UX 11.0
    
    I've been trying to compile tcl8.4.13 using gcc 3.2.3
    on one of our HP-UX boxes. I had to tweak the LIBS in
    the makefile because they were looking for an "xnet"
    library which isn't on our machine (at least, that I
    can find) and configure wants it there for HP-UX.
    
    My configure line options were: disable-64bit 
    enable-gcc disable-load disable-shared (I've been
    playing with several options trying to figure
    this out).
    
    The problem is that now "glob" seems to be losing
    characters from filenames. For example, From the "unix"
    directory where I did the make, here's the output of
    glob followed by the output of ll. I'm hoping I just
    did something stupid in the make process:
    
    (wba-test) ca:/home/wba/xact/release/tcl8.4/unix (454)$
    tclsh
    % info tclver
    8.4
    % glob *
    Ì ¨ ¸ {} Œ l.m4 ure ure.in stall-sh stallManPage {}
    kefile.in {}
    l.m4 ec Init.c lConfig.sh.in {} {} t.c dDl.c lLoadDld.c
    {} {} {} dShl.c
    {} {} nt.c xFCmd.c lUnixFile.c {} {} {} e.c xPort.h
    lUnixSock.c
    HtclUnixTest. {} {} d.h xTime.c lXtNotify.c {} {}
    config.log {}
    Àconfig.statu {} {} {} st.s2 ,ôì {} {} t fig.sh
    gerror.o lAlloc.o
    lAsync.o lBasic.o lBinary.o {} {} {} {} {} {} {} r.o
    pile.o lDate.o
    lEncoding.o {\tclEnv.oo} {} {} {} {} eName.o lGet.oo
    lHash.o lHistory.o
    ÈtclIndexObj. {} {} {} {} {} o til.o lLink.o lListObj.o
    {} {} {} {} {}
    o ic.o se.o seExpr.o lPipe.oo lPkg.oo ,,´ { } ¤èŒ ü ixStr.o
    lPreserve.o {} {} {} {} o n.o ingObj.o lThread.o {} {}
    oin.o
    lStubInit.o {} {} {} {} {} {} {} nt.o ÌtclUnixFCmd. {}
    {} e.o xSock.o
    lUnixTime.o {} {} {} fy.o r.oo l.o ll.o d.o l.o secmp.o
    lLoadNone.o
    |libtclstub8. {} a Init.o {} Init.o nfig.cache {} 3
    % ll
    total 7826
    -rw-rw-r--   1 wba        x            51568 Aug  7
    15:42 Makefile
    -rwxr--r--   1 wba        x            50848 Aug  7
    14:07 Makefile.in
    -rwxr--r--   1 wba        x             7377 Aug  7
    14:07 README
    -rwxr--r--   1 wba        x               24 Aug  7
    14:07 aclocal.m4
    -rw-rw-r--   1 wba        x             5121 Aug  7
    13:36 config.cache
    -rw-rw-r--   1 wba        x             4769 Aug  7
    14:08 config.log
    -rwxrwxr-x   1 wba        x             8520 Aug  7
    14:08 config.status
    -rwxr--r--   1 wba        x           236300 Aug  7
    14:07 configure
    -rwxr--r--   1 wba        x            24623 Aug  7
    14:07 configure.in
    drwxr-xr-x   2 wba        x             1024 Aug  7
    14:08 dltest
    -rwxr--r--   1 wba        x             2255 Aug  7
    14:07 install-sh
    -rwxr--r--   1 wba        x             1568 Aug  7 14:07
    installManPage
    -rwxr--r--   1 wba        x             2856 Aug  7
    14:07 ldAix
    -rw-rw-r--   1 wba        x          1050134 Aug  7
    14:45 libtcl8.4.a
    -rw-rw-r--   1 wba        x            17070 Aug  7 14:45
    libtclstub8.4.a
    -rw-rw-r--   1 wba        x              624 Aug  7
    14:44 memcmp.o
    -rw-rw-r--   1 wba        x             1376 Aug  7
    14:44 opendir.o
    -rw-rw-r--   1 wba        x            58115 Aug  7
    14:37 regcomp.o
    -rw-rw-r--   1 wba        x             3673 Aug  7
    14:38 regerror.o
    -rw-rw-r--   1 wba        x            12110 Aug  7
    14:37 regexec.o
    -rw-rw-r--   1 wba        x              650 Aug  7
    14:38 regfree.o
    -rw-rw-r--   1 wba        x             1081 Aug  7
    14:45 strncasecmp.o
    -rw-rw-r--   1 wba        x              688 Aug  7
    14:44 strstr.o
    -rw-rw-r--   1 wba        x             2009 Aug  7
    14:45 strtod.o
    -rw-rw-r--   1 wba        x              952 Aug  7 
    
    <cut more valid filenames>
    ...
    
    read more »
    
    Reply
    
    
    From:Don Porter - view profile
    Date:Mon, Aug 7 2006 7:12 pm
    [email protected] wrote:
    > The problem is that now "glob" seems to be losing
    characters from
    > filenames. For example, From the "unix" directory
    where I did the make,
    > here's the output of glob followed by the output of
    ll. I'm hoping I
    > just did something stupid in the make process:
    
    Just to cut down on the number of avenues to explore,
    try repeating your tests with an interactive prompt
    produced by `make shell`.
    
    -- 
    | Don Porter          Mathematical and Computational
    Sciences Division |
    | [email protected]             Information
    Technology Laboratory |
    | http://math.nist.gov/~DPorter/                      
               NIST |
    |______________________________________________________________________|
    
    Reply
    
    
    From:[email protected] - view profile
    Date:Tues, Aug 8 2006 10:33 am
    Email: [email protected]
    Groups: comp.lang.tcl
    Not yet rated
    Rating: 
    show options
    Reply | Reply to Author | Forward | Print | Individual
    Message | Show original | Report Abuse | Find messages
    by this author
    
    Thanks Don, The results are (looks different but still
    quite odd):
    
    ./tclsh
    % glob *
    ä ¨ Ð {} Œ l.m4 ure ure.in stall-sh stallManPage {}
    kefile.in {}
    l.m4 ec Init.c lConfig.sh.in {} {} t.c dDl.c lLoadDld.c
    {} {} {} dShl.c
    {} {} nt.c xFCmd.c lUnixFile.c {} {} {} e.c xPort.h
    lUnixSock.c
    HtclUnixTest. {} {} d.h xTime.c lXtNotify.c {} {}
    config.log {}
    Àconfig.statu {} {} {} st.s2 È {} {} ˆ fig.sh gfree.oo
    gerror.o
    lAlloc.o lAsync.o lBasic.o lBinary.oloc {} {} {} {} {}
    {} {} r.oe
    pile.oo lDate.on lEncoding.o ptclEnv.o.o {} {} {} d.om
    eName.o lGet.oo
    lHash.oy lHistory.oOb ÜtclIndexObj. {} {} {} {} {} oil.
    til.o.o
    lLink.oj lListObj.oal {} {} {} {} {} oo ic.o se.o
    seExpr.o lPipe.o ˜È
    4 ¸x   ixStr.ov lPreserve.o {} {} {} {} o.o n.oO
    ingObj.o lThread.oadA
    {} {} oin.oIni lStubInit.ob {} {} {} {} {} {} {}
    lUnixEvent.o
    àtclUnixFCmd. {} {} e.oc xSock.om lUnixTime.oi
    tclUnixInit. {} {} fy.o
    r.o l.oo ll.o d.o l.o secmp.on lLoadNone.ob
    libtclstub8. {} anit.o {}
    13it.o nfig.cache {} tProcBodyObj.o o xTest.o ltest
    
    - Hide quoted text -
    - Show quoted text -
    Don Porter wrote:
    > [email protected] wrote:
    > > The problem is that now "glob" seems to be losing
    characters from
    > > filenames. For example, From the "unix" directory
    where I did the make,
    > > here's the output of glob followed by the output of
    ll. I'm hoping I
    > > just did something stupid in the make process:
    
    > Just to cut down on the number of avenues to explore,
    try repeating
    > your tests with an interactive prompt produced by
    `make shell`.
    
    > --
    > | Don Porter          Mathematical and Computational
    Sciences Division |
    > | [email protected]             Information
    Technology Laboratory |
    > | http://math.nist.gov/~DPorter/                    
                 NIST |
    >
    |______________________________________________________________________|
    
    Reply
    
    
    From:Don Porter - view profile
    Date:Tues, Aug 8 2006 10:41 am
    Email: Don Porter <[email protected]>
    Groups: comp.lang.tcl
    
    [email protected] wrote:
    > ./tclsh
    > % glob *
    > ä ¨ Ð {} Œ l.m4 ure ure.in stall-sh stallManPage {}
    kefile.in {}...
    
    very strange.  As a guess, try starting over completely
    with a
    `make distclean`.  If the symptom still shows up after
    that, file
    a bug report in the SourceForge Tracker for Tcl.
    
    -- 
    
  4. foundin changed to: "obsolete: 8.4.13"
  5. is_private changed to: "0"
  6. priority changed to: "5 Medium"
  7. resolution changed to: "None"
  8. status changed to: "Open"
  9. submitter changed to: "skipaugur"
  10. subsystem changed to: "37. File System"
  11. title changed to: "HP-UX 11.00 - glob returns incorrect file names"
  12. type changed to: "Bug"