This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: substr


Randall R Schulz wrote:
> Dear Elegant,

thank you kindly for calling me that, but my real name is Gilgamesh, 
Elegant is part of my employers name.

> 
> Please be specific about what program implements the "expr substr" 
> command. The phrase "the command line" is not singly defined on any Unix 
> (or Unix-like) system extant today.
'usr/bin/expr.exe' is provided by sh-utils ( 
http://cygwin.com/cgi-bin2/package-cat.cgi?file=sh-utils/sh-utils-2.0-2&grep=expr 
)

I'm not exactly sure if it is a builtin of tcsh/bash/ksh/ash, but I do 
know it should be available outside a shell on a system that uses SUSv2 
( http://www.opengroup.org/onlinepubs/007908799/xcu/expr.html ) as a 
guideline(which Cygwin as a distribution tries to do AFAIK).

When I wrote my earlier post I didn't have a web connection but I did 
double check on a HP-UX ksh terminal that it should work as I thought it 
would. It even works using from a cmd.exe shell from W2K.

Regards,

Gilgamesh Nootebos
-- 
Gilgamesh Nootebos
@: nootebos@quicknet.nl

A great nation is any mob of people which produces at least one honest
man a century.


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]