Skip to content
exec_or.c 386 B
Newer Older
Seblu's avatar
Seblu committed
/*
** exec_and.c for 42sh
Seblu's avatar
Seblu committed
**
** Made by Seblu
** Login   <seblu@epita.fr>
**
** Started on  Sat Mar 25 15:27:20 2006 Seblu
** Last update Sun Nov 12 03:45:03 2006 seblu
Seblu's avatar
Seblu committed
*/

#include "exec.h"
Seblu's avatar
Seblu committed

void		exec_or(s_bin_node *node)
Seblu's avatar
Seblu committed
{
  assert(node && node->lhs && node->rhs);
  exec_node(node->lhs);
  //FIXME: error with chained "or" and "and"
  if (shell->status)
    exec_node(node->rhs);
Seblu's avatar
Seblu committed
}