[prev in list] [next in list] [prev in thread] [next in thread]
List: ast-users
Subject: -DSHOPT_CMDLIB_BLTIN -DSHOPT_CMDLIB_DIR and /bin linking to /usr/bin
From: roland.mainz () nrubsig ! org (Roland Mainz)
Date: 2006-05-15 19:11:54
Message-ID: 44690AA2.782628BA () nrubsig ! org
[Download RAW message or body]
Glenn Fowler wrote:
[snip]
> for those that don't know, ksh93 builtins can be associated with a PATH directory
> if that directory is hit during a search for a command, and the
> command is also a builtin, then the builtin is used
Is there an easy way to allow multiple dirs in SH_CMDLIB_DIR ? In
Solaris /bin is a soft link to /usr/bin - but the builtin commands in
Solaris ksh93 only appear in /bin:
-- snip --
% builtin | /usr/bin/fgrep "/"
/bin/basename
/bin/cat
/bin/chmod
/bin/cmp
/bin/cut
/bin/dirname
/bin/head
/bin/logname
/bin/mkdir
/bin/uname
/bin/wc
-- snip --
... but Solaris scripts madly reference them with both
"/usr/bin/name_of_program" and "/bin/name_of_program" (or use something
like "PATH=/usr/bin:/bin" etc.), sometimes even within the same
script... ;-(
IMO both "/usr/bin/name_of_program" and "/bin/name_of_program" should be
listed by % builtin | /usr/bin/fgrep "/" # if /bin/ is a link to
/usr/bin/ ... or not ?
Comments/ideas/suggestions welcome...
----
Bye,
Roland
--
__ . . __
(o.\ \/ /.o) roland.mainz@nrubsig.org
\__\/\/__/ MPEG specialist, C&&JAVA&&Sun&&Unix programmer
/O /==\ O\ TEL +49 641 7950090
(;O/ \/ \O;)
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic