-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
9 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,18 +6,18 @@ | |
/* By: zhabri <[email protected]> +#+ +:+ +#+ */ | ||
/* +#+#+#+#+#+ +#+ */ | ||
/* Created: 2022/12/06 13:06:15 by zhabri #+# #+# */ | ||
/* Updated: 2023/01/09 11:25:54 by zhabri ### ########.fr */ | ||
/* Updated: 2023/01/12 11:12:07 by zhabri ### ########.fr */ | ||
/* */ | ||
/* ************************************************************************** */ | ||
|
||
#include "minishell.h" | ||
|
||
static void infile_exception(t_token *var) | ||
{ | ||
int i; | ||
char *second_part; | ||
char *tmp; | ||
char **arg_split; | ||
int i; | ||
char *second_part; | ||
char *tmp; | ||
char **arg_split; | ||
|
||
arg_split = ft_split_quotes_keep_sep(var->arg, "<>|"); | ||
second_part = ft_calloc(1, sizeof(char)); | ||
|
@@ -84,8 +84,8 @@ void expand(t_token *var) | |
|
||
static bool str_is_op(char *needle) | ||
{ | ||
int i; | ||
static const char *op_tab[13] = {"<<", ">>", "|", \ | ||
int i; | ||
static const char *op_tab[13] = {"<<", ">>", "|", \ | ||
">", "<", " ", "$", "\"", "'", "/", "\t", NULL}; | ||
|
||
i = 0; | ||
|
@@ -100,8 +100,8 @@ static bool str_is_op(char *needle) | |
|
||
void find_var(t_token *token, char *input) | ||
{ | ||
int i; | ||
size_t len; | ||
int i; | ||
size_t len; | ||
|
||
len = 0; | ||
if (token) | ||
|