Sébastien Helleu
5756892203
exec: fix minimal length of unquoted string
2018-05-19 08:14:52 +02:00
Sébastien Helleu
d14f925123
exec: add note about piped commands in /help exec for option -sh
2018-02-07 19:59:38 +01:00
Sébastien Helleu
ec169f535d
core: reinitialize config file pointer to NULL after an error on section creation
2018-01-14 21:47:18 +01:00
Sébastien Helleu
ed4837b2f6
core: update copyright dates
2018-01-05 00:54:18 +01:00
Sébastien Helleu
5aab494dd6
core, plugins: check return code of strftime function
2017-09-23 15:06:28 +02: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
9bad3f44db
core: remove value for first #define in headers, add "PLUGIN" in plugin headers
2017-08-10 20:05:16 +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
Simmo Saan
824610d28b
exec, fifo, irc: remove unused #define-s
2017-06-03 15:58:07 +03: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
1361602ea5
tests: fix compilation of tests on FreeBSD 11
...
Some includes were missing in .h files, and the tests must be linked
with intl and execinfo on FreeBSD.
2017-01-13 20:57:59 +01:00
AYANOKOUZI, Ryuunosuke
add0be28d9
exec: update help descriptions for command /exec to keep compatibility between options
...
Related-Bug: #877
2017-01-07 07:56:30 +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
2da58ea2b7
exec: fix example in /help exec
2016-03-13 18:29:19 +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
0cd2aff765
core: use https for WeeChat URLs
2014-12-13 09:16:09 +01:00
Sébastien Helleu
1ef3237b6b
api: return value in function command(), remove WeeChat error after command callback if return code is WEECHAT_RC_ERROR
2014-11-22 08:14:29 +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
7618fdd240
core: use lower case for CMake keywords
2014-04-12 18:00:27 +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
a470a1a890
exec: kill all processes using an exec buffer that is being closed
2014-04-03 12:24:20 +02:00
Sébastien Helleu
d055d4a2bd
exec: add examples with "tail -f" and "-kill" in /help exec
2014-04-03 12:22: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
Sébastien Helleu
d7d91d6cf3
exec: fix typo in /help exec
2014-03-30 12:25:34 +02:00
Sebastien Helleu
babb3abff4
exec: allow clear of new buffers with /buffer clear
2014-03-25 10:56:05 +01: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
9b380a935b
core: fix use of reserved C identifiers in headers ( closes #31 )
2014-03-19 10:39:13 +01:00
Sebastien Helleu
30de830982
exec: don't use shell by default when executing commands (for security reasons)
...
It is possible to force shell by default with this command:
/set exec.command.default_options "-sh"
2014-03-17 14:59:00 +01:00
Sebastien Helleu
6981a17bbb
exec: add example with option "-pipe" in /help exec
2014-03-16 10:29:07 +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
11f2f5d3e4
exec: do not create/switch to buffer with option "-bg"
2014-03-15 19:48:37 +01:00
Sebastien Helleu
4245de528e
exec: add examples in /help exec
2014-03-15 19:40:15 +01:00
Sebastien Helleu
ff636cae89
exec: fix typo in /help exec
2014-03-15 19:22:28 +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
fff24d0a23
core: update translations
2014-03-15 15:08:49 +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
d791e76e1b
exec: switch to exec buffer even if it is already opened
2014-03-13 14:50:38 +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