File: d.rb

package info (click to toggle)
ruby-systemu 2.6.5-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 164 kB
  • sloc: ruby: 525; makefile: 2
file content (11 lines) | stat: -rw-r--r-- 190 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
#
# the cwd can be supplied
#
  require 'systemu'
  require 'tmpdir'

  pwd = %q( ruby -e"  STDERR.puts Dir.pwd  " )

  status = systemu pwd, 2=>(stderr=''), :cwd=>Dir.tmpdir
  puts stderr