summaryrefslogtreecommitdiff
path: root/misc/mshell/files/patch-ad
blob: de74911fbf3a35f98aeb02c74ea725fc6d67e8ba (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
*** mshell.c.orig	Sun Sep 19 11:00:53 1999
--- mshell.c	Sun Sep 19 11:09:05 1999
***************
*** 26,33 ****
  	     exec_string   [DESCLEN],
  	     *args         [MAXARGS],
  	     *menu_array   [LINES],
! 	     tmpword       [WORDLEN],
! 	     *malloc();
  
  	int  i, 
  	     idx,
--- 26,32 ----
  	     exec_string   [DESCLEN],
  	     *args         [MAXARGS],
  	     *menu_array   [LINES],
! 	     tmpword       [WORDLEN];
  
  	int  i, 
  	     idx,
***************
*** 35,42 ****
  	     firsttime = TRUE,
  	     dontdisplay = FALSE,
  	     unix_flag,
! 	     menu_flag,
! 	     exit();
  
  	static jmp_buf topenv;
  	static int topenvset;
--- 34,40 ----
  	     firsttime = TRUE,
  	     dontdisplay = FALSE,
  	     unix_flag,
! 	     menu_flag;
  
  	static jmp_buf topenv;
  	static int topenvset;
***************
*** 49,55 ****
  	signal (SIGPIPE, SIG_IGN);	/* ignore dead pipes */
  	log("enter", m);
  
! 	while TRUE {
  
  		if (!topenvset) {
  			topenvset = TRUE;
--- 47,53 ----
  	signal (SIGPIPE, SIG_IGN);	/* ignore dead pipes */
  	log("enter", m);
  
! 	while (TRUE) {
  
  		if (!topenvset) {
  			topenvset = TRUE;
***************
*** 142,148 ****
  
  			if ( strcmp (action_string, NULLSTR) == 0 ) {
  				invalid_option = TRUE;
! 				printf ("\tNo such help option name as: %s\!\!\n", opt2);
  			}
  			else {
  				tmpword[0] = EOS;
--- 140,146 ----
  
  			if ( strcmp (action_string, NULLSTR) == 0 ) {
  				invalid_option = TRUE;
! 				printf ("\tNo such help option name as: %s!!\n", opt2);
  			}
  			else {
  				tmpword[0] = EOS;