Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ksh regexp....bad substitution error.

Status
Not open for further replies.

aswolff

Programmer
Joined
Jul 31, 2006
Messages
100
Location
US
I am testing the following at the solaris command prompt and getting the below error. What am I doing wrong?

Code:
$ allfiles="fred.c alex.c"
$ echo $allfiles
fred.c alex.c
$ alljobs=${allfiles/c/o}
ksh: alljobs=${allfiles/c/o}: bad substitution

Any help is appreciated.
 
Hi

According to the man page that kind of expansion is available in the [tt]ksh[/tt] 93 version, but not in the [tt]ksh[/tt] 88. Sure you have the right one ?

Feherke.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top