No description
Find a file
Khaïs COLIN 3f08189aae fix(parsing/redirect): sometimes do not take a redirection into account
debug notes:

++++++++++++++++++++++++++++++++++++++++++++++++++++
failed: ambiguous redirect
++++++++++++++++++++++++++++++++++++++++++++++++++++
++++ test input:
export target="outfile1 outfile2"
echo hello > $target
echo $?
echo hi >> $target
echo $?
cat < $target
echo $?
ls
echo $?
++++ Got output:
hello
0
hi
0
echo $?
ls
echo $?
++++ But expected:
minishell: $target: ambiguous redirect
1
minishell: $target: ambiguous redirect
1
minishell: $target: ambiguous redirect
1
0

Reproduced this with rr record --cahos, see
/home/khais/.local/share/rr/minishell-48

$ export target="outfile1 outfile2"
$ echo hi > $target
hi

Break in simple_cmd_execute, second command has no redirections when it should
have some, presumably this comes from some uninitialized memory somewhere.
2025-04-24 13:26:40 +02:00
libft debug: remove *alloc/free debug information 2025-03-10 13:22:29 +00:00
src fix(parsing/redirect): sometimes do not take a redirection into account 2025-04-24 13:26:40 +02:00
tests debug: worddesc show more information 2025-04-15 15:17:51 +02:00
.gitignore ignore zms_tester 2025-04-16 12:48:23 +02:00
.valgrindrc valgrind: suppress readline still reachable leaks 2025-02-07 15:29:43 +01:00
grammar.md parse-cmd: Almost done but stopped by the gong 2025-04-08 19:56:46 +02:00
interesting_tests.md Expansion : text replacement in a string 2025-03-21 10:04:25 +01:00
Makefile fix(parsing/redirect): sometimes do not take a redirection into account 2025-04-24 13:26:40 +02:00
NOTES.md cmdlist: use new architecture (STUB) 2025-03-28 14:50:37 +01:00
readline.supp leaks: ignore readline add_history leaks 2025-03-28 14:50:37 +01:00
test.sh feat(postprocess/redir): remove quotes in redirection targets 2025-04-24 12:45:00 +02:00