source: trunk/j/src/bsh/commands/cd.bsh @ 2

Last change on this file since 2 was 2, checked in by piso, 18 years ago

Initial checkin.

File size: 306 bytes
Line 
1
2bsh.help.cd = "usage: cd( path )";
3
4/*
5  Additions by Kevin Raulerson, http://www.spin.com.mx/~kevinr/
6*/
7cd( String pathname ) {
8
9    file = pathToFile( pathname );
10
11  if ( file.exists() && file.isDirectory() )
12    bsh.cwd = file.getCanonicalPath();
13  else
14        print( "No such directory: "+pathname);
15
16}
17
Note: See TracBrowser for help on using the repository browser.