in reply to Subtleties of files and directories

In general no. File operators and directory operators are not compatable with each other. You can test things out and see for yourself. Hey, what's the worst that could happen? Don't test it out as root though. :)

It might work for some things, but don't rely on it.*

*And at one point in Unix's history they were compatable to a large extent. It was entirely possible to say "ex /tmp" and have a directory listing pulled up in your editor. (SysVR3 anyone?)

  • Comment on Re: Subtleties of files and directories

Replies are listed 'Best First'.
Re: Re: Subtleties of files and directories
by premchai21 (Curate) on Mar 24, 2001 at 01:38 UTC
    >*And at one point in Unix's history they were compatable to a large extent. It was entirely possible to say "ex /tmp" and have a directory listing pulled up in your editor. (SysVR3 anyone?)

    Actually, emacs still does this. Try saying emacs /tmp instead, using dired-mode.