Skip to content

Dash rm with wildcards and directories behaviour inconsistent with Ubuntu linux version #529

Closed

Description

@gameldar

Dash is the default implementation for sh - so any scripts using /bin/sh will potentially hit this issue.

To replicate:

  1. Start a dash shell:
    dash
  2. The test directories and files:
    mkdir abc-1234
    touch abc-1234/5678.txt
    touch abc-9012.tar.gz
  3. Try to delete the directory only:
    rm -rf abc*/

Using dash on Ubuntu linux this will delete only the abc-1234 directory, however on Bash On Windows this will also delete abc-9012.tar.gz

Activity

  1. benhillis commented on Jun 15, 2016

    @benhillis
    Member

    There is a fix for this on the way to the Windows Insider builds, I tried this locally on our dev branch and only the folder was deleted.

  2. gameldar commented on Jun 16, 2016

    @gameldar
    Author

    I've just updated today to build 14366 and it is still happening - but I'll keep an eye on it for future builds.

    I also updated the test case (to include executing dash first) to make it a bit clearer what should happen.

  3. benhillis commented on Jul 8, 2016

    @benhillis
    Member

    This was resolved in Build 14371, could if this is still happening in this build could you please reopen this issue? Thanks!

  4. gameldar commented on Jul 11, 2016

    @gameldar
    Author

    This is working for me now so I can verified it fixed as well.

    Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions