Menu

#413 dirname, basename behavior

MSYS
closed
None
rejected
Feature_requests
2013-01-24
2003-08-25
No

Hi all,

Dirname and basename assume Unix style slash-delimited
pathnmes and do not work on Win style
backslash-delimited pathnames. I wrote very simple
versions of each that I am enclosing which support both
Unix and Win style delimiters and otherwise mostly mimic
behavior of the standard (msys)versions.

I am not sure this is a bug, but inconvenience at least. I
never use the standard msys versions any more.

Thank you,

Simon

Discussion

  • Simon Hawkin

    Simon Hawkin - 2003-08-25

    tar of enclosed sources

     
  • Earnie Boyd

    Earnie Boyd - 2003-08-25

    Logged In: YES
    user_id=15438

    Can you please give me examples of your use that do not work
    correctly?

    Earnie.

     
  • Simon Hawkin

    Simon Hawkin - 2003-08-25

    Logged In: YES
    user_id=579989

    --[why this is needed at all]--
    $ echo $WINDIR
    C:\WINDOWS

    $ basename $WINDIR
    C:\WINDOWS

    $ basenamex $WINDIR
    WINDOWS

    --[where behavior differs]--
    $ dirname /
    /

    $ basename /
    /

    $ dirnamex /
    C:/msys

    $ basenamex /
    1.0
    --[end]--

     
  • Earnie Boyd

    Earnie Boyd - 2004-02-15
    • status: open --> closed-rejected
     
  • Earnie Boyd

    Earnie Boyd - 2004-02-15

    Logged In: YES
    user_id=15438

    I don't see the need for this. Item closed.

     
  • Earnie Boyd

    Earnie Boyd - 2013-01-24
    • status: closed-rejected --> closed
    • resolution: --> rejected
    • category: --> Feature_requests
    • milestone: component_package --> MSYS
     
  • Earnie Boyd

    Earnie Boyd - 2013-01-24
    • labels: MSYS -->