./shells/osh, Port of the Sixth Edition UNIX shell

[ CVSweb ] [ Homepage ] [ RSS ] [ Required by ] [ Add to tracker ]


Branch: CURRENT, Version: 20100430nb1, Package name: osh-20100430nb1, Maintainer: jan+nbsd

Osh is an enhanced, backward-compatible port of the original sh(1)
that was used as the standard command interpreter through Sixth
Edition UNIX. It was also distributed with Seventh Edition UNIX
as osh. Its command language is a predecessor and subset of that
found in the Bourne shell and C shell.


Required to run:
[sysutils/etcutils]

Master sites:

SHA1: 7b8ff4ba099320433612e8e8e706a7305f7a595b
RMD160: 82d3b2e3dd4c229b314887cab7c074cc3dfb2700
Filesize: 100.557 KB

Version history: (Expand)


CVS history: (Expand)


   2010-05-07 14:02:45 by Julio M. Merino Vidal | Files touched by this commit (20) | Package updated
Log message:
Bump PKGREVISION to reflect the recent change in pkginstall/shells to use
etcutils to update /etc/shells.
   2010-05-02 12:31:12 by Thomas Klausner | Files touched by this commit (2) | Package updated
Log message:
Update to 20100430, from J.A. Neitzel in PR 43235:

1) osh globbing is now handled by the main osh process, allowing
(for example) `mkdir some_really_long_directory_name...  ; cd
some*...' and globbing for other special built-in commands as well.

2) A new, osh history-file-support feature has been added to save
the user's command-line history to the user $h/.osh.history file
if/when this file exists upon shell invocation.
   2010-01-05 12:21:42 by Thomas Klausner | Files touched by this commit (1) | Package updated
Log message:
Fix typo in previous.
Update was ok'd by dillo@
   2010-01-05 12:21:20 by Thomas Klausner | Files touched by this commit (2) | Package updated
Log message:
Update to 20091218, provided by J.A.Neitzel in PR 42536. Set LICENSE.

Changes:
1) This update fixes a compilation problem on AIX caused by not
wrapping WCOREDUMP(s) with #ifdef WCOREDUMP ... #endif.

2) General code cleanup and rechecking w/ splint(1) reduces
unnecessary code duplication and eases future maintenance.

3) This update adds the program name to osh diagnostics (e.g.,
"osh: syntax error") for the sake of user friendliness.
   2009-05-30 14:49:44 by OBATA Akio | Files touched by this commit (3) | Package updated
Log message:
Update osh to 20090527, per maintainer update request by PR#41509.

Upstream changes between osh-20081213 and osh-20090527 follow:

osh bug fixes:

1) This release fixes an `echo' bug that causes `echo ""' to print an
   unnecessary diagnostic.

2) It also fixes a `sigign' bug that can cause incorrect signal ignoring
   behavior for subshells.

New osh features:

1) This release adds `cd' as a synonym for the `chdir' special command.

2) It also adds $m as a special parameter for the value of the MANPATH
   environment variable.
   2008-12-13 15:14:49 by OBATA Akio | Files touched by this commit (2) | Package updated
Log message:
Update osh to 20081213, by maintainer's update request via PR 40157.

Upstream changes between osh-20081122 and osh-20081213 follow.

osh.c:
This release changes the effect of the `-v' command-line option so that,
in addition to printing non-blank command lines to the standard error,
it also prints each blank/empty command line as an empty line.

fd2.c, util.c:
This release changes the fd2 `-e' command-line option so that it
reflects the documented behavior.  For example, this change causes
invocation of `fd2 -ef file command' to redirect both conventional
output and diagnostic output from "command" to "file".
   2008-11-23 04:26:14 by Jeremy C. Reed | Files touched by this commit (4) | Package updated
Log message:
Update shells/osh
Add new maintainer. Thank you J.A.
The following is from PR #40006:

I would like to maintain this package if that is acceptable.
Thus, I added myself as MAINTAINER.

Changed files: DESCR, Makefile, PLIST, distinfo

Changes between osh-20080629 and osh-20081122 which affect the osh
package on the various pkgsrc platforms are described below.

------------------------------------------------------------------------
[osh-20081122]:
mkconfig:
        * Added a case for DragonFly BSD (uname -s == DragonFly).

osh.c:
        * Fixed a bug introduced in osh-20061230 where the shell
          incorrectly handles an unescaped terminating backslash (\)
          character at the end of string when the shell is invoked as
          `osh -c string'.  In this case, the terminating backslash
          causes the shell to incorrectly read from the standard input
          at the end of string.
          For example:

                % osh -c 'echo Hello\'
                to\
                you!
                Hello to you!

          This example should instead do nothing and exit w/ a zero
          status.  For `osh -c string', an unescaped terminating
          backslash should effectively turn string into a no-op.
          Now, it behaves as expected.

------------------------------------------------------------------------
[osh-20081026]:
Makefile:
        * Changed the "oshall" target to only build osh since the fd2,
          goto, and if utilities are now built into the shell.

        * Changed the "install-oshall" target to only install osh and
          its manual pages.  This includes the fd2.1, goto.1, and if.1
          manual pages since they are not fully documented elsewhere.

osh.c:
        * Renamed cmd_index() to cmd_lookup(), and changed the algorithm
          from a linear search to a binary search.

        * Added a base reallocation multiplier to glob() to reduce the
          number of realloc()s required for very large argument vectors
          while allowing the first malloc() to be a relatively small
          allocation for up to 126 matching file-name arguments.

util.c:
        * This is a new file for the integrated shell utilities.

        * Added a new `-e' command-line option to fd2 to simplify
          redirecting all conventional output to the standard error
          as diagnostic output.

        * Integrated the external `fd2', `goto', and `if' shell
          utilities as special built-in commands to improve shell
          performance.  Also, added `echo' as a special built-in
          command.  Osh executes each of these built-ins in a subshell.
          Consequently, the I/O for each can be redirected as before,
          and the argument list for each can be the result of a call to
          glob() as before.
   2008-07-18 16:58:32 by OBATA Akio | Files touched by this commit (2) | Package updated
Log message:
Update osh to 20080629, requested by PR 39067.

Significant changes include the following:

1) Support was added for 3 new command-line options: "-i", \ 
"-l", and "-v".

2) Support was added for 3 new rc files.

   *) This includes a system-wide "osh.oshrc",
      a system-wide "osh.logout", and a user ".osh.logout".

See http://v6shell.org/src/CHANGES for full details.