当前位置:网站首页>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
边栏推荐
- What is inner connection and outer connection? What are the uses and benefits
- Ultimate bug finding method - two points
- How to write unit test cases
- 2022-2028 global gasket metal plate heat exchanger industry research and trend analysis report
- Solution to null JSON after serialization in golang
- Reading notes of how the network is connected - understanding the basic concepts of the network (I)
- Report on research and investment prospects of polyglycolic acid industry in China (2022 Edition)
- How to batch change file extensions in win10
- Mantis creates users without password options
- Trees and graphs (traversal)
猜你喜欢

How to ensure the uniqueness of ID in distributed environment

ArrayBuffer

Clion console output Chinese garbled code

Sword finger offer 30 contains the stack of Min function
](/img/89/0f5f4ba07c637b09abe873016cba2d.png)
C语言-入门-基础-语法-[标识符,关键字,分号,空格,注释,输入和输出](三)

HMS core helps baby bus show high-quality children's digital content to global developers

2022-2028 research and trend analysis report on the global edible essence industry

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

2022-2028 global optical transparency industry research and trend analysis report
](/img/3f/4d8f4c77d9fde5dd3f53ef890ecfa8.png)
C语言-入门-基础-语法-[运算符,类型转换](六)
随机推荐
Global and Chinese market of sampler 2022-2028: Research Report on technology, participants, trends, market size and share
Global and Chinese market of wheel hubs 2022-2028: Research Report on technology, participants, trends, market size and share
Implementation principle of redis string and sorted set
《网络是怎么样连接的》读书笔记 - FTTH
GoLand environment variable configuration
The child container margin top acts on the parent container
Global and Chinese markets of hemoglobin analyzers in care points 2022-2028: Research Report on technology, participants, trends, market size and share
Launchpad x | mode
Four common methods of copying object attributes (summarize the highest efficiency)
C语言-入门-基础-语法-[运算符,类型转换](六)
Nurse level JDEC addition, deletion, modification and inspection exercise
老掉牙的 synchronized 锁优化,一次给你讲清楚!
《网络是怎么样连接的》读书笔记 - Tcp/IP连接(二)
Lauchpad X | 模式
Luogu deep foundation part 1 Introduction to language Chapter 4 loop structure programming (2022.02.14)
Ultimate bug finding method - two points
If you can quickly generate a dictionary from two lists
CLion-控制台输出中文乱码
C语言-入门-基础-语法-[变量,常亮,作用域](五)
Deadlock in channel