Commit graph

43 commits

Author SHA1 Message Date
zawwz
92d4caf5c0 code cleanup 2021-11-03 11:41:42 +01:00
zawz
04ef171515 optimize minify operations 2021-08-19 17:48:46 +02:00
zawwz
34d5c059e0 remove reference to minify-quotes 2021-07-24 10:01:19 +02:00
zawwz
251e70e869 move minify-quotes to minify 2021-07-24 08:51:12 +02:00
zawwz
8c63b9a35e minify single-block braces and subshells 2021-07-24 08:35:55 +02:00
zawwz
4c984bdc39 minify empty variable manipulation 2021-07-24 08:26:24 +02:00
zawz
ca2839ec9c add --bash option 2021-06-22 10:52:28 +02:00
zawz
f9a3efce9a remove -J option from release 2021-05-28 16:35:24 +02:00
zawz
09186df7b1 remove useless parse catch 2021-05-21 16:49:01 +02:00
zawz
7379eaf180 internal rework: implement parsing context 2021-05-19 16:44:57 +02:00
mateoferon
bc215fc994 code cleanup 2021-05-04 09:32:30 +02:00
zawz
1f75f18fba add string parse minifying 2021-04-16 16:36:02 +02:00
zawz
a1b2d74940 add --no-extend option + rename --help-lxsh-commands to --help-extend-fcts 2021-03-26 15:59:22 +01:00
zawz
6828dd7bae restructure internal shellcode structure 2021-03-26 14:58:17 +01:00
zawz
588aae09e9 implement lxsh commands + reorder processing order 2021-03-26 13:41:04 +01:00
zawz
13c0d79bad rename minimize to minify + prepare lxsh commands + add reserved variables 2021-03-20 11:09:02 +01:00
zawz
75972d166b fix segfault when no argument 2021-03-18 15:56:01 +01:00
zawz
472fd5306c fix -- not working correctly 2021-03-18 15:51:52 +01:00
zawwz
e2e2300337 implement live parse+execution 2021-03-18 15:35:33 +01:00
zawwz
800ee2b651 implement quote minimizing as --minimize-quote option instead of -m 2021-03-11 15:02:54 +01:00
zawwz
8b701328bc implement quote minimizing 2021-03-11 14:54:15 +01:00
zawz
2afd8b20c6 add -J option 2021-02-12 14:43:08 +01:00
zawwz
c12ec601f1 implement [[ ]] debashify 2021-01-20 16:31:31 +01:00
zawwz
576ce0c4ed fix issue on <() parsing + add debug NO_PARSE_CATCH 2021-01-08 11:07:20 +01:00
zawwz
44d71155cc Add --no-shebang option 2021-01-06 14:49:20 +01:00
zawwz
c199969b63 first debashify implementation: replace &> and >& redirects 2021-01-06 11:10:45 +01:00
zawwz
46047f2a88 Reorganize secondary option processing to run before first parse 2021-01-06 10:06:04 +01:00
zawwz
6620fb42ff Add --unset-var option 2020-11-27 11:03:55 +01:00
zawwz
b4a99d366d Restructure files: separate processing utilities 2020-11-27 10:32:32 +01:00
zawz
7e5c505a3f Extend minimize and processing
+ Add --no-exclude-reserved option
+ Add --list-var-dev and --list-var-call options
+ --remove-unused now also removes unused variables
+ --remove-unused now removes recursively
2020-11-25 16:55:35 +01:00
zawz
b3f02ce06d Optimize var operations on get argument var definitions 2020-11-20 22:19:28 +01:00
zawz
1a195e777c Fix always exit 2020-11-14 17:32:09 +01:00
zawz
144ff45830 Add version option 2020-11-14 17:21:47 +01:00
zawz
78d3595989 Fix broken autodetect execution 2020-11-13 16:49:34 +01:00
zawz
a0155991e3 Performance optimizations
- Replaced some exec() calls with functions
- Removed resolved code being resolved again
- Removed empty string subargs inserted upon parsing
2020-11-13 15:18:30 +01:00
zawz
c971b4e424 Major rework
~ Altered internal structure
~ Changed processing method to recursive function
~ Changed %include/%resolve
+ Output mode now reads multiple arguments
+ Toggleable include/resolve
+ Added variable and function processing (list/minimize)
- Remove some options for %include/%resolve
~ Many minor behaviour changes
2020-11-06 16:35:36 +01:00
zawz
26f9ee60c4 Fix segfault on -e with no arguments 2020-10-21 15:58:06 +02:00
zawz
6350e1cfef Major rework
+ Move to pointers internally (performance improvement)
+ Polymorphic internal classes (performance improvement)
+ Add if/for/while parsing
2020-10-20 14:41:59 +02:00
zawz
374647e30a Fix multi case value 2020-09-30 15:59:40 +02:00
Mateo Feron
72a77c7088 Improve direct execution
+ Add -o option
+ Add shebang analysis
+ Implement missing cleanup
2020-09-02 12:03:07 +02:00
Mateo Feron
577a1aef94 Improve parsing errors 2020-09-01 17:11:21 +02:00
zawz
af1de6d8fb Extend options
+ Add global -E option
+ Add %include -e option
~ Move -C option to %include and %resolve
+ Improve comments and messages
2020-08-28 14:46:42 +02:00
zawz
ca41c27246 Init sources 2020-08-28 10:57:28 +02:00