当前位置:网站首页>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
PATH
environment variable
echo "${PATH}"
which-bash
Show
bash
route
which bash
bash-version
Show
bash
edition
bash --version
bin-bash
Use
/bin
In 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/bin
In 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
bash
Echo 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
shims
Echo 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
边栏推荐
- DR6018-CP01-wifi6-Qualcomm-IPQ6010-IPQ6018-FAMILY-2T2R-2.5G-ETH-port-CP01-802-11AX-MU-MIMO-OFDMA
- 26. Delete duplicates in the ordered array (fast and slow pointer de duplication)
- Solution to null JSON after serialization in golang
- Opencv environment construction (I)
- MySQL transaction mvcc principle
- Reload CUDA and cudnn (for tensorflow and pytorch) [personal sorting summary]
- How to batch change file extensions in win10
- 2022-2028 global elastic strain sensor industry research and trend analysis report
- How to ensure the uniqueness of ID in distributed environment
- Report on research and investment prospects of polyglycolic acid industry in China (2022 Edition)
猜你喜欢
C语言-入门-基础-语法-数据类型(四)
C语言-入门-基础-语法-[运算符,类型转换](六)
2022-2028 global intelligent interactive tablet industry research and trend analysis report
AMLOGIC gsensor debugging
C language - Introduction - Foundation - syntax - data type (4)
2022-2028 global strain gauge pressure sensor industry research and trend analysis report
Logstack configuration details -- elasticstack (elk) work notes 020
If you can quickly generate a dictionary from two lists
2022-2028 global optical transparency industry research and trend analysis report
How to ensure the uniqueness of ID in distributed environment
随机推荐
HMS core helps baby bus show high-quality children's digital content to global developers
Awk from entry to soil (5) simple condition matching
Launpad | 基础知识
C语言-入门-基础-语法-[主函数,头文件](二)
Explanation of closures in golang
Relationship and operation of random events
Tkinter Huarong Road 4x4 tutorial II
C语言-入门-基础-语法-数据类型(四)
Research Report on research and investment prospects of China's testing machine industry (2022 Edition)
上周热点回顾(6.27-7.3)
Horizon sunrise X3 PI (I) first boot details
There are 100 people eating 100 apples, one adult eating 4 apples, and four children eating 1 apple. How can they eat exactly 100 apples? Use any high-level language you are familiar with
LinkedList in the list set is stored in order
Fatal error in golang: concurrent map writes
Report on research and investment prospect prediction of China's electronic grade sulfuric acid industry (2022 Edition)
China electronic grade sulfur trioxide Market Forecast and investment strategy report (2022 Edition)
Function comparison between cs5261 and ag9310 demoboard test board | cost advantage of cs5261 replacing ange ag9310
2022-2028 global special starch industry research and trend analysis report
Research and investment strategy report of China's electronic hydrogen peroxide industry (2022 Edition)
26. Delete duplicates in the ordered array (fast and slow pointer de duplication)