UNIX下SH的实现源码

源代码在线查看: truefalse.c

软件大小: 2100 K
上传用户: RR15133422795
关键词: UNIX 源码
下载地址: 免注册下载 普通下载 VIP

相关代码

				/* true and false builtins */								#include "bashtypes.h"				#include "shell.h"				#include "builtins.h"								true_builtin (list)				     WORD_LIST *list;				{				  return EXECUTION_SUCCESS;				}								false_builtin (list)				     WORD_LIST *list;				{				  return EXECUTION_FAILURE;				}								static char *true_doc[] = {					"Return a successful result.",					(char *)NULL				};								static char *false_doc[] = {					"Return an unsuccessful result.",					(char *)NULL				};								struct builtin true_struct = {					"true",					true_builtin,					BUILTIN_ENABLED,					true_doc,					"true",					0				};								struct builtin false_struct = {					"false",					false_builtin,					BUILTIN_ENABLED,					false_doc,					"false",					0				};							

相关资源