This seems like a reasonable thing to do - I doubt the syntax of "ls" will
change any time soon and it should be consistent across *xes.

On Fri, Jun 5, 2009 at 4:50 AM, L.Tomei <[email protected]> wrote:

>
> Hi all,
>
> I'm having troubles in Linux with verbs like dirtree and dirpath (defined
> in
> dir.ijs), because a loop can occur when a directory is a symbolic link.
> Is there an easy way in J to recognize Unix symbolic links?
> File attributes, as returned by foreign 1!:0 or 1!:6, don't provide this
> information: for directories, always the 'd' flag is set even if the
> directory is just linked.
> At the moment, my workaround is to use
>
> 2!:0 'ls -Al'
>
> and to check if 'l' is the first character of each output line.
>
> --
> View this message in context:
> http://www.nabble.com/Unix-symbolic-links-tp23884582s24193p23884582.html
> Sent from the J Programming mailing list archive at Nabble.com.
>
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>



-- 
Devon McCormick, CFA
^me^ at acm.
org is my
preferred e-mail
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to