Sébastien Helleu
e2675f5afe
exec: replace calls to malloc by weechat_asprintf
2024-12-21 15:12:33 +01:00
Sébastien Helleu
bc675bd270
exec: fix execution of command with /exec -pipe (issue #2199 )
2024-10-14 13:31:50 +02:00
Sébastien Helleu
90c23ef418
exec: fix unexpected execution of command with /exec -o when the command starts with two command chars ( closes #2199 )
2024-10-13 11:15:19 +02:00
Sébastien Helleu
26c01e30c3
core, plugins: remove unneeded break after return
2024-06-10 15:10:25 +02:00
Sébastien Helleu
529a22e342
plugins: remove check of NULL pointers before calling weechat_unhook() (issue #865 )
2024-04-26 08:41:44 +02:00
Sébastien Helleu
5ad977a6ed
exec: remove check of NULL pointers before calling free() (issue #865 )
2024-04-25 20:59:24 +02:00
Sébastien Helleu
965beb37de
core: fix print of pointer values
2024-04-01 21:08:52 +02:00
Sébastien Helleu
431cf23a0c
exec: remove trailing space on buffers with free content when line numbers are not displayed
2024-03-08 08:19:20 +01:00
Sébastien Helleu
a6c509611a
exec: add missing exec tags in lines of buffers with free content ( closes #2086 )
2024-03-07 21:52:21 +01:00
Sébastien Helleu
eecb2a997e
core: update copyright dates
2024-01-01 22:29:58 +01:00
Sébastien Helleu
5d06ab76df
exec: remove trailing "M" (carriage return) in output of commands
...
Regression was indirectly caused by commit
d18f68e497 in core that allows to display all
control chars in buffers.
But the fix is in exec plugin: end of line in command output can now be "\r\n"
in addition to a single "\n".
2023-06-10 09:51:04 +02:00
Sébastien Helleu
fbeab26a35
core, plugins: replace calls to string_str(n)cmp by str(n)cmp (issue #1872 )
2023-01-28 15:14:24 +01:00
Sébastien Helleu
c07cf691ad
core, plugins: check that string parameters are not NULL in search functions (issue #1872 )
2023-01-28 15:14:22 +01:00
Sébastien Helleu
f0415c8ec3
core, plugins: make commands, hook command_run, completions and aliases case sensitive (issue #1872 )
2023-01-28 15:13:48 +01:00
Sébastien Helleu
202b4d82c0
plugins: set priority in calls to weechat_config_new (issue #1872 )
2023-01-28 15:13:34 +01:00
Sébastien Helleu
33bba784c3
core: update copyright dates
2023-01-01 14:54:35 +01:00
Sébastien Helleu
c44b79dce7
core: update copyright dates
2022-01-17 18:41:06 +01:00
Sébastien Helleu
dccf605e66
typing: add typing plugin
2021-07-04 13:27:32 +02:00
Sébastien Helleu
efc7a588d6
core: update copyright dates
2021-01-02 21:34:16 +01:00
Sébastien Helleu
08ebc99dea
Revert "exec: return NULL immediately if the task id is invalid"
...
This reverts commit dff1bf6f0f .
2020-12-05 19:57:24 +01:00
Sébastien Helleu
fa46a2fe2d
exec: add option "-oerr" to send stderr to buffer (now disabled by default) ( closes #1566 )
2020-10-11 16:33:50 +02:00
Sébastien Helleu
dff1bf6f0f
exec: return NULL immediately if the task id is invalid
2020-05-03 16:33:02 +02:00
Sébastien Helleu
5438f62f74
exec: fix use of same task id for different tasks ( closes #1491 )
2020-05-03 16:07:11 +02:00
Sébastien Helleu
feb6258910
core: update copyright dates
2020-01-04 10:41:26 +01:00
Sébastien Helleu
1d6714e428
core: auto disable upgrade process (command line option "--upgrade") if the file weechat.upgrade is not found
2019-06-24 21:35:37 +02:00
Sébastien Helleu
2b0057239b
core: update copyright dates
2019-01-01 15:40:51 +01:00
Sébastien Helleu
4712d0bb06
core: use https for links to GNU GPL license
2018-11-29 23:16:07 +01:00
Sébastien Helleu
ed4837b2f6
core: update copyright dates
2018-01-05 00:54:18 +01:00
Sébastien Helleu
aeeec38d6f
core: fix cast of time_t (to "long long" instead of "long") ( closes #1051 )
2017-08-12 18:36:45 +02:00
Sébastien Helleu
e579e86929
fset: shift plugins priority to insert fset plugin between buflist and fifo
2017-06-25 21:22:36 +02:00
Sébastien Helleu
54bf589d7d
core, plugins: fix conditions to insert elements in linked lists
...
This removes scan-build warnings about dereference of last_xxx null pointers.
2017-06-10 16:21:11 +02:00
Sébastien Helleu
c18be9da21
buflist: load plugin after some other plugins by shifting plugins priority
2017-03-25 14:18:19 +01:00
Sébastien Helleu
990c0bc121
exec: add option "-oc" in command /exec to execute commands in process output ( closes #877 )
...
The behavior of existing option "-o" is changed: now commands are NOT
executed (which is more secure by default).
2017-01-06 19:22:24 +01:00
Sébastien Helleu
501437af07
exec: fix memory leak in display of process output
2017-01-06 07:26:43 +01:00
Sébastien Helleu
705d86e684
core: update copyright dates
2017-01-01 11:32:04 +01:00
Sébastien Helleu
20c86db0d8
api: remove functions printf_date() and printf_tags()
2016-06-18 08:49:35 +02:00
Sébastien Helleu
cf6aca1619
core: add pointer in some callbacks ( closes #406 )
...
This pointer is the first argument received by callbacks, and the
existing argument "data" is now automatically freed by WeeChat when the
object containing the callback is removed.
With this new pointer, the linked list of callbacks in scripts has been
removed. This will improve speed of scripts (using a lot of hooks),
reduce memory used by scripts and reduce time to unload scripts.
Following functions are affected in the C API:
* exec_on_files
* config_new
* config_new_section
* config_new_option
* hook_command
* hook_command_run
* hook_timer
* hook_fd
* hook_process
* hook_process_hashtable
* hook_connect
* hook_print
* hook_signal
* hook_hsignal
* hook_config
* hook_completion
* hook_modifier
* hook_info
* hook_info_hashtable
* hook_infolist
* hook_hdata
* hook_focus
* unhook_all_plugin
* buffer_new
* bar_item_new
* upgrade_new
* upgrade_read
2016-03-21 18:11:21 +01:00
Sébastien Helleu
3330724574
core: update copyright dates
2016-01-01 11:09:53 +01:00
Sébastien Helleu
cf5501f69c
core: add priority in plugins to initialize them in order
...
Current order is: charset, logger, exec, trigger, aspell, alias, fifo, xfer,
irc, relay, guile/lua/perl/python/ruby/tcl, script.
2015-01-15 07:40:38 +01:00
Sébastien Helleu
a020c28ea6
core: update copyright dates
2015-01-01 09:23:23 +01:00
Sébastien Helleu
9358f076a3
exec: invert a condition to make code more readable
2014-08-09 17:43:45 +02:00
Sébastien Helleu
220682c1bc
exec: fix tag stdout/stderr used in command output
2014-04-03 13:11:03 +02:00
Sébastien Helleu
7bff59ed33
exec: remove comment
2014-04-03 13:08:53 +02:00
Sébastien Helleu
7c55cbb38b
exec: display output of commands in real time, add options -flush/-noflush in command /exec
2014-04-03 11:55:04 +02:00
Sébastien Helleu
6bf64e979d
exec: display command output even if process is killed
2014-04-03 09:19:30 +02:00
Sebastien Helleu
8deb0d3612
exec: add options -nf and -cl/-nocl in command /exec
...
-nf: create a new buffer with free content
-cl: clear new buffer
-nocl: append in new buffer
2014-03-25 09:25:47 +01:00
Sebastien Helleu
9a51449ee6
exec: add return code ("rc") in hashtable sent with option "-hsignal"
2014-03-16 10:08:08 +01:00
Sebastien Helleu
fcf5e84fa4
exec: add values "irc" and "weechat" for option "-color", replace "decode" by "auto"
2014-03-16 09:52:44 +01:00
Sebastien Helleu
ffba715ea1
exec: add options "-pipe" and "-hsignal" in command /exec
2014-03-16 09:37:45 +01:00
Sebastien Helleu
112398ee62
exec: fix compilation on OpenBSD
...
Looks like the variable name "stdout" is a problem on OpenBSD (macro?).
So "stdout" and "stderr" are renamed to "out" an "err".
2014-03-15 15:56:58 +01:00