For characters I could not properly insert in the command line (had issues
with both line breaks in certain situations and with the (C) copyright
symbol), I created a Template on my Wiki which included just that character,
and used {{subst:TemplateName}}, where TemplateName was something I could
easily type in the command line (e.g. {{subst:\n}} and {{subst:(C)}}). You
could try creating a Template:ExMark which has just a ! in it (and
<noinclude> bits for documentation and categorization), and then use
{{subst:ExMark}}.

---------- Forwarded message ----------
From: "Chris Watkins" <[EMAIL PROTECTED]>
To: "Pywikipedia discussion list" <[email protected]>
Date: Tue, 25 Nov 2008 03:12:23 -0600
Subject: Re: [Pywikipedia-l] How do I insert an "!" (exclamation mark)?
Thanks, Nicolas - it worked perfectly.

On Mon, Nov 24, 2008 at 20:37, Nicolas Dumazet <[EMAIL PROTECTED]> wrote:

> haha =)
>
> An exclamation mark has a special meaning for some terminals, related
> to command history. If I'm right, the command "!n" where n is an
> integer repeats the n-th last command; and "blabla!<tab> looks for
> older commands matching blabla.
>
> Anyway. I had the same problem. The only workaround I found was to
> disable the history search features in bash :
> Add :
> set +o histexpand
> at the bottom of ~/.bashrc,
> source ~/.bashrc
> and your problem should be fixed.
>
> Does anyone has a better workaround ?
>
>
> 2008/11/25 Chris Watkins <[EMAIL PROTECTED]>:
> > When I used replace.py and tried to use an "!" in the replace text, it
> > replaced it with a weird string of text (actually part of a replace
> command
> > I ran weeks ago).
> >
> > I've been able to fix everything except getting the ! where it should be.
> >
> > If I run:
> > python replace.py -cat:"The Transition Handbook" "-- Please do not remove
> "
> > "!-- Please do not remove "
> >
> > ...t doesn't change anything.
> >
> > If I try a backslash before the exclamation mark, "\!", it prompts to
> insert
> > it including the backslash.
> >
> > How do I just insert a "!"? I tried looking online but found nothing.
> >
> > Thanks
> > Chris
> >
> > --
> > Chris Watkins (a.k.a. Chriswaterguy)
> >
> > Appropedia.org - Sharing knowledge to build rich, sustainable lives.
> >
> > blogs.appropedia.org
> >
> > I like this: five.sentenc.es
> >
> > _______________________________________________
> > Pywikipedia-l mailing list
> > [email protected]
> > https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l
> >
> >
>
>
>
> --
> Nicolas Dumazet — NicDumZ [ nɪk.d̪ymz ]
> _______________________________________________
> Pywikipedia-l mailing list
> [email protected]
> https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l
>



-- 
Chris Watkins (a.k.a. Chriswaterguy)

Appropedia.org - Sharing knowledge to build rich, sustainable lives.

blogs.appropedia.org

I like this: five.sentenc.es

_______________________________________________
Pywikipedia-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l
_______________________________________________
Pywikipedia-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l

Reply via email to