On Thu, May 25, 2006 at 07:40:15PM +0100, Robie Basak wrote: > I am trying to set an extended attribute value of the form "0x20" > (literally ASCII letters zero, x, two, zero) but setfattr presumes that > I want a literal space (ASCII 0x20 or 32 decimal) instead. setfattr > seemingly has no option to override this, and its behaviour in > automatically converting my input isn't documented.
Hmm, to my mind its pretty straightforward and doesn't really warrant special mention in the man pages, but I guess its confusing to some. The way to do this is as follows: > For example: > $ cd /tmp > $ >foo > $ setfattr -n user.DOSATTRIB -v 0x20 foo $ setfattr -n user.DOSATTRIB -v \"0x20\" foo > $ getfattr -n user.DOSATTRIB foo > # file: foo > user.DOSATTRIB=" " $ getfattr -n user.DOSATTRIB foo # file: foo user.DOSATTRIB="0x20" > What I want to see is: > user.DOSATTRIB="0x20" Tada! (/me extracts rabbit from hat) > This is crazy, however, for a tool that an admin is supposed to use. An admin would at least try the "obvious" way above, surely...? Guess not - can you suggest some suitable words that I could add to the man page to explain this? thanks. cheers. -- Nathan -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

