#506 mkdir -p is broken

closed
MSYS (75)
2004-03-17
2004-02-19
Wayne Scott
No

$ mkdir -p A/A/A/A
mkdir: cannot create directory `A/A/A/A': No such
file or directory
$ mkdir A
mkdir: cannot create directory `A': File exists
$ mkdir A/A
$ mkdir A/A/A
$ mkdir A/A/A/A

What is up with that? It creates 'A' and then fails.

This is MSYS 1.0.10-rc4

-Wayne

Discussion

  • Wayne Scott

    Wayne Scott - 2004-02-19

    Logged In: YES
    user_id=18511

    This is likely the same bug a #855127

    It only files if all the directories are the same name.

    mkdir -p A/B/C/D/E

    works fine.

    How do I link bugs?

     
  • Wayne Scott

    Wayne Scott - 2004-03-10

    Logged In: YES
    user_id=18511

    A patch to fix this is attached

     
  • Wayne Scott

    Wayne Scott - 2004-03-10

    remove caching from normalize_posix_path()

     
  • alan johnson

    alan johnson - 2004-03-17

    Logged In: YES
    user_id=943591

    thanks for patch

     
  • Wayne Scott

    Wayne Scott - 2004-03-17
    • status: open --> closed
     
  • Wayne Scott

    Wayne Scott - 2004-03-17

    Logged In: YES
    user_id=18511

    This should be fixed in 1.0.10

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks