Skip to content

Dir[] vs "../../" #8426

@jmettraux

Description

@jmettraux

Environment Information

  • jruby 9.4.9.0 (3.1.4) 2024-11-04 547c6b1 OpenJDK 64-Bit Server VM 21.0.4+7-1 on 21.0.4+7-1 +jit [x86_64-OpenBSD]
  • OpenBSD armata 7.6 GENERIC.MP#338 amd64

and

  • Windows Server 2019 10.0 amd64 JVM 11.0.23+9-LTS Azul Systems, Inc.

Expected Behavior

  • Describe your expectation of how JRuby should behave, perhaps by showing how CRuby/MRI behaves.
  • Provide an executable Ruby script or a link to an example repository.
pp Dir[File.join('../../t', '**', 'site.css')]

# ruby 3.3.5 (2024-09-03 revision ef084cc8f4) [x86_64-openbsd]
#
# [ "../../t/sg6/public/sheets/site.css",
#   "../../t/sg6/war_20240407_1734/sheets/site.css" ]

Actual Behavior

pp Dir[File.join('../../t', '**', 'site.css')]

# jruby 9.4.9.0 (3.1.4) 2024-11-04 547c6b150e OpenJDK 64-Bit Server
#   VM 21.0.4+7-1 on 21.0.4+7-1 +jit [x86_64-OpenBSD]
#
# [ "./aux/t/sg6/public/sheets/site.css",
#   "./aux/t/sg6/war_20240407_1734/sheets/site.css"]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions