mise API - v0.0.0
    Preparing search index...

    Function redirectTarget_resolve

    • Resolves the final redirect target path. If the target is an existing directory and the source command is cat <file>, resolves to <dir>/<basename>. Returns Err (with message on errorStack) when the filename cannot be determined.

      Parameters

      • filePath: string

        The redirect target path as written by the user.

      • commandLine: string

        The command whose output is being redirected.

      Returns Result<string>

      Ok(resolved path) or Err on failure.