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
Sebastien Helleu
c92b186e01
exec: rename value "off" to "ansi" for option "-color" in command /exec
2014-03-15 12:43:06 +01:00
Sebastien Helleu
298f0211c1
exec: add option "-color" in command /exec (decode ANSI colors by default)
...
The ANSI colors are decoded by default to WeeChat colors (for local display),
or IRC colors (if output is sent to buffer with "-o").
2014-03-15 11:30:08 +01:00
Sebastien Helleu
7b31d397b7
exec: add missing empty lines in output of commands
...
The function weechat_string_split() collapses many separators (here "\n"),
so empty lines were removed and not displayed.
For example, if output is "Line1\n\nEnd\n", the empty line between "Line1"
and "End" was not displayed.
2014-03-13 12:08:33 +01:00
Sebastien Helleu
0eca1fd20b
exec: add options "-rc"/"-norc" (display return code) in command /exec
2014-03-13 07:56:20 +01:00
Sebastien Helleu
ed6ea18c30
exec: add options "-ln"/"-noln" (line numbers) in command /exec
2014-03-12 19:52:04 +01:00
Sebastien Helleu
e8de096625
exec: add options "-n"/"-ns" in command /exec (display output in a new buffer)
2014-03-12 11:54:00 +01:00
Sebastien Helleu
281cfdda94
exec: add option "-bg" in command /exec
2014-03-11 17:51:06 +01:00
Sebastien Helleu
3f50356a14
exec: remove error prefix in case of unexpected end of a command
2014-03-11 17:49:49 +01:00
Sebastien Helleu
ee2cb329f4
exec: display command return code after output (stdout/stderr)
2014-03-11 17:49:49 +01:00
Sebastien Helleu
9355c867ed
exec: add tag "exec_rc" for line with command return code, remove empty line displayed before
2014-03-11 17:49:49 +01:00