Sitelet https://github.com/jruby/jruby/issues/6415
Skip to content

Passing -I<path> results in non-canonicalized path in $LOAD_PATH #6415

Description

@palkan

Environment Information

Provide at least:

  • JRuby version (jruby -v) and command line (flags, JRUBY_OPTS, etc):
    jruby 9.2.13.0 (2.5.7) 2020-08-03 9a89c94 OpenJDK 64-Bit Server VM 25.265-b01 on 1.8.0_265-b01 +jit [linux-x86_64]

  • Operating system and platform (e.g. uname -a):
    Linux 2a7b0b32d7b2 4.9.125-linuxkit break script engine #1 SMP Fri Sep 7 08:20:28 UTC 2018 x86_64 GNU/Linux

Expected Behavior

$ ruby -v
ruby 2.8.0dev (2020-07-16T02:49:09Z master 1fb4e28002) [x86_64-linux]

$ ruby -Ilib:test -e 'p $LOAD_PATH.grep(/^lib/)'
[]

Actual Behavior

$ ruby -v
jruby 9.2.13.0 (2.5.7) 2020-08-03 9a89c94bcc OpenJDK 64-Bit Server VM 25.265-b01 on 1.8.0_265-b01 +jit [linux-x86_64]

$ ruby -Ilib:test -e 'p $LOAD_PATH.grep(/^lib/)'
["lib"]

Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions