Commit graph

358 commits

Author SHA1 Message Date
Jérôme Guélen
ce24304e34
Expansion: post-rebasing 2025-03-21 10:10:30 +01:00
dd4f109d38
fix(worddesc_create): need to initialize mark_string 2025-03-21 10:10:17 +01:00
63df02aec5
fix: does not compile 2025-03-21 10:09:32 +01:00
Jérôme Guélen
174449cde7
Expansion: correction of type conflict
Tests done.
2025-03-21 10:09:32 +01:00
Jérôme Guélen
0703fece88
Expansion: Added a brute force word search
Just in case
2025-03-21 10:09:32 +01:00
Jérôme Guélen
63f94dc215
Expansion: Put back to norm in word search 2025-03-21 10:09:32 +01:00
Jérôme Guélen
768f1b3cb6
Expansion: Added research of words in text
An implementation of the Knuth, Morris and Pratt algorithm for the research
of the first occurrence of a word in a text.
2025-03-21 10:09:32 +01:00
Jérôme Guélen
fa383c4f17
Expansion: variable substitution V1 attempt
Norm has been checked, test are not up to date. Wildcard management and
filename expansions still to be done.
2025-03-21 10:09:28 +01:00
Jérôme Guélen
e348040ea4
Subst: A norm NON-compliant and incomplete version
The code does not update flags yet and is to be refactored to conform to the
norm.
Tests required but needing a new version of the wordsplitting code.
2025-03-21 10:07:32 +01:00
Jérôme Guélen
2dd54e2827
Exp : Quick logic fix 2025-03-21 10:04:25 +01:00
Jérôme Guélen
ed1d8b18fe
Expansion : text replacement in a string 2025-03-21 10:04:25 +01:00
d30a39d907
here_doc: prepare handling for variable expansion in here_doc
This is waiting on #23 to be merged to work
2025-03-11 14:58:13 +01:00
47f449d804
here_doc: handle unexpected EOF 2025-03-11 14:58:13 +01:00
7c6d061c6c
here_doc: handle input with correct end marker 2025-03-11 14:58:13 +01:00
a6d1386574
here_doc: handle input with only an end marker 2025-03-11 14:58:13 +01:00
442aa85e84
here_doc: null marker returns error 2025-03-11 14:58:13 +01:00
99babbf6d2
here_doc: generate random filenames 2025-03-11 14:58:13 +01:00
0486368a07
buffer: add ft_buffer_to_charptr function 2025-03-11 14:58:13 +01:00
cae2dfe4d6
here_doc: basic setup 2025-03-11 14:58:13 +01:00
588faccf69
norm: fix small norm error 2025-03-11 14:58:13 +01:00
d196649106
redirection parsing: handle other types of redirection 2025-03-11 14:58:13 +01:00
47ac767f2a
redirection parsing: check for null in arguments 2025-03-11 14:58:13 +01:00
d9dfac106d
redirection parsing refactor: put redirection found actions in subroutine 2025-03-11 14:57:58 +01:00
5df876bba3
redirection parsing: detect malformed redirection 2025-03-10 16:57:02 +01:00
06dd3c3e83
redirection parings: handle redirections not at start 2025-03-10 16:34:15 +01:00
4116c2d92f
wordlist: add destroy_idx and pop_idx functions 2025-03-10 16:08:59 +01:00
ad5eb4cc34
wordlist: add a function to debug-print a wordlist 2025-03-10 15:10:18 +01:00
2a1660865d
redirection parsing: use redir_type_from_worddesc 2025-03-10 15:10:18 +01:00
e7946b4192
redirection parsing: add missing null check 2025-03-10 15:10:18 +01:00
b0439c9d7d
redirection parsing: get redirection type from worddesc 2025-03-10 15:10:18 +01:00
a20ea8315d
redirection parsing: handle > at start of wordlist 2025-03-10 15:10:18 +01:00
541bad80c0
redirection parsing: add utility functions for t_redir_list 2025-03-10 15:10:18 +01:00
b0c34f36ef
redirection parsing: add utility function for t_redirection 2025-03-10 15:10:18 +01:00
cf517bb7f8
redirection parsing: define types in own files 2025-03-10 15:10:18 +01:00
06ebcf132a
redirection parsing: handle commands with no redirections 2025-03-10 15:10:18 +01:00
42bccd0a06
fix: wrong check for malloc failure leads to failing tests 2025-03-10 15:07:13 +01:00
4fa56b45b6 cmdlist parse: fix issues reported by @Odroth 2025-03-10 13:22:29 +00:00
7595562597 norm: put cmdlist_builder functions in correct file 2025-03-10 13:22:29 +00:00
f3a38fb430 norm: remove print_backtrace 2025-03-10 13:22:29 +00:00
d30db395a0 cmdlist parsing: ensure parsing works for a single simple command 2025-03-10 13:22:29 +00:00
4c37ec5188 tests: put test back in a sensible order 2025-03-10 13:22:29 +00:00
e6a9010362 tests: make leak_check do nothing when compiled without LSAN 2025-03-10 13:22:29 +00:00
7102998dce leak: resolve the rest of the memory leaks 2025-03-10 13:22:29 +00:00
69b247697c leak: resolve one memory leak 2025-03-10 13:22:29 +00:00
5bf4bb8d6a tests: do lsan test after each test case 2025-03-10 13:22:29 +00:00
9ffde46adc tests: show test function in output 2025-03-10 13:22:29 +00:00
3778d0a7ee cmdlist_from_wordlist: make a copy of a wordlist 2025-03-10 13:22:29 +00:00
a79194de1a debug: remove *alloc/free debug information 2025-03-10 13:22:29 +00:00
14f7e523d3 debug: remove debug prints 2025-03-10 13:22:29 +00:00
4bc6c1ab20 fix(wordlist copy): copy did not work, like at all 2025-03-10 13:22:29 +00:00