lib/rash.rb
# note for later documentation: any aliases of cd must be functions, not 
# environmental aliases. Limitation of implementation.
note for later documentation: any aliases of cd must be functions, not
environmental aliases. Limitation of implementation.
note for later documentation : any aliases of cd must be functions not environmental aliases . Limitation of implementation .
def cd(dir = nil)
  d = dir
  case d
  when File, Dir
    d = d.path if File.directory?(d.path)
  end
  $env.chdir(d)
end
def cd ( dir = nil ) d = dir case d when File , Dir d = d . path if File . directory? ( d . path ) end $env . chdir ( d ) end
note for later documentation: any aliases of cd must be functions, not
environmental aliases.
note for later documentation : any aliases of cd must be functions not environmental aliases .
dir