⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 iftrue.sh

📁 早期freebsd实现
💻 SH
字号:
#! /bin/sh##  $Revision: 1.3 $##  Perform a test(1) and execute a command string if the test is true;##  otherwise exit 0.  Usage:##	testit <test> <command>##  On some systems (those with a /bin/sh from BSD4.2), the following##  line in a Makefile will always fail:##	if [ ! -f x ] ; then echo No x -- stop. ; exit 1 ; else exit 0 ; ficase $# in2)    ;;*)    echo "Can't perform test:  wrong number of arguments." 1>&2    exit 1    ;;esacTEST="$1"COMMAND="$2"if eval "test ${TEST}" ; then    eval "${COMMAND}"    exit $?fiexit 0

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -