On Jan 2, 2010, at 1:03 PM, Claus Assmann wrote: > On Sat, Jan 02, 2010, Jürgen Keil wrote: > [OpenSolaris Indiana: GNU?] > >> Well, it does have both the gnu utilities (/usr/gnu/bin) >> and the solaris counterparts, and in the default setup >> the /usr/gnu/bin directory is ahead of /usr/bin in $PATH. > > I simply removed /usr/gnu/bin from $PATH, but I still got vim instead > of vi[1] (in /usr/bin AFAIR), and bash as root sh. That's when I > stopped using it and looked for alternatives. If there is a way to > configure OpenSolaris to be(have) like Sun's Solaris (for which I > develop software and to which I'm used (besides *BSD)), then please > let me know. > > PS: [1] yes, vi on Solaris has some ugly restrictions, but nvi would > be a more appropriate alternative (just remove the restrictions, > don't change the behaviour).
The vi that was previously delivered was replaced with vim's vi compatibility mode. The reason? The vi traditionally delivered with Solaris is essentially completely unmaintained. As has been discussed before, much of the Solaris userland is being obsoleted, dropped, or replaced as appropriate in favour of maintained or modern versions of utilities. I know this may not please some people, but which would you rather have? A known buggy, unmaintained for years version of vi, or a recent version of vim with vi compatibility? With that said, you can often find the older versions of many utilities that have been obsoleted in /usr/has/bin. In this particular case, you can find the version of vi you are likely looking for as: /usr/has/bin/vi This move was intentional to get users to start using the alternative versions in hopes of exposing any shortcomings and to discourage usage of the old ones. -Shawn _______________________________________________ opensolaris-discuss mailing list [email protected]
