Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/file/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Unix中的错误(脚本)_Unix_Scripting_Csh_Tcsh - Fatal编程技术网

Unix中的错误(脚本)

Unix中的错误(脚本),unix,scripting,csh,tcsh,Unix,Scripting,Csh,Tcsh,有人知道这个错误意味着什么? 失踪-。在google中,我没有发现这方面的任何信息。tcsh可以生成错误消息的唯一情况是,当您试图替换数组变量中的一系列单词时,并且选择器在语法上不正确 引用tcsh手册页: $name[selector] ${name[selector]} Substitutes only the selected words from the value of name. The selector is subj

有人知道这个错误意味着什么?
失踪-。在google中,我没有发现这方面的任何信息。tcsh可以生成错误消息的唯一情况是,当您试图替换数组变量中的一系列单词时,并且选择器在语法上不正确

引用tcsh手册页:

   $name[selector]
   ${name[selector]}
           Substitutes  only  the  selected  words from the value of name.
           The selector is subjected to `$' substitution and  may  consist
           of  a  single  number  or  two numbers separated by a `-'.  The
           first word of a variable's value is numbered `1'.  If the first
           number  of  a range is omitted it defaults to `1'.  If the last
           member of a range is omitted  it  defaults  to  `$#name'.   The
           selector `*' selects all words.  It is not an error for a range
           to be empty if the second argument is omitted or in range.
例如:

$ echo $path[5-6]
/usr/sbin /usr/bin
$ echo $path[5_6]
Missing -.

如果你在被要求提供更多信息(例如,失败脚本中的一些代码)时进行了跟进,可能不会花一年多的时间得到答案。

我使用的是C-Shell,我编写了一些脚本,但无法运行,因为出现了此错误。这里很少有人有心灵感应。你能发布你的脚本列表吗?你还对解决这个问题感兴趣吗?