lundi, le 2 juin, 2003, Paul Davis nous a dit ceci:
> >This bit:
> >
> > ${xtmp:0:5}
> >
> >is a Bash-ism. Normal Bourne shells don't understand this. I'm guessing
> >that your system's /bin/sh isn't Bash. You might be able to put a
> >
> > SHELL=/bin/bash
>
> paul[2846]>which sh
> /bin/sh
> paul[2847]>ls -l /bin/sh
> lrwxrwxrwx 1 root root 4 Aug 16 2000 /bin/sh -> bash
> paul[2852]>bash -version
> GNU bash, version 1.14.7(1)
Looks like I guessed wrong. The only system I still have access to with
Bash 1.x on it isn't accessible right now, and the newer ones I do have
access to don't say when the ${foo:0:5} syntax was added.
Dunno why it's not working. You might try bash2, viz.:
------------------------------------------------------------------------------
21:34 [EMAIL PROTECTED]:~] 168 > /bin/bash -version
GNU bash, version 2.04.0(1)-release (i586-pc-linux-gnu)
Copyright 1999 Free Software Foundation, Inc.
21:35 [EMAIL PROTECTED]:~] 169 > /bin/bash
bash-2.04$ x=testvalue
bash-2.04$ echo ${x:0:5}
testv
bash-2.04$ exit
21:35 [EMAIL PROTECTED]:~] 170 >
------------------------------------------------------------------------------
Matt.
--
For a successful technology, reality must take precedence over public
relations, for nature cannot be fooled.
-- Richard P. Feynman
-------------------------------------------------------
This SF.net email is sponsored by: eBay
Get office equipment for less on eBay!
http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5
_______________________________________________
Alsa-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-devel