[Pywikipedia-l] How do I insert an "!" (exclamation mark)?
Nicolas Dumazet
nicdumz at gmail.com
Tue Nov 25 02:37:39 UTC 2008
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 <chriswaterguy at appropedia.org>:
> 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
> Pywikipedia-l at lists.wikimedia.org
> https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l
>
>
--
Nicolas Dumazet — NicDumZ [ nɪk.d̪ymz ]
More information about the Pywikipedia-l
mailing list