Skip to content
exec_bang.c 318 B
Newer Older
Seblu's avatar
Seblu committed
/*
** exec_bang.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:44:33 2006 seblu
Seblu's avatar
Seblu committed
*/

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

void		exec_bang(s_bin_node *node)
Seblu's avatar
Seblu committed
{
  assert(node && node->lhs);
  exec_node(node->lhs);
  shell->status = !shell->status;
Seblu's avatar
Seblu committed
}