Mac OS X Lion 10.7中的终端应用程序卡住了?

Ale*_*lex 0 bash terminal scripting

几天前我尝试创建一个shell脚本,它将打开我的下载文件夹中的所有种子文件.我不确定我是否正确写入sh文件,从那时起我收到此消息:

Last login: Fri May 18 22:54:28 on ttys000
LSOpenURLsWithRole() failed for the application /Users/Alex/Downloads/(Demonoid.me)-Adobe_Master_Collection_CS5_(OS_X)__12302562.8934.torrent
with error -10810 for the files
/Users/Alex/Downloads/Coda_1_6_2_[_Plist]_[Serial]_O-Demonoid.me-O_12302562.8934.torrent,
/Users/Alex/Downloads/Coda_1_7_3_[k'd]-((Demonoid.me))_12302562.8934.torrent,
/Users/Alex/Downloads/[kat.ph]grid.systems.in.graphic.design.josef.muller.brockmann.torrent,
and /Users/Alex/Downloads/[kat.ph]pixie.lott.cry.me.out.mp3.housezz.torrent.
job done
/bin/bash: line 8: end: command not found
Run Code Online (Sandbox Code Playgroud)

[流程完成]

在终端我无能为力.我不知道该怎么办.关于它的任何见解?

Jon*_*ler 7

  • 打开终端并让它挂起.
  • 打开终端首选项菜单(命令 - 逗号).
  • 在"启动"选项卡中,记住当前的shell设置.
  • 选择除Bash或Sh之外的shell(例如/bin/tcsh- 这是一个解压措施,只是暂时的).
  • 关闭锁定的终端.
  • 打开一个新的终端(Command-N).
  • 这应该给你一个命令提示符.
  • 在该窗口中,编辑您.profile.bashrc其他任何添加Torrent行的内容.
  • 删除与Torrent相关的行.
  • 返回终端首选项.
  • 将shell重置为/bin/bash.
  • 尝试再次打开终端窗口.

在尝试再次添加Torrent时,请编写一个shell脚本.调试它.只有当您确定它是正确,稳定,可靠并且不会锁定您的终端时,才将其放入您的配置文件中.然后用已打开的终端进行测试 - 打开一个新终端进行测试.然后你仍然有一个解锁终端,你可以解决问题.

如果你有一个图形Vim(Gvim或MacVim),你可以启动它然后编辑你,.profile而不必调整终端首选项.