summaryrefslogtreecommitdiff
path: root/lib/shell.rb
diff options
context:
space:
mode:
authorknu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2001-05-17 10:41:20 +0000
committerknu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2001-05-17 10:41:20 +0000
commitc3b948afb56e9b999fe32240d1dae0d9b1e400ce (patch)
tree1b914084d17e6371fa4ce14eb314ea96be8f546a /lib/shell.rb
parent0deafc16c4ed7f34f37a165eb242a64a6e755b59 (diff)
* lib/shell.rb, lib/shell/process-controller.rb,
lib/shell/command-processor.rb: translate Japanese comments into English. * doc/shell.rd.jp: RD'ify and make some fixes. * doc/shell.rd: RD'ify, delete Japanese leftovers, make overall English fixes, and sync with doc/shell.rd.jp. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_6@1427 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/shell.rb')
-rw-r--r--lib/shell.rb11
1 files changed, 6 insertions, 5 deletions
diff --git a/lib/shell.rb b/lib/shell.rb
index 5babc4175b..1d28834213 100644
--- a/lib/shell.rb
+++ b/lib/shell.rb
@@ -123,10 +123,10 @@ class Shell
end
end
- # ほとんどのShell Command は CommandProcessor により定義される.
+ # Most Shell commands are defined via CommandProcessor
#
- # Dir関連メソッド
+ # Dir related methods
#
# Shell#cwd/dir/getwd/pwd
# Shell#chdir/cd
@@ -143,7 +143,8 @@ class Shell
attr :dir_stack
alias dirs dir_stack
- # イテレータとして呼ばれると一時的にcdすることになる.
+ # If called as iterator, it restores the current directory when the
+ # block ends.
def chdir(path = nil)
if iterator?
cwd_old = @cwd
@@ -202,7 +203,7 @@ class Shell
#
- # process 管理
+ # process management
#
def jobs
@process_controller.jobs
@@ -213,7 +214,7 @@ class Shell
end
#
- # command 定義
+ # command definitions
#
def Shell.def_system_command(command, path = command)
CommandProcessor.def_system_command(command, path)