Linux -Blue forest free software | Return to home page | Site Map | Search WWW | Contact Us |
Your current position : Homepage > Free Software > Technological exchanges >Application Programming


    

Blue Forest http://www.lslnet.com at 11:18 on June 26, 2006


$argv[1] In shell about $ 1 and the difference between the two?

I am following the script
$cat Tt
If ($#argv> "3") goto usage
Switch ([color=red]$1[/color])
Case-V :
Case-V :
Echo "1.0"
Exit 0
Case-h :
Case-H :
Echo help
Exit 0
Default :
Goto usage
Endsw

If $ 1 $argv[1] replaced, there subscript out of range

Why?

$argv[1] In shell about $ 1 and the difference between the two?

That should put a variable $argv[1] exercises? ?
Set aa = $argv[1]

Does not seem to be anything different. . . Please Tate's instructions here.

$argv[1] In shell about $ 1 and the difference between the two?

${argv[1]} Replaced?

$argv[1] In shell about $ 1 and the difference between the two?

$argv[1] In shell about $ 1 and the difference between the two?

Try echo $#!



 Privacy Policy  Copyright © 1999-2000 LSLNET.COM. All rights reserved. Blue Forest website owners. E-mail : Webmaster@lslnet.com