From 22dc9776d66d2dd1564a355607eece47e6385ac4 Mon Sep 17 00:00:00 2001 From: Camille Chauvet Date: Wed, 22 Mar 2023 16:07:27 +0100 Subject: [PATCH] fix: exit code --- ...6100000162 => .nfs00000000098c8161000001bf | Bin 122448 -> 122472 bytes env/env_fill.c | 2 +- execution/execution.c | 1 + syntax/syntax.c | 3 ++- 4 files changed, 4 insertions(+), 2 deletions(-) rename .nfs00000000098c816100000162 => .nfs00000000098c8161000001bf (73%) diff --git a/.nfs00000000098c816100000162 b/.nfs00000000098c8161000001bf similarity index 73% rename from .nfs00000000098c816100000162 rename to .nfs00000000098c8161000001bf index ec49366b591ee8b07579fefdcd6bedcce0678566..204136481544dd8740eabd8557bb8d5291073071 100755 GIT binary patch delta 7461 zcmZ`;3s_Xu_CMO#{rq|0V5;U{11sq&uL~Lm=?F@qt=t(j()W{xCCO5G!cuX9TyZ?MXKeRs z(Nndi$x?aTQgNJIHeS=SkMG=j^iJ?wJyYZ!4|99ZR2sv>g9phyvUpbTTl9+EV0wTC z%*z!K-m)C-dpE)<=&@9#x-3_ZRkvjG-s^!N_PDXU~uH^`M=+ct8xT@<6Ju51Bxj92eD79x$3MQT^oL zOfHNnBj#&Sz2tYsiawgo4@6Ij_-d*effI9bO8(CUi#Z*Rt}_EAsX=mGV~(Ce3;1gE z5Gt~F9~wnbEs>H`k>K`U+XpJH&(Nw$aOGWgyIsfed_r>L)3#i2(|AG5Xga`e#0;hy zJ{1#APQD%!C;O#v_^@U2;6UCy?4}%?$m?Sx=m*{&nHt+(`N(r^F4T z8N56$o^J8BxID73arhw0;+Wy1WUowKFnk16+g}@=MzoNxJb0a6<E&S2gS7{wTK5n9163GGM2l1EVM#=re<9v^w1|X)J^Fp|0{1Hm$oW$+) zI=d5lQ3dxhr_miQFq=wl^;Z|m)pi4;q84sj8rSJdwO{}n0nj4(Mc;AYb^AyXS^-x0DFK#CzG{JSJr=ZRDnu(X@+yNlBxR zIXN|vR&#l3GK%^GJbSY-EkXYJb52Z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&9N$P5K1Sn^09bM3Z?Y$QMsCpQ@43h z*f^E#p)}caSm(@T7WCq6318V@c1Iei=Wzc(EU%BWSxFd1ZIx*gXp{fv68W}naaXaw zMq$dsb%^fksnkm8Gm(BKo6;?Z`YHK26zw;?($`>Ur)^H(!@~cw5%AuG2(?<9P`5F2v*^}r+DpO8OqW$D_7d=nE8E^%_ZG2ps#H_f7DM0WT5IW$a$>YlmO#)oR$pUtP+GE#qd0p*aSJh6~=kwf|C zLYj?3UrEfT9Tcxz$)_d+er6GUPZ{n5FVP@EvhOUWBV=(OSVFOcv)1kTGtI)oOn2r| z>Of?4JN`o1h+?jCVmUp8o8tvEn(RtZA(@o8LdwRlc%F}8n+mBA%z`3X0LR}K(JFL$ zS5SLp%?f%60pYm}Cycwin7YW|_O7D8$PJ6!{a(Q)mopYC`&QAD%I4Kju2EXAp?e57 zxP*xy3hn;^#0c9wm>!}E3QNEs* zgEN-V3JlI=^e?m=<&=-ieP2%1n4Pkn>1_;_ypax&<+V+82-&ROM5Tfoq0lI0xI!Vy zy9!yA*A?oZ_`XiPFuA_3!;9Iy<8=x!x_AFwq%y$W^gi|SZKeM7LOIO> zblR?DRv|8Wd8m?6+Y_k@qBzsP3! zE<}`}yuXWj;YM_SyNmh}^3rNIT@)qL^a%zj{Hx}rO!x8+@d^enMtAfc6iDQw_qhU{ zUy8S+*5DF*j$DMdi=vS|8|I7A5*H5?H1TIIJ$zoWnFFvd*q4<0eo) zZE#hHM3gC)gqB%pRfB4r3A zYAsF1(NbHh7UsEHB)$19F0?JUy+uS-O7s!6N-~eA%5y}kPryC|HTaO~kg~}I4;ZsuRmexit_code = return_code; return (return_code); } diff --git a/syntax/syntax.c b/syntax/syntax.c index 4366c21..3875582 100644 --- a/syntax/syntax.c +++ b/syntax/syntax.c @@ -102,8 +102,9 @@ static int ft_empty_verif(const char *str) int ft_syntax_verif(t_data *data, const char *str) { + if (ft_empty_verif(str)) + return (1); if (ft_quote_verif(str) - || ft_empty_verif(str) || ft_pipe_is_alone(str) || ft_special_char_dub(str)) {