---
name: "tcllib_fhome"
section: "3tcl"
platform: "linux"
package: "tcllib"
version: "2.0+dfsg-4"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/tcllib_fhome"
---

# tcllib\_fhome(3tcl)

file home - Return home directory of current or other user

```

```

## NAME

file::home - file home - Return home directory of current or other user

## SYNOPSIS

package require **Tcl 8.x**

package require **fhome ?1?**

**file** **home** ?*user*?

```

```

## DESCRIPTION

This package provides a forward-compatibility implementation of Tcl 9's **file home** command (TIP 602), for Tcl 8.x.

- **file** **home** ?*user*?

  Without argument, return the home directory of the current user.

  With argument, return the home directory of the specified *user*.

## BUGS, IDEAS, FEEDBACK

This document, and the package it describes, will undoubtedly contain bugs and other problems. Please report such in the category *file* of the *Tcllib Trackers* \[http://core.tcl.tk/tcllib/reportlist\]. Please also report any ideas for enhancements you may have for either package and/or documentation.

When proposing code changes, please provide *unified diffs*, i.e the output of **diff -u**.

Note further that *attachments* are strongly preferred over inlined patches. Attachments can be made by going to the **Edit** form of the ticket immediately after its creation, and then using the left-most button in the secondary navigation bar.

## CATEGORY

Utility

## COPYRIGHT

```
Copyright (c) 2024 Andreas Kupries, BSD licensed
```
