Commit graph

118 commits

Author SHA1 Message Date
zawz
0be14815fa fix minify on empty case creating incorrect syntax 2021-06-29 15:34:53 +02:00
zawz
40aee8e3cf fix # not escaped on quote minify 2021-06-29 15:33:54 +02:00
zawz
e7d868de9e implement separated variables on assigns and cmdvars 2021-06-29 15:17:59 +02:00
zawz
38845e8652 multiple parsing fixes
- comment in pipeline throwing an error
- heredocument tries to parse quotes
- split pipeline/condlist combined with heredocuments don't parse correctly
2021-06-29 14:09:11 +02:00
zawz
c6c224bd12 cleanup 2021-06-29 14:07:49 +02:00
zawz
d8b3041e85 fix broken interactive tty on live-exec 2021-06-29 14:07:24 +02:00
zawz
8c3d693182 fixed incorrect debashified echo in combined string and variable 2021-06-28 17:18:34 +02:00
zawz
0e6fc1262d deduplicate parsing constant 2021-06-23 16:54:21 +02:00
zawz
3dc60ff7e3 fix non-quoted resolution of link commands 2021-06-23 16:47:30 +02:00
zawz
579a806c64 remove unused %include -e option 2021-06-23 16:46:57 +02:00
zawz
d461f625e8 fix escape sequences in quoted resolve 2021-06-23 15:53:08 +02:00
zawz
f80594d292 fix parsing stopping after heredocument 2021-06-23 15:52:41 +02:00
zawz
ca2839ec9c add --bash option 2021-06-22 10:52:28 +02:00
zawz
e5d0cf819d fix parsing errors on heredocument not aborting 2021-06-22 10:44:38 +02:00
zawz
bc846bcc56 fix lost file reference + incorrect unexpected token on herestring 2021-06-22 10:27:19 +02:00
zawz
56ed26ed96 fix parsing errors on variables in arithmetics 2021-06-22 10:01:29 +02:00
zawz
5d8ea952a2 fix segfaults and infinite loops on some parsing errors 2021-06-22 09:48:02 +02:00
zawz
052b2b92cb remove extra space on generate redirect-only commands 2021-06-21 16:56:23 +02:00
zawz
bb515636ff improve some error messages 2021-06-11 14:27:59 +02:00
zawz
f4d417406b fix debashify echo on expandable args 2021-06-04 14:04:25 +02:00
zawz
f9a3efce9a remove -J option from release 2021-05-28 16:35:24 +02:00
zawz
8b6a576713 improve echo debashifying 2021-05-28 16:31:17 +02:00
zawz
05723fe994 add color to error printing + reorganise options 2021-05-25 16:12:02 +02:00
zawz
9ddf23dd4b fix parsing error on ;; on newline 2021-05-25 11:55:02 +02:00
zawz
09186df7b1 remove useless parse catch 2021-05-21 16:49:01 +02:00
zawz
15ac04f505 implement delayed heredocument parsing 2021-05-21 16:36:24 +02:00
zawz
064c37b4ee fix error messages on bash 'function' 2021-05-19 16:56:46 +02:00
zawz
86a4d4a118 fix compacted case parsing bug 2021-05-19 16:48:23 +02:00
zawz
7379eaf180 internal rework: implement parsing context 2021-05-19 16:44:57 +02:00
zawz
c0f5e4ba27 further improve minimizing of cases 2021-05-11 18:06:48 +02:00
mateoferon
bc215fc994 code cleanup 2021-05-04 09:32:30 +02:00
zawz
58b95c45e7 update ztd option process calls 2021-04-30 13:24:43 +02:00
zawz
a02edd6c2c fix quote minify not escaping redirect operators 2021-04-16 16:37:59 +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
baadd1d927 debashify $RANDOM + _lxsh_random extension 2021-03-26 15:45:00 +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
ad78740636 minify quotes incorrectly removes quotes from ~ 2021-03-26 13:18:33 +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
zawwz
f0ed4e2602 implement missing parsing \ on newlines 2021-03-11 14:52:38 +01:00
zawz
a4d87c8165 error on escaped backticks 2021-03-05 16:25:43 +01:00
zawz
f5e5d32eca implement bash specific ${!var} 2021-02-28 14:15:36 +01:00
zawz
06eac33b0a fix echo debashify 2021-02-26 17:06:15 +01:00
zawz
e61a2e9c85 implement debashify on echo 2021-02-26 16:38:35 +01:00