I am writing a very simple script that calls another script, and I need to propagate the parameters from my current script to the script I am executing.
(我正在编写一个非常简单的脚本,该脚本将调用另一个脚本,并且需要将参数从当前脚本传播到正在执行的脚本。)
For instance, my script name is foo.sh
and calls bar.sh
(例如,我的脚本名称是foo.sh
并调用bar.sh
)
foo.sh:
(foo.sh:)
bar $1 $2 $3 $4
How can I do this without explicitly specifying each parameter?
(如何在不显式指定每个参数的情况下执行此操作?)
ask by Fragsworth translate from so 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…