我有一个名为release.csh的脚本,该脚本带有命令行参数。该脚本称为“ source sourceme”,其中sourceme是我无法控制的另一个脚本。传递给'release.csh'的命令行参数最终被'sourceme'使用,即使我没有明确地将命令行参数传递给'sourceme'。那么,如何清除release.csh中的命令行参数,以免弄乱'sourceme'?
#!/usr/intel/bin/tcsh
# The release.csh script takes in the release version as a cmd line arg
set releaseVer = $1
# But when I call the 'sourceme' script, the cmd line args get passed
# So I want to clear the cmd line args here
source ConfigFiles/sourceme