In the last episode (Jul 23), Dan Nelson said:
> In the last episode (Jul 23), [EMAIL PROTECTED] said:
> > But I would think that this means the shell couldn't open the
> > directory to get the filenames to match?
> 
> That's also a possibility.  You can use cat to tell the difference
> though..  Here's a "ls" shell function that knows the difference
> between an empty directory and one it can't read.  Unfortunately, it
> requires cat, whereas plain "echo *" is done without forking:
> 
> ls () { cat . > /dev/null && echo * ; }

Heh. I knew there was a way :)

ls () { < . > /dev/null && echo * ; }

-- 
        Dan Nelson
        [EMAIL PROTECTED]
_______________________________________________
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to