Mike Ditto wrote:
> Roland Mainz wrote On 03/30/06 15:44,:
> > bash-3.00$ runat xxx pwd
> > /bin/sh: cannot determine current directory
> > is this "pwd" behaviour intended or just a bug caused by the fact that
> > "/bin/pwd" (or the shell builtin version) has support for XATTRs ?
> 
> I'd say it's an artifact of the fact that the attribute directory does not
> have a name in the normal filesystem name space, therefore there is nothing
> meaningful for pwd to print.  The behavior is the same as when running pwd
> in an unlinked directory, which by definition has no name in the filesystem.

Erm... and how should shells handle such directories then properly ?
"runat" is not a very elegant solution.
http://mail.opensolaris.org/pipermail/ksh93-integration-discuss/2006-March/000159.html
has pointers to a patch for ksh93 support but even simple shell scripts
break since /bin/pwd and ${PWD} return nothing... ;-(
Was there any discussion yet (mailinglist, newsgroups or Sun-internal)
how shells should handle XATTRs ?

----

Bye,
Roland

-- 
  __ .  . __
 (o.\ \/ /.o) [EMAIL PROTECTED]
  \__\/\/__/  MPEG specialist, C&&JAVA&&Sun&&Unix programmer
  /O /==\ O\  TEL +49 641 7950090
 (;O/ \/ \O;)
_______________________________________________
opensolaris-discuss mailing list
[email protected]

Reply via email to