||
#! /bin/bash
echo “\$0 = *$0* ”
echo “\$1 = *$1* ”
echo “\$2 = *$2* ”
echo “\$3 = *$3* ”
下面是这个程序的运行结果。因为没有第三个参数,因此$3的值是空的。
$ ./display_para_ first second
$0 = *./display_para*
$1 = *first*
$2 = *second*
$3 = **
Archiver|手机版|小黑屋|52RD我爱研发网 ( 沪ICP备2022007804号-2 )
GMT+8, 2024-11-24 12:02 , Processed in 0.028794 second(s), 18 queries , Gzip On.
Powered by Discuz! X3.5
© 2001-2023 Discuz! Team.