import * as path from 'path' import { readFile } from 'fs/promises' import { readFileSync } from 'fs' import { Buffer } from 'buffer' import * as platform from './platform' import * as library from './library'
/* Windows/Cygwin */
export function cygwin_root(): string
{ if (platform.is_windows()) { return library.getenv_strict("CYGWIN_ROOT")
} else { return"" }
}
export function cygwin_bash(): string
{ return cygwin_root() + "\\bin\\bash"
}
/* standard path (Cygwin or Posix) */
function slashes(s: string): string
{ return s.replace(/\\/g, "/")
}
export function standard_path(platform_path: string): string
{ if (platform.is_windows()) { const backslashes = platform_path.replace(/\//g, "\\")
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.