我一直在读我的课本,下面有件事困扰着我:其中一页显示了这样的代码:add a b = a + b我猜这两行意味着我应该创建一个文件并将它们放入其中,然后加载它。但是ghci告诉我它不能识别"--",尽管第二行作为一个函数表现得很好。所以我很困惑:难道不应该"--“指"//”这样的意思吗?我看错教科书了吗?
~/Downloads/t1$ tar tf test.t home/a/Downloads/t2/z.txt ~/Downloads/t1$ tar xf test.t ls: cannot access ’/home/a/Downloads/t2’: No such file or directory
为什么会发生这种事?是因为我没有给出路径名吗?