bash
's man page (and help cd
) mentions that cd
supports a -@
parameter ("on systems that support it") to "present a file with extended attributes as a directory containing the file attributes"
Is there an example of using this? (Ideally with a commonly present file, or with a setup to create an example (I'm not familiar enough with xattr
currnelt))
Where is it supported? Everywhere supporting xattr
s, or is there more kernel support needed? (i.e. Can I use it with an xattr
-supporting version of OS X, Solaris, FreeBSD, Linux, etc)
My guess is that if a file, /path/f
has xattr
s I can do cd -@ /path/f
and ls
would then show xattrs as (emulated) "files" in the emulated "directory" /path/f
? (For this, I assume that the kernel need some kind of support for this simulation, since things like ls
live outside bash
, which means that bash
can't be doing the emulation)
setfattr
on WSL and getsetfattr: test: Operation not supported
, so I'm assuming I need to try a real Linux to see if I can create an xattr on a file for my own testing... (A random XFS and ext4 filesystem gets the same result with the default mount options) (I know OS X makes extended use of xattrs, so it might be testable there)-@
beyond the man page orhelp
output there either...