Commit graph

85 commits

Author SHA1 Message Date
zawz
652e238c64 fix segfault on resolve in specific cases 2021-02-12 14:45:02 +01:00
zawz
f4907b4e4d fix missing indent on elif and case generation bug 2021-02-12 14:43:46 +01:00
zawz
2afd8b20c6 add -J option 2021-02-12 14:43:08 +01:00
zawz
6c3db57dde incomplete empty variable fix 2021-02-12 10:33:51 +01:00
zawz
8c89f25c21 fix empty variables deleted on --remove-unused 2021-02-12 10:21:57 +01:00
zawz
d9b42cd7a2 include 'getopts' as cmdvar 2021-02-12 10:19:09 +01:00
zawz
8e79e10e60 remove non-generation of redirects in empty commands 2021-02-10 13:55:58 +01:00
zawz
7d26587dd2 implement var_assign structure to cmdvar + added internal json structure generator 2021-02-05 14:42:46 +01:00
zawz
9342464590 internal: modify var_assign structure 2021-02-03 15:05:48 +01:00
zawz
53d8ce01ce implement missing operator replacements in debashify [[ 2021-02-03 15:01:47 +01:00
zawz
b56e7d09f9 fix shebang not resolved correctly on #!/bin/env 2021-02-03 14:59:39 +01:00
zawz
68f604de8e fix memory leak on variable set 2021-01-29 12:04:51 +01:00
zawwz
5968068989 replace [[ debashify 'echo|grep' into 'expr' 2021-01-20 16:59:27 +01:00
zawwz
c12ec601f1 implement [[ ]] debashify 2021-01-20 16:31:31 +01:00
zawwz
9c2f3c91f9 implement bash specific var=() parsing 2021-01-20 12:03:32 +01:00
zawwz
7d54b67b37 update doc 2021-01-20 11:50:24 +01:00
zawwz
2ffe4ddf2f implement internal variable structure 2021-01-20 11:49:32 +01:00
zawwz
7114a39fe3 implement arithmetic parsing and processing 2021-01-15 16:34:47 +01:00
zawwz
1b0c97f5bb implement debashify on <<< herestring 2021-01-08 15:57:42 +01:00
zawwz
142a91e68a restructure struc functions 2021-01-08 15:03:25 +01:00
zawwz
6f35028e84 fix variable processing broken on debashified process substitution 2021-01-08 12:02:04 +01:00
zawwz
51b2648c94 Unify shebang on debashify 2021-01-08 11:45:28 +01:00
zawwz
f99f40b3e8 Implement debashify of <() (process substitution) 2021-01-08 11:38:25 +01:00
zawwz
576ce0c4ed fix issue on <() parsing + add debug NO_PARSE_CATCH 2021-01-08 11:07:20 +01:00
zawwz
2a86e06551 Remove trailing space on empty commands 2021-01-06 16:46:43 +01:00
zawwz
2b1e7c008b restructure struc object extensions 2021-01-06 16:37:08 +01:00
zawwz
44d71155cc Add --no-shebang option 2021-01-06 14:49:20 +01:00
zawwz
5944fa7cc6 missing shebang change on --debashify 2021-01-06 14:38:27 +01:00
zawwz
6a58f345b8 Add missing recursive call on variable manipulations 2021-01-06 12:18:11 +01:00
zawwz
36dfd9266e Implement <() bash process substitution 2021-01-06 12:15:31 +01:00
zawwz
c199969b63 first debashify implementation: replace &> and >& redirects 2021-01-06 11:10:45 +01:00
zawwz
afa07b3c5e Prepare debashify: implement bash specific parsing 2021-01-06 10:14:08 +01:00
zawwz
4e137ab35e Fix generate bug on empty commands 2021-01-06 10:07:04 +01:00
zawwz
46047f2a88 Reorganize secondary option processing to run before first parse 2021-01-06 10:06:04 +01:00
zawwz
2622103cf7 increment dev version 2021-01-06 09:59:28 +01:00
zawwz
4dc5c8f317 update doc 2020-12-11 13:40:29 +01:00
zawwz
ebce56c29c fix bug on minimizing collisions on 'unset' with bash 2020-12-11 12:28:09 +01:00
zawwz
ed2ebba6ff Update install doc 2020-11-27 11:47:41 +01:00
zawwz
3811cdae80 Update WIP doc 2020-11-27 11:46:17 +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
269427af3d doc: update missing features 2020-11-20 10:44:23 +01:00
zawz
6bd91bde7f fix typo 2020-11-20 10:42:48 +01:00
zawz
aeef5a3554 Complete missing doc 2020-11-20 10:42:30 +01:00
zawz
71bb883cba Fix missing recursive call on redirs in blocks 2020-11-19 17:05:37 +01:00
zawz
806580ac2a Fix gcc compile bug due to external defined inline 2020-11-19 16:53:41 +01:00
zawz
f527920a2d Increment version 2020-11-19 16:51:50 +01:00
zawz
1a5bbd7986 implement redirect parsing and minimizing 2020-11-19 16:51:26 +01:00