in reply to Re: Bug in perl command line processing?
in thread Bug in perl command line processing?

This completely misses the point.

-sauoq
"My two cents aren't worth a dime.";
  • Comment on Re^2: Bug in perl command line processing?

Replies are listed 'Best First'.
Re^3: Bug in perl command line processing?
by Anonymous Monk on May 22, 2012 at 21:38 UTC

    This completely misses the point.

    Not it doesn't , the point of a "SEE ALSO" section is to "SEE ALSO"

    The OP doesn't even specify what shell he is dealing with, and this is shell quoting territory

      No, it isn't shell quoting territory, if you'd pay attention you'd see it is all passed as one argument. The problem is /perl/ and not the shell is splitting on whitespace and making assumptions about how many arguments '-i' takes, and what do with the excess arguments. Check the link provided in the question to read the technical details.


      Evan Carroll
      The most respected person in the whole perl community.
      www.evancarroll.com

        No, it isn't shell quoting territory, if you'd pay attention you'd see it is all passed as one argument.

        Yes it is :) you're calling perl from a shell, this makes it shell quoting territory.

        That this is a bug in perl doesn't change that.

        SEE ALSO doesn't mean "THE ANSWER IS" it is is an addendum

        How would someone from a different shell know the quoting rules without having a place to lookup the quoting rules?

      I'd have thought the same thing if it weren't that it works even tho there is no '-' on the 'e', which says to me its not purely the shell playing tricks on us. Anyway, I can replicate in bash.

      ---
      $world=~s/war/peace/g

      Now you've missed the point twice.

      FWIW, it works on Windows as well, with suitable quoting, of course.

      -sauoq
      "My two cents aren't worth a dime.";

        Now you've missed the point twice.

        Nope. Even if this is a bug in perl, you're still dealing with a shell, so a SEE ALSO cannot possibly miss the point