back to scratko.xyz
aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Added READMEHEADmasterscratko9 days3-0/+90
|
* Revise subshell execution and terminal group handlingshell-VIIscratko2025-07-283-115/+182
| | | | | | | | | | | | | | | | | | | | | | | | | | | find_end_subshell_before_cur_pos() now accounts for offset caused by two-character tokens (|| and &&). Added many explanatory comments. Modified or removed some fields of the params structure that affected pipe and subshell behavior (e.g., pgid for multiple processes, file descriptors). Changed logic for setting the current terminal process group. Removed side effect in the conditional operator inside special_token_handling() that made the code harder to read. Removed the functions identify_general_pgid() and identify_general_pipe_pgid(). Replaced them with a single function: set_foreground_group(). make_pipeline() now also checks for subshell_before before executing the pipeline. Major changes to the functions make_pipeline(), make_subshell(), and run_external_program(). Subshell exit code now depends on the success or failure of executed programs when using logical operators (|| and &&).
* Shell-VII releasescratko2024-11-235-104/+483
|
* Shell-VI releaseshell-VIscratko2024-11-233-26/+73
| | | | | | Running processes in a single pgid. Changing foreground group to the group of running processes (if readline doesn't end with &).
* Shell-edit releaseshell-editscratko2024-11-2310-42/+636
| | | | | | Autocomplete program and file names (tab). Moving the cursor to edit commands (left and right arrows). Deleting a character in a command (backspace).
* Shell-V releaseshell-Vscratko2024-06-236-528/+253
| | | | | | | Added pipeline. Formatting shell.c (created lexical_analysys.c). Error codes. Some functions of queue.c are created by preprocessor.
* version shell-V with commented out codescratko2024-06-126-181/+825
|
* Signal handlershell-IVscratko2024-06-051-46/+39
| | | | Moving zombie process cleanup to the signal handler.
* Shell-IV releasescratko2024-06-032-58/+302
| | | | Redirecting standard input-output streams.
* Shell-III releaseshell-IIIscratko2024-05-262-13/+101
| | | | | Added the ability to run programs in the background. Added tokens for future releases.
* Shell-II releaseshell-IIscratko2024-05-254-5/+109
| | | | | | Implementation of launching external programs via fork(). Running cd as a change to the current process directory (chdir). Ability to change to user's home directory (cd without arguments).
* Shell-I releaseshell-Iscratko2024-05-256-0/+384