Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 22 Nov 2009 14:04:20 +0000 (UTC)
From:      Jilles Tjoelker <jilles@FreeBSD.org>
To:        cvs-src-old@freebsd.org
Subject:   cvs commit: src/bin/sh eval.c input.c input.h src/tools/regression/bin/sh/builtins fc1.0
Message-ID:  <200911221408.nAME82lH002682@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
jilles      2009-11-22 14:04:20 UTC

  FreeBSD src repository

  Modified files:
    bin/sh               eval.c input.c input.h 
  Added files:
    tools/regression/bin/sh/builtins fc1.0 
  Log:
  SVN rev 199647 on 2009-11-22 14:04:20Z by jilles
  
  sh: Ensure the same command input file is on top after executing a builtin.
  
  This avoids weirdness when 'fc -e vi' or the like is done and there is a
  syntax error in the file. Formerly an interactive shell tried to execute
  stuff after the syntax error and exited.
  
  This should also avoid similar issues with 'command eval' and 'command .'
  when 'command' is implemented properly as in NetBSD sh.
  
  Special builtins did not have this problem since errors in them cause the
  shell to exit or to reset various state such as the current command input
  file.
  
  Revision  Changes    Path
  1.68      +3 -0      src/bin/sh/eval.c
  1.27      +26 -0     src/bin/sh/input.c
  1.11      +4 -0      src/bin/sh/input.h
  1.1       +27 -0     src/tools/regression/bin/sh/builtins/fc1.0 (new)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200911221408.nAME82lH002682>