From: Benoit Daloze Date: 2009-11-12T05:07:08+09:00 Subject: Re: Is it a bug?exec "cd" --0016364c72838b850804781df830 Content-Type: text/plain; charset=ISO-8859-1 Ah ? ~ $> which cd /usr/bin/cd Under Leopard 2009/11/11 wkm > 'cd' isn't actually a program. (typically; OS X seems to have it setup as a > super obscure shell script) > > Note: > > > [wkm@zanoccio ~]$ which cd > > /usr/bin/which: no cd in > (/usr/kerberos/bin://bin:/usr/local/bin:/bin:/usr/bin:/home/wiktor/bin) > > It's one of the interpreted commands of the shell you're using. > > >---- Original Message ---- > >From: Haoqi Haoqi > >To: ruby-talk@ruby-lang.org (ruby-talk ML) > >Sent: Tue, Nov 10, 2009, 19:52 PM > >Subject: Is it a bug?exec "cd" > > > >$ cat into.rb > >exec "cd /tmp" > >$ ruby into.rb > >into.rb:1:in `exec': No such file or directory - cd /tmp (Errno::ENOENT) > > from into.rb:1 > >--------------------- > >exec "cd anything" as the same result error.how to exec "cd"?thanks > >-- > >Posted via http://www.ruby-forum.com/. > > > --0016364c72838b850804781df830--