Skip to content

Commit f90b787

Browse files
committed
man: Caveat on PWD normalization
1 parent 13bb210 commit f90b787

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cached-nix-shell.1.md

+2
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ Note that updating the value of _var_ would invalidate the cache.
4848
When `--expr` or `--packages` option is given,
4949
the cache is evaluated inside a separate empty directory,
5050
preventing access to relative paths from within nix expressions.
51+
Contrariwise, when a path to a shebang script or nix file is given,
52+
the cache is evaluated in the directory containing that script or file.
5153
This allows multiple `cached-nix-shell` invocations
5254
from different directories to reuse the same cache entry.
5355

0 commit comments

Comments
 (0)