Lazula
a64025db4d
Fix yt command
2022-03-04 00:27:39 +01:00
Lazula
55bfe93735
Fix problems in l command
2022-03-03 09:31:08 +01:00
Lazula
b5a26e0c0c
Significantly reduce memory leaks in anal tests ( #19759 )
2022-02-27 14:57:58 -06:00
pancake
3d438c510e
Fix parsing of 'ra?' and 'r0x' subcommands ##shell
2022-02-09 05:50:22 +01:00
Lazula
45160a5854
Add r_core_help_match() to get help for a specific command ##api
...
* Add exact argument to help_match
2022-01-23 23:40:15 +01:00
pancake
fd6f3732f2
Handle spaces in the 'r-' and 'r+' resize commands
...
* 'r-3' == 'r- 3' == 'r -3'
* 'r+3' == 'r+ 3' == 'r +3'
2022-01-23 20:20:33 +01:00
Sergi Àlvarez i Capilla
346ac7ab76
Fix warning when building without fork support
2022-01-20 18:11:15 +01:00
Sergi Àlvarez i Capilla
c3310c5ae1
Fix UAF spotted by asan
2022-01-20 15:49:15 +01:00
Lazula
852dc0eeaa
Remove const from rels to prevent r_list_free complaint
2022-01-15 01:11:21 +01:00
Lazula
36bead7154
Free relocs in foreach3list()
2022-01-15 01:11:21 +01:00
Lazula
1e3535299c
Free recursive help string
2022-01-15 01:11:21 +01:00
Lazula
26cfc906e4
Ignore trailing backslash in unescape_special_chars() ( #19585 )
2022-01-14 22:44:10 +01:00
Sergi Àlvarez i Capilla
f21bc55f27
Fix assert in 'v.'
2022-01-07 01:50:05 +01:00
Sergi Àlvarez i Capilla
5630b7f082
Handle .wren and .qjs file extensions without plugins installed
2022-01-06 23:37:02 +01:00
Lazula
4a1ef1de44
Remove undocumented and unlogged seek behavior when no alias match is found
2021-12-22 23:36:25 +01:00
pancake
e6f2cd0b2a
Remove trailing spaces ( #19460 )
...
$ git grep ' $' | grep -v ^test/ | cut -d : -f 1 | sort -u > /tmp/trailing
$ for a in `cat /tmp/trailing` ; do sed -i -e 's/ *$//' $a ; done
2021-12-02 17:39:59 +01:00
Sergi Àlvarez i Capilla
f50d5c4165
Fix r2pipe.cmd("Z") when command fails returns no output ##r2pipe
2021-11-30 19:54:57 +01:00
condret
44e3ff56ce
Remove r_io_map_new from public API ##io
2021-11-03 17:55:39 +01:00
Sergi Àlvarez i Capilla
9ae0675c2e
Handle the .r2s extension for visual slides ##visual
2021-10-27 12:35:06 +02:00
Sergi Àlvarez i Capilla
5f33adbd83
Implement RCore.visual_slides() ##visual
...
* Add clearkeys() helper and r2slides example
2021-10-27 01:54:43 +02:00
pancake
338fd7fd2c
Add more types and skip some parse errors in to
##types
2021-10-13 01:14:51 +02:00
Lazula
d12be9e614
Fix new defects and an overread
...
* Fix global variable overread in r_str_ss()
* Fix memory leak in grep ASCII art ~?ea
* Fix memory leak in @%
* Fix use-after-free in r_io_bank_del_map()
2021-10-12 21:53:05 +02:00
pancake
28b0543825
Honor console width in ls and fix lsj,lsq,lse ##shell
...
* Move console_width logic out from r_syscmd_ls ##api
* Fix tests
2021-10-09 03:26:47 +02:00
pancake
eb8e8a6503
Add 'dir' command as an alias for 'ls' ##shell
2021-10-09 03:26:47 +02:00
pancake
a90afe7e7c
Permit ending '%' in the env keys for % and @% ##shell
2021-10-09 03:26:47 +02:00
Lazula
d1631b8d34
Multiple alias improvements
...
* Add proper hashtable functions in RCmdAlias to prevent memory leaks
* Fix off-by-one error in alias name processing
* Don't allow 0-length aliases
* Fix memory leak in r_cmd_alias_set_raw() when malloc fails and add
null checks to other alias set functions
* Document intended use of strlen() result for buffer size
2021-10-06 22:24:42 +02:00
Lazula
b14c523bae
Improve alias string detection
2021-10-04 18:04:00 +02:00
Lazula
25fc71570c
Overhaul alias system
...
Aliases now use a hashtable. Aliases are now either commands or data.
Data aliases may be strings or raw bytes.
* Expand alias API
* Remove remote aliases - remote commands can still be aliased normally
* Update alias help text
* Fix an alias test and add new tests
* Add r_str_escape_raw() for null-safe escaping of unprintable characters
* Remove command to print alias without newline
* Fix dif command opening files as strings
2021-10-04 09:30:37 +02:00
Lazula
6a04be09ed
Add r_core_cmd_tobuf()
2021-10-04 09:30:37 +02:00
pancake
f3563759ef
Move more context fields out of the globals ##cons
...
* Fix |H |T and | suffixes when webserver in background
* Ignore noflush in the RCons.flush() call
2021-09-30 01:04:03 +02:00
thymol0
6513ffa59f
Move the console flushing decision to the console context ##cons
2021-09-29 10:46:37 +02:00
pancake
27beba4761
Fix #19100 - RCons.isatty() renamed to RCons.is_tty()
2021-09-25 12:43:59 +02:00
pancake
5e0eb548da
Better subcommand error messages for @@, @@@ and @@@@ ##shell
2021-09-25 06:59:26 +02:00
pancake
d0044b9e95
Fix warning and add more tests for the foreach operators
2021-09-23 13:15:41 +02:00
pancake
5ee6961f0f
Add @@@R to iterate over relocs ##shell
2021-09-23 13:15:41 +02:00
pancake
d092285bff
Fix #19129 - RBin.getImports() list is unowned
2021-09-23 13:15:41 +02:00
pancake
34d5c13776
Fix last covs
2021-09-17 01:59:44 +02:00
pancake
32f9826dd3
Split @@@ foreach logic into collect and iterate ##shell
2021-09-15 20:16:10 +02:00
pancake
01b2f5718f
scr.loopnl is bool
2021-09-15 17:30:06 +02:00
pancake
f5158c0834
Add support for REXX scripting ##lang
2021-09-15 00:22:06 +02:00
RHL120
c3293782c0
Add an rmrf function which does rm -rf ##util
2021-09-05 13:37:38 +02:00
pancake
775581cc97
Sort the output of ls
( #19034 )
2021-08-30 16:21:24 +02:00
pancake
913e23b2dd
Write proper help message for the ls and less commands ##shell ( #19033 )
...
* Also available via the recursive help
2021-08-30 14:16:08 +02:00
pancake
0c1155211a
Expose a wrapper for r_w32_CancelSynchronousIo()
2021-08-27 13:04:55 +02:00
pancake
9912c3ee0b
Check if user interrupted the shell command in nested macros ##shell ( #19015 )
2021-08-25 16:20:50 +02:00
pancake
2284394120
Honor bool in io.va, scr.interactive, scr.prompt and cfg.fortunes ##core
2021-08-18 12:09:20 +02:00
pancake
67b8af8f5b
Fix the windows debugger and make it more stable ##debug
2021-08-18 01:41:30 +02:00
pancake
09033f4406
Honor faster ^D on interactive execution path ##cons ( #18983 )
2021-08-14 21:06:52 +02:00
pancake
9a2636b32b
Remove other useless and incomplete treesitter leftovers and get +400 new commands in the recursive help ##shell
2021-08-14 18:28:20 +02:00
pancake
cc44d30309
Fix some issues spotted by msvc ( #18899 )
2021-07-15 17:24:05 +02:00