summaryrefslogtreecommitdiffstats
path: root/src/f_redir.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-09-19 16:59:38 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-09-19 16:59:38 +0200
commit49b6183dc0171ac040bdd2faf6f8efa0448567c5 (patch)
treeeaff08562cedef9bf4267b0d17efce0485d2f51e /src/f_redir.c
parentTODO update (diff)
download42-minishell-49b6183dc0171ac040bdd2faf6f8efa0448567c5.tar.gz
42-minishell-49b6183dc0171ac040bdd2faf6f8efa0448567c5.tar.bz2
42-minishell-49b6183dc0171ac040bdd2faf6f8efa0448567c5.tar.xz
42-minishell-49b6183dc0171ac040bdd2faf6f8efa0448567c5.tar.zst
42-minishell-49b6183dc0171ac040bdd2faf6f8efa0448567c5.zip
Cleaner variables handling $0 $1 $2 $3
Diffstat (limited to 'src/f_redir.c')
-rw-r--r--src/f_redir.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/f_redir.c b/src/f_redir.c
index 71e5613..2883977 100644
--- a/src/f_redir.c
+++ b/src/f_redir.c
@@ -24,7 +24,7 @@ void
t_msh *msh)
{
ft_dprintf(STDERR_FILENO, "%s: %s: %s\n",
- msh->shname, path, strerror(errno));
+ msh->argv[0], path, strerror(errno));
s_line_clear(&msh->curr);
s_destroy(msh);
exit(1);