1/* $Header: /p/tcsh/cvsroot/tcsh/tw.parse.c,v 3.124 2007/07/02 15:48:48 christos Exp $ */ |
2/* 3 * tw.parse.c: Everyone has taken a shot in this futile effort to 4 * lexically analyze a csh line... Well we cannot good 5 * a job as good as sh.lex.c; but we try. Amazing that 6 * it works considering how many hands have touched this code 7 */ 8/*- 9 * Copyright (c) 1980, 1991 The Regents of the University of California. --- 20 unchanged lines hidden (view full) --- 30 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 31 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 32 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 33 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 34 * SUCH DAMAGE. 35 */ 36#include "sh.h" 37 |
38RCSID("$tcsh: tw.parse.c,v 3.124 2007/07/02 15:48:48 christos Exp $") |
39 40#include "tw.h" 41#include "ed.h" 42#include "tc.h" 43 44#include <assert.h> 45 46#ifdef WINNT_NATIVE --- 381 unchanged lines hidden (view full) --- 428 } 429 search_ret = 0; 430 break; 431 432 case COMMAND_NORMALIZE: { 433 Char *p; 434 int found; 435 |
436 found = cmd_expand(qline.s + wordp, &p); |
437 438 if (!found) { 439 xfree(p); 440 search_ret = 0; 441 break; 442 } 443 if (insert_meta(word_start, str_end, p, !qu) < 0) { 444 xfree(p); --- 1881 unchanged lines hidden --- |