minishell
minishell copied to clipboard
MiniShell is a minimalistic shell interpreter, supporting features like basic command execution, environment variable handling, command chaining, redirections, pipes, subshells, and here documents.
Finally the signal source file is without errors!  https://stackoverflow.com/questions/29201515/what-does-d-default-source-do
**It would look like this:**  Also: - Let readline print to stderr (same as bash). Bash's behavior can be tested with `bash -i 2>/dev/null`. - Print...
This happens when first pressing Ctrl+C and then exiting. It's because when we print a newline depends on the exit code. With a program that returns 130 we also print...
[](https://www.gnu.org/software/make/manual/html_node/Implicit-Variables.html#:~:text=SCCS%20get%20program.-,LDFLAGS,-%C2%B6) I also finally understand why the order of the linker flags matters! **First the flags, then the source files which need the libraries, then the libraries.** This is because...
This matters for both `export` and for local variable assignment. If a `+=` is specified instead of an `=` in shell variable assignments or in arguments to `export`, the previous...
### We need to decide what parts of normal assignment we want to implement, if any. **Example:** ```sh bash-5.1$ HOME=/ cd bash-5.1$ pwd / bash-5.1$ echo $HOME /nfs/homes/ldulling ``` Exceptions...
**Definition:** > name=[value] **Test case:** ```bash bash-5.1$ export A=" a b c " bash-5.1$ export Z=$A bash-5.1$ export ``` **Result:** ```bash export Z=" a b c " ``` Reminder what...
- Rename `handle_io_redirect()` to `open_io_files()`. - Rename `stdio_bind.c` to `stdio_redirect.c` because "binding" file descriptors is commonly used with sockets, not with files.
- ~~`ft_lstadd_back_eff()`~~ `ft_lstadd_back_tail()` - ~~`ft_lstnew_back_eff()`~~ `ft_lstnew_back_tail()` - `ft_lstdup()` - `ft_lstsize_d()` The efficient versions of `ft_lstadd_back` expect a tail pointer of the list to avoid traversing the whole list. I made...