All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog,
- Strings between quotes with spaces untouched.
- Added easter egg.
- Added prompt welcome message.
- Added file here document redirection feature.
- Added file redirection feature.
- Added error status tracking.
- Variables values now accept's equal sign
- Set variable followed by command is accepted
- Added
echo
builtin function.
- Refactored error message function to use
variadic_strjoin()
instead of several print function calls. - Correct all signals behaviors.
- Added pipe checker.
- Added pipe feature.
- tokens linked list became tokens double linked list
- new tokend types:
T_PIPE
T_REDIRECT
T_HERE_DOC
T_FILE
- Added
cd
builtin function.
- Added
get_absolute_path()
function, that retrieves the correct path for a specified binary based on the PATH environment variable, or returns NULL if it can't find it. - Added the
variadic_strjoin()
function, which permits concatenation of an variable number of strings. - Added Macros with escaped colors for readline library.
- Added
unset()
builtin function. - Added
pwd()
function, that print working directory.
- Refactor
create_prompt()
function usingvariadic_strjoin()
.
- Added
export
function - Added
hashmap_to_env_whith_quotes
function to insert quotes in each env variable value when is needed - Created temporary "hook" to allow use of the
export
command
- Added handler to signal interrupt and signal quit in input cases.
- Altered
print_environment()
to receive a file descriptor as a parameter.
- Added changelog and its first entry.
- Defined a global
struct
to contain all the information on a givenminishell
session. - Initialized environment from
__environ
global variable. - Initialized the
g_minishell
session struct onmain
. - Created temporary "hook" to allow use of the
env
command, and made it run a function to print the environment. - Implemented variable expansions
- Removed
readline.h
escape characters from our color definitions and added them only to the prompt.