Self concatenate strings on csh

后端 未结 1 577
我在风中等你
我在风中等你 2021-01-21 09:32

I need to concatenate partial content from argv to one of my variable.

I will show you my code:

#!/bin/csh

set stringList = \"\"
foreach param ($argv)
          


        
相关标签:
1条回答
  • 2021-01-21 10:04

    Change

            set stringList = $stringList " " $param
    

    to

            set stringList = "$stringList $param"
    
    0 讨论(0)
提交回复
热议问题