-
Notifications
You must be signed in to change notification settings - Fork 123
intercept open does not work #847
Comments
And it has compile warnings:
|
|
Btw. A small wrapper script such as |
just tried it on all my boxes (all running zsh), and for me it works on all. for me even |
i've just built and installed it on a clean debian stable box running
|
Seems to have nothing to do with zsh config (same problem in zsh -f) nor zsh itself (same problem in bash), but I can reproduce it on another machine too:
I think the most likely problem is some typo in the example (I already fixed two problems), please try to source the example and write some shellrecorder tests. |
i really can't reprocude the problem here. on none of my boxes.
|
Ok, the problem is that the key Please update the example and add shell recorder tests. |
(and fix warnings), then we can close the issue |
I hope @sanssecours finds a solution for such problems, different behaviour in storage plugins is really a pain. |
is it ok if i just use pragma to turn warnings off for those 2 lines ? it seems like the behaviour/use of dlsym is actually undefined behaviour according to the man page. |
There are other places that already fix the problem. You can use memcpy or a union. |
When doing what the example says, intercept does not intercept (on debian jessie):
open
is correctly intercepted, the problem seems to be the matching with~
, maybe zsh has some different behaviour? Can you also trykdb export
? Giving full paths everything works.The text was updated successfully, but these errors were encountered: