当前位置:网站首页>Get the source code in the mask with the help of shims
Get the source code in the mask with the help of shims
2022-07-04 09:29:00 【Hu Zhenghui】
install : Core tools Mask
The main tools used are
mask
stay Mac The installation method in is
brew install mask
Core tools Mask The related documents
Code location
General purpose shims Code for
publish
[ With the help of shims How to get mask Source code in ]
Mission
echo-path
Show
PATHenvironment variable
echo "${PATH}"
which-bash
Show
bashroute
which bash
bash-version
Show
bashedition
bash --version
bin-bash
Use
/binIn the pathbash
export PATH="/bin:${PATH}"
mask echo-path
mask which-bash
mask bash-version
Post run output
/bin:......
/bin/bash
GNU bash, version 3.2.57(1)-release (x86_64-apple-darwin19)
Copyright (C) 2007 Free Software Foundation, Inc.
usr-bash
Use
/usr/local/binIn the pathbash
export PATH="/usr/local/bin:${PATH}"
mask echo-path
mask which-bash
mask bash-version
Post run output
/usr/local/bin:......
/usr/local/bin/bash
GNU bash, edition 5.0.18(1)-release (x86_64-apple-darwin19.5.0)
Copyright (C) 2019 Free Software Foundation, Inc.
license GPLv3+: GNU GPL License version 3 or later <http://gnu.org/licenses/gpl.html>
This software is free software , You are free to change and republish .
To the extent permitted by law, it is hereby expressly stated that , This software does not provide any warranty .
fake-bash
Use simulated
bashEcho code
fake="$(cd fake; pwd)"
echo "${fake}"
export PATH="${fake}:${PATH}"
mask echo-path
mask which-bash
mask bash-version
Simulated bash Code for
echo '$# = '${#}
for i in "[email protected]"
do
echo $i
done
Post run output
./fake
$# = 2
-c
echo "${PATH}"
$# = 2
-c
which bash
$# = 2
-c
bash --version
raw-code
Use the universal
shimsEcho code
raw_shims="$(cd raw-shims; pwd)"
echo "${raw_shims}"
export PATH="${raw_shims}:${PATH}"
mask echo-path
mask which-bash
mask bash-version
mask raw-code
General purpose shims Code for
if [ "${#}" -ne 2 ];
then
exit 1;
fi
if [ "${1}" != "-c" ];
then
exit 2;
fi
echo "${2}"
Post run output
./raw-code/raw-shims
echo "${PATH}"
which bash
bash --version
raw_shims="$(cd raw-shims; pwd)"
echo "${raw_shims}"
export PATH="${raw_shims}:${PATH}"
mask echo-path
mask which-bash
mask bash-version
mask raw-code
边栏推荐
- UML sequence diagram [easy to understand]
- What is inner connection and outer connection? What are the uses and benefits
- HMS core helps baby bus show high-quality children's digital content to global developers
- Awk from entry to earth (12) awk can also write scripts to replace the shell
- Global and Chinese trisodium bicarbonate operation mode and future development forecast report Ⓢ 2022 ~ 2027
- Target detection -- intensive reading of yolov3 paper
- C语言-入门-基础-语法-[主函数,头文件](二)
- Research Report on research and investment prospects of China's testing machine industry (2022 Edition)
- 2022-2028 global tensile strain sensor industry research and trend analysis report
- Luogu deep foundation part 1 Introduction to language Chapter 4 loop structure programming (2022.02.14)
猜你喜欢

Awk from entry to earth (12) awk can also write scripts to replace the shell

The child container margin top acts on the parent container

You can see the employment prospects of PMP project management
![C language - Introduction - Foundation - syntax - [identifier, keyword, semicolon, space, comment, input and output] (III)](/img/89/0f5f4ba07c637b09abe873016cba2d.png)
C language - Introduction - Foundation - syntax - [identifier, keyword, semicolon, space, comment, input and output] (III)

C language - Introduction - Foundation - syntax - data type (4)

165 webmaster online toolbox website source code / hare online tool system v2.2.7 Chinese version

2022-2028 global visual quality analyzer industry research and trend analysis report

LeetCode 74. Search 2D matrix

2022-2028 global industry research and trend analysis report on anterior segment and fundus OTC detectors

Ultimate bug finding method - two points
随机推荐
Awk from getting started to digging in (9) circular statement
"How to connect the network" reading notes - Web server request and response (4)
2022-2028 global strain gauge pressure sensor industry research and trend analysis report
Global and Chinese markets of hemoglobin analyzers in care points 2022-2028: Research Report on technology, participants, trends, market size and share
C language - Introduction - Foundation - syntax - [operators, type conversion] (6)
Ultimate bug finding method - two points
C language - Introduction - Foundation - syntax - [main function, header file] (II)
How to write unit test cases
Implementation principle of redis string and sorted set
UML 时序图[通俗易懂]
ArrayBuffer
Global and Chinese market of bipolar generators 2022-2028: Research Report on technology, participants, trends, market size and share
什么是权限?什么是角色?什么是用户?
China electronic grade sulfur trioxide Market Forecast and investment strategy report (2022 Edition)
C语言-入门-基础-语法-[主函数,头文件](二)
C语言-入门-基础-语法-数据类型(四)
C语言-入门-基础-语法-[变量,常亮,作用域](五)
Reading notes of how the network is connected - understanding the basic concepts of the network (I)
Flutter 小技巧之 ListView 和 PageView 的各種花式嵌套
How to ensure the uniqueness of ID in distributed environment