Comments (4)
[jianhong@dhcp-12-125 ~]$ jimsh
Welcome to Jim version 0.77
. if 1 {puts "}$"}
$}
. if 1 { puts "}$" }
$
. exit
[jianhong@dhcp-12-125 ~]$ tclsh
% if 1 {puts "}$"}
extra characters after close-brace
% if 1 { puts "}$" }
extra characters after close-brace
from jimtcl.
Jim Tcl is quite permissive when parsing scripts, but this can lead to odd behaviour such as this.
I could make it somewhat more strict, thus giving an error in these cases.
But this would then mean tests such as this would fail (because the same parser is used by subst):
test subst-10.5 {break in a subst, parse error} {
subst {foo [break ;set bar baz ;set a {}{} ; stuff] bar}
} {foo }
Personally I'm fine with that.
from jimtcl.
Done
from jimtcl.
Got it. Thank you for explaining
from jimtcl.
Related Issues (20)
- Appveyor build warnings HOT 2
- Bug in reference counting or garbage collection HOT 8
- regexp: end of word match is broken. HOT 1
- Buffer overflow when building jimtcl with jimtcl installed HOT 1
- Confusing error message from oo.tcl
- CRTSCTS: requires _GNU_SOURCE or _BSD_SOURCE HOT 3
- Bug in regexp library may lead to out-of-bounds read HOT 1
- vi key bindings in jimsh HOT 3
- file.test fail on 32 bit systems HOT 5
- Jimtcl 0.82 test failed on some architectures HOT 9
- strncasecmp and strcasecmp in jim-signal.c w/o strings.h include
- Some return values ignored HOT 1
- configure does not/wrongly detect missing zlib and openssl with diet libc HOT 1
- Commenting JIM_OPTIMIZATION Breaks Build
- Provide a way to pass arbitrary strings to executed commands (likely with TIP 424) HOT 3
- Constant comparison HOT 1
- Feature request: add umask (or os.umask) command HOT 2
- documentation syntax examples are different than actual results HOT 6
- timer-3.2 test failure when building with tcl on osx HOT 3
- $(...) vs [expr {...}] HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jimtcl.