public inbox for linux-8086@vger.kernel.org
 help / color / mirror / Atom feed
From: "Neil Holmes" <neil.holmes@zoom.co.uk>
To: jb1@btstream.com
Cc: Linux 8086 <linux-8086@vger.kernel.org>
Subject: RE: ash and String Manipulation
Date: Mon, 6 Jan 2003 11:12:27 -0000	[thread overview]
Message-ID: <DDENIOHFNLNMCGGDFDPCCEKGCJAA.neil.holmes@zoom.co.uk> (raw)
In-Reply-To: <Pine.LNX.4.33.0301040123400.17076-100000@olympus.btstream.com>

Thanks for this. I am now working on alternative ways.

Looks like I am having to flex my not-so-advanced 'C' skills ! Its going
well though.

Thanks

Neil

-----Original Message-----
From: linux-8086-owner@vger.kernel.org
[mailto:linux-8086-owner@vger.kernel.org]On Behalf Of jb1@btstream.com
Sent: 04 January 2003 09:50
To: Neil Holmes
Cc: Linux 8086
Subject: Re: ash and String Manipulation


On Fri, 3 Jan 2003, Neil Holmes wrote:

> Not sure if there is anyone out there in elks-land that can make some
> suggestions here ?
	...
> Here is a segment of a test script from my EDE Package work :-
>
> string="advent,Text Adventure Game,advent.tar"
> a=`expr index "$string" ,`
> title=${string:0:$a-1}
	...
	...
> "expr index" command does work but I don't seem to be able to find enough

My RedHat 7.0 installation has /usr/bin/expr (and /bin/ash). Changing:
	a=`expr index "$string" ,`
to:
	a=`/usr/bin/expr index "$string" ,`
gives the same result when the first line of the script is:
	#!/bin/ash
as the original line does when the first line of the script is:
	#!/bin/bash

ELKS doesn't seem to have the external "expr" executable but, since it's
part of RedHat's "sh-utils" package, Linux source code should be easy to
find. I have no idea if it needs modification to compile for ELKS.

Unfortunately, "${ ... }" still doesn't work. You might have to find some
other external executable(s) for those lines.

-
To unsubscribe from this list: send the line "unsubscribe linux-8086" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html




  reply	other threads:[~2003-01-06 11:12 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-01-03 21:24 ash and String Manipulation Neil Holmes
2003-01-04  9:50 ` jb1
2003-01-06 11:12   ` Neil Holmes [this message]
2003-01-07 11:04     ` jb1
2003-01-07 11:02       ` Neil Holmes
2003-01-07 12:42       ` Alan Cox
2003-01-07 12:12         ` Al Riddoch
2003-01-07 12:52           ` Paul Nasrat
2003-01-07 13:57             ` Al Riddoch
2003-01-09  9:37             ` sed-1.3 problems [WAS: Re: ash and String Manipulation] jb1

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=DDENIOHFNLNMCGGDFDPCCEKGCJAA.neil.holmes@zoom.co.uk \
    --to=neil.holmes@zoom.co.uk \
    --cc=jb1@btstream.com \
    --cc=linux-8086@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox