#!/usr/bin/ruby pwd = ' ' * 40 syscall(183, pwd, 40) # getcwd pwd = pwd[1...pwd.index(/\0/)] print "present working directory is \"#{pwd}\".\n"