public override string command_function() { if (argv.Length != 2) { return(malformed_error + "\n" + usage); } IGC_FileSystem fs = virtualSystem.fileSystem; IGC_URL url = fs.ParseURL(argv [1], issuer.cwd); IGC_File file = fs.GetFile(url.fullpath); if (file == null) { return(url.fullpath + " does not exits"); } if (!fs.CanEditFile(file, issuer)) { return("you do not have permission to edit this file"); } issuer.terminal.shell.EnterEditMode(file); return(""); }