Comments (6)
I agree it would be nice to have, but it requires someone to implement realpath(), which is non-trivial.
I will accept a patch...
from jimtcl.
I think that dirent provides the full path.
from jimtcl.
It doesn't. I will accept a working patch.
from jimtcl.
Meanwhile, the docs should warn that file normalize
may give a "Not implemented" error in this case. There may be other cases where a documented command won't actually be built into Jim; those should be documented as well.
This particular case happens in autosetup
where jimsh0
is built without first trying to discover whether realpath
exists, presumably because that would be rather meta: a platform-independent build system needing to make platform checks in order to build a tool provided in order to avoid a platform dependency. :)
(And yes, I know about autosetup's file-normalize
proc, presumably added to work around this very problem.)
from jimtcl.
It's true that there are many command that either won't be implemented, or may have a cut-down implementation based on selected features and the capabilities of the platform and compiler. I think that adding this information to the docs would be: incomplete, wrong most of the time, burdensome to maintain and get in the way of the the main content of the docs.
It may be useful to maintain this information separately, but this is still going to be a reasonable amount of work to implement and maintain. Contributions welcome.
from jimtcl.
incomplete, wrong, burdensome ...
Granted, but the current situation is that the Jim manual says it supports feature X, you try to use feature X, and it fails for no obvious reason.
Or the reverse: you're looking at Tcl docs, it tells you about file normalize
or something else that's only conditionally supported by Jim, so you try it and it says something unhelpful like "Not implemented." Then you go to the Jim docs to verify that the function doesn't exist, only to find that it says it does exist, without any caveats or conditions.
Either way, the only way to figure out why it failed on your own is to go spelunking through the code, or hope to dig up some previous posting about it on the web somewhere.
Contributions welcome.
I'll add it to the list. I'm in the middle of several projects on Fossil itself at the moment, and I shouldn't allow myself to be distracted.
I'd prefer to make these documentation improvements via Fossil. If you're willing to give me a developer login, you can email me a default password via my profile's email address, which I'll change to something strong and random after first login. I'd prefer either "tangent" or "wyoung" as a login name.
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.