Giter Site home page Giter Site logo

Comments (6)

msteveb avatar msteveb commented on June 12, 2024

Yes, that doesn't look right. How is this?

If a backslash is followed by something other than one of the options described above,
then the backslash is dropped and the following character is treated as an ordinary character
without any special processing. For example, in the command

    set \*a \{foo

The first argument to set will be *a and the second argument will be {foo.

If an argument is enclosed in braces, then backslash sequences inside the argument
are parsed but no substitution occurs (except for backslash-newline): the backslash sequence
is passed through to the argument as is, without making any special interpretation of the
characters in the backslash sequence. In particular, backslashed braces are not counted
in locating the matching right brace that terminates the argument. For example, in the command

    set a {\{abc}

the second argument to set will be \{abc.

from jimtcl.

xoich avatar xoich commented on June 12, 2024

yes it looks right now. There seems to be a problem with escaping in the manual source. By the way, what format is the manual and how is it compiled? Thank you

from jimtcl.

msteveb avatar msteveb commented on June 12, 2024

It's asciidoc. You can see how it is built in the Makefile here:

Tcl.html: jim_tcl.txt ./make-index
    /usr/local/bin/jimsh ./make-index $> $^ | asciidoc --attribute footer-style=none -d manpage - >$@

Yes, backslashes are very troublesome

from jimtcl.

xoich avatar xoich commented on June 12, 2024

thanks. By the way, I really like the way that this man page succinctly explains the basics of Tcl. I wonder if it would be an idea to include it or point to it in the manual.

from jimtcl.

msteveb avatar msteveb commented on June 12, 2024

Possibly, but where to stop? And how to keep them in sync (if external links go away or change)?
I'm open to anyone who wants to help improve the documentation.

from jimtcl.

msteveb avatar msteveb commented on June 12, 2024

Fixed in #280

from jimtcl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.