Uploaded image for project: 'Karaf'
  1. Karaf
  2. KARAF-875

Unable to define escape the event designator '!' using '\!'

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.2.1, 2.2.2, 2.2.3
    • Fix Version/s: 2.2.6, 3.0.0
    • Component/s: karaf-feature
    • Labels:
      None

      Description

      If we try to register a features repository using:

      karaf@root> features:addurl mvn:http://localhost:9090!groupId/artifactId/3.0/xml/features

      We get the following error:
      Error executing command: !groupId/artifactId/3.0/xml/features: event not found

      The workaround is to previously register the repository in the etc/org.ops4j.pax.url.mvn.cfg file.

      It has to be fixed anyway.

        Issue Links

          Activity

          Hide
          gnt Guillaume Nodet added a comment -
          Show
          gnt Guillaume Nodet added a comment - This is now fixed in jline2 / karaf trunk with https://github.com/jline/jline2/commit/ce782843a6e53a9207d444a9314ec48ee99b30dc
          Hide
          gnt Guillaume Nodet added a comment -

          This is an expected behavior (which is the same as the unix bash one actually).
          THe '!' is an event designator and must be escaped using '\' or quotes.
          However, for some reason, it does not seem to work
          I'll fit it in jline asap for 3.0 and in karaf for 2.2.x.

          Show
          gnt Guillaume Nodet added a comment - This is an expected behavior (which is the same as the unix bash one actually). THe '!' is an event designator and must be escaped using '\' or quotes. However, for some reason, it does not seem to work I'll fit it in jline asap for 3.0 and in karaf for 2.2.x.

            People

            • Assignee:
              gnt Guillaume Nodet
              Reporter:
              jbonofre Jean-Baptiste Onofré
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development