in reply to Re: A Simple question
in thread A Simple question

Do you know why it prints: "11@p @" ?


$anarion=\$anarion;

s==q^QBY_^=,$_^=$[x7,print

Replies are listed 'Best First'.
Re: Re: Re: A Simple question
by George_Sherston (Vicar) on Sep 04, 2001 at 12:33 UTC
    I have absolutely no idea - no surprises there - but to my delight, when I run it it prints

    11 fO&vO/e

    .. except that instead of 'O' I get one of those machine code emoticons that I would render with <font face="wingdings">K</font> except I can't owing to circs beyond my control. I find this pleasantly inexplicable. Someone must know what's going on, and I'd love to know what.

    § George Sherston

      Perhaps it's 31331. andy. ;)
      Uh, oh. =)
      First, it spits out:
      /e: Event not found.

      The second time prints:
      s//svi freakA...

      Don't ask me why. And tell me, please.

      dani++

        "/e: Event not found," looks like a shell response -- if you are using the wrong kind of quotes or forgetting quotes altogether. Bash gives me "bash: !/e": event not found" -- which is a bit more helpful. The shell fails to expand the metacharacter '!'

        (Of course, bash accepts either quotes, which is also kinda helpful.)

        The second time -- did you do this with some shell function to recall previous command (arrow-up or C-p or whatever)? If so, perhaps the results of the '!!' are remembered as well, perhaps mangled by the subsequent failure?

        Let me guess -- did your previous command look something like "vi freakA"? :-)

        The Sidhekin, preferring Emacs to vi, but thankful it was not notepad :-)