diff options
| author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-04-30 16:23:45 +0200 | 
|---|---|---|
| committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-04-30 16:23:45 +0200 | 
| commit | d59bd533a9043abd0ba2a78686f823ed6ffe4b5b (patch) | |
| tree | c0f8014fbce8b02d6016787ed63a0b36ea566f2d | |
| parent | The variable list works (diff) | |
| download | 42-minishell-d59bd533a9043abd0ba2a78686f823ed6ffe4b5b.tar.gz 42-minishell-d59bd533a9043abd0ba2a78686f823ed6ffe4b5b.tar.bz2 42-minishell-d59bd533a9043abd0ba2a78686f823ed6ffe4b5b.tar.xz 42-minishell-d59bd533a9043abd0ba2a78686f823ed6ffe4b5b.tar.zst 42-minishell-d59bd533a9043abd0ba2a78686f823ed6ffe4b5b.zip | |
BSD magick test
| -rw-r--r-- | src/minishell.c | 7 | 
1 files changed, 6 insertions, 1 deletions
| diff --git a/src/minishell.c b/src/minishell.c index 3b8e043..7ddaa42 100644 --- a/src/minishell.c +++ b/src/minishell.c @@ -28,8 +28,13 @@ int  {  	t_msh	*msh;  	int32_t	ret; -	int32_t	i; +	char	*str; +	str = ft_strdup("qwe\'"); +	ft_printf("%s\n", str); +	str = ft_strsubst(str, "\'", ""); +	ft_printf("%s\n", str); +	return (0);  	/* TODO: increment $SHLVL */  	/* TODO: also set $SHELL */  	/* TODO: handle general variables | $var */ | 
