On Mon, May 20, 2002 at 09:05:52PM +0100, [EMAIL PROTECTED] wrote:
>
> bash-2.05a
2.05.9 here, it did work with a few other versions.
> I'm wondering about the "parts:0:1" should it be "parts:1:1"? I'll try that and let
>you know how it goes.
probably not, but try
parts=`echo $src | sed -e 'y+/+ +'`
in the line above. It is very easilly possible that quoting, escaping
and such works a little differently in cygwin. Next try some echo
statements to find out what values it gets and test whether the shell
was at all compiled with support for that substitution, eg try
this example:
# parts="a b c d e f g h i j"
# echo ${parts:0:1}
=> a
Also try to change #!/bin/sh into #!/bin/bash, it might make
a difference on some systems.
Richard