当前位置:网站首页>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
边栏推荐
- Reload CUDA and cudnn (for tensorflow and pytorch) [personal sorting summary]
- Development trend and market demand analysis report of high purity tin chloride in the world and China Ⓔ 2022 ~ 2027
- 2022-2028 global protein confectionery industry research and trend analysis report
- Clion console output Chinese garbled code
- 什么是权限?什么是角色?什么是用户?
- 20220701 Barbalat引理证明
- Relationship and operation of random events
- Global and Chinese markets of water heaters in Saudi Arabia 2022-2028: Research Report on technology, participants, trends, market size and share
- CLion-控制台输出中文乱码
- You can see the employment prospects of PMP project management
猜你喜欢
Mantis creates users without password options
HMS core helps baby bus show high-quality children's digital content to global developers
Jianzhi offer 09 realizes queue with two stacks
C語言-入門-基礎-語法-[運算符,類型轉換](六)
At the age of 30, I changed to Hongmeng with a high salary because I did these three things
2022-2028 research and trend analysis report on the global edible essence industry
[C Advanced] file operation (2)
ArrayBuffer
26. Delete duplicates in the ordered array (fast and slow pointer de duplication)
pcl::fromROSMsg报警告Failed to find match for field ‘intensity‘.
随机推荐
About the for range traversal operation in channel in golang
Launpad | 基礎知識
Reload CUDA and cudnn (for tensorflow and pytorch) [personal sorting summary]
DR6018-CP01-wifi6-Qualcomm-IPQ6010-IPQ6018-FAMILY-2T2R-2.5G-ETH-port-CP01-802-11AX-MU-MIMO-OFDMA
C語言-入門-基礎-語法-[運算符,類型轉換](六)
Jianzhi offer 09 realizes queue with two stacks
Write a jison parser from scratch (1/10):jison, not JSON
2022-2028 global tensile strain sensor industry research and trend analysis report
Daughter love in lunch box
How should PMP learning ideas be realized?
In depth research and investment strategy report on China's hydraulic parts industry (2022 Edition)
上周热点回顾(6.27-7.3)
Awk from entry to penetration (6) regular matching
C language - Introduction - Foundation - syntax - [main function, header file] (II)
Global and Chinese markets of thrombography hemostasis analyzer (TEG) 2022-2028: Research Report on technology, participants, trends, market size and share
GoLand environment variable configuration
【leetcode】540. A single element in an ordered array
Solve the problem of "Chinese garbled MySQL fields"
2022-2028 global optical transparency industry research and trend analysis report
Daughter love: frequency spectrum analysis of a piece of music