[Rd] What version is sh?

Prof Brian Ripley ripley at stats.ox.ac.uk
Tue Dec 30 08:54:46 MET 2003


It is ash, and a quck grep through the cygwin ash sources finds the 
version only used in the packaging.

On Mon, 29 Dec 2003, Duncan Murdoch wrote:

> On Mon, 29 Dec 2003 14:40:45 -0500, I wrote:
> 
> >I'm trying to write an automatic check of the toolset installation for
> >R.  It'll get all the tools to print their version numbers, and
> >complain if they aren't acceptable ones.
> >
> >However, I can't see how to get sh to print version information.  Is
> >there some way to do it?
> >
> >The sh I'm worried about is the one that comes with Cygwin, if there
> >isn't a standard approach.
> 
> Several people suggested the GNU standard "--version" command line
> option, which works for most of the Cygwin utilities, but not this
> one.  Dirk Eddelbeuttel said
> 
> >I'd suspect that it is one of the small shells which e.g. Debian calls them
> >ash and dash; these are used on boot floppies and the like where space is at
> >a premium.  As a consequence, they may not support all full-blown
> >command-line options. So to test the shell, you may need to run a small
> >shell script containing the features you want to make use of later.
> 
> I think it must be one of those.  The executable is about 1/8 the size
> of the bash executable.
> 
> Duncan Murdoch
> 
> ______________________________________________
> R-devel at stat.math.ethz.ch mailing list
> https://www.stat.math.ethz.ch/mailman/listinfo/r-devel
> 
> 

-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595



More information about the R-devel mailing list