summaryrefslogtreecommitdiff
path: root/lib/shellwords.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/shellwords.rb')
-rw-r--r--lib/shellwords.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/shellwords.rb b/lib/shellwords.rb
index c55644ca75..fede2e1874 100644
--- a/lib/shellwords.rb
+++ b/lib/shellwords.rb
@@ -155,9 +155,7 @@ module Shellwords
#
# You can also mix non-string objects in the elements as allowed in Array#join.
#
- # ary = ["All", "work", "and", "no", "play", "makes", $0, "a", "dull", "boy"]
- # argv = ary.shelljoin
- # argv #=> "All work and no play makes irb a dull boy"
+ # output = `#{['ps', '-p', $$].shelljoin}`
#
def shelljoin(array)
array.map { |arg| shellescape(arg) }.join(' ')