mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/shell.rb: removed commented-out code.
* lib/shell/builtin-command.rb: ditto. * lib/shell/command-processor.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47246 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
6f74ab1d97
commit
4c91cbb9a8
4 changed files with 6 additions and 20 deletions
|
@ -1,3 +1,9 @@
|
|||
Fri Aug 22 12:32:15 2014 SHIBATA Hiroshi <shibata.hiroshi@gmail.com>
|
||||
|
||||
* lib/shell.rb: removed commented-out code.
|
||||
* lib/shell/builtin-command.rb: ditto.
|
||||
* lib/shell/command-processor.rb: ditto.
|
||||
|
||||
Fri Aug 22 12:21:46 2014 SHIBATA Hiroshi <shibata.hiroshi@gmail.com>
|
||||
|
||||
* lib/complex.rb: removed deprecated library.
|
||||
|
|
|
@ -92,7 +92,6 @@ class Shell
|
|||
include Error
|
||||
extend Exception2MessageMapper
|
||||
|
||||
# @cascade = true
|
||||
# debug: true -> normal debug
|
||||
# debug: 1 -> eval definition debug
|
||||
# debug: 2 -> detail inspect debug
|
||||
|
@ -108,7 +107,6 @@ class Shell
|
|||
|
||||
attr_accessor :cascade, :debug, :verbose
|
||||
|
||||
# alias cascade? cascade
|
||||
alias debug? debug
|
||||
alias verbose? verbose
|
||||
@verbose = true
|
||||
|
@ -448,7 +446,6 @@ class Shell
|
|||
yield mes if iterator?
|
||||
if _head
|
||||
_head = false
|
||||
# "shell" " + mes
|
||||
prefix + mes
|
||||
else
|
||||
" "* prefix.size + mes
|
||||
|
|
|
@ -83,20 +83,6 @@ class Shell
|
|||
end
|
||||
end
|
||||
|
||||
# class Sort < Cat
|
||||
# def initialize(sh, *filenames)
|
||||
# super
|
||||
# end
|
||||
#
|
||||
# def each(rs = nil)
|
||||
# ary = []
|
||||
# super{|l| ary.push l}
|
||||
# for l in ary.sort!
|
||||
# yield l
|
||||
# end
|
||||
# end
|
||||
# end
|
||||
|
||||
class AppendIO < BuiltInCommand
|
||||
def initialize(sh, io, filter)
|
||||
super sh
|
||||
|
|
|
@ -24,7 +24,6 @@ class Shell
|
|||
# Alternatively, you can execute any command via
|
||||
# Shell::CommandProcessor#system even if it is not defined.
|
||||
class CommandProcessor
|
||||
# include Error
|
||||
|
||||
#
|
||||
# initialize of Shell and related classes.
|
||||
|
@ -125,7 +124,6 @@ class Shell
|
|||
end
|
||||
end
|
||||
end
|
||||
# public :open
|
||||
|
||||
# call-seq:
|
||||
# unlink(path)
|
||||
|
@ -650,7 +648,6 @@ class Shell
|
|||
["mtime", ["FILENAME"]],
|
||||
["readlink", ["FILENAME"]],
|
||||
["rename", ["FILENAME_FROM", "FILENAME_TO"]],
|
||||
# ["size", ["FILENAME"]],
|
||||
["split", ["pathname"]],
|
||||
["stat", ["FILENAME"]],
|
||||
["symlink", ["FILENAME_O", "FILENAME_N"]],
|
||||
|
|
Loading…
Add table
Reference in a new issue