"Pavesi, Valdemar (NSN - US/Boca Raton)" wrote: > On 1/29/09, Valdemar Moreira Pavesi <valdemar.pavesi at nsn.com> wrote: > > I got the error BAD LINE 14 > > > > line 14 contain just it ' > > > > Do you think that it: > > > > IFS=' > > ' > > must be : > > > > IFS=' ' > > Try IFS=$'\'' > > I had tested IFS=$'\' and now there is no more error when I run rsh
IFS=$'\'' # sets the shell's field seperator to ' (single-quote). > In reality the IFS solution is doing : > > 945 tmpIFS=$IFS > 946 IFS='. ' > 947 set -- 'echo $2` What exactly are you trying to do here ? > 948 IFS=$tmpIFS > > KSH the default value of environment variable IFS is a blankspace, a tab > and a newline character. > > Is it equivalent to IFS=$'\'' ? No, this is equivalent to $ IFS=$' \t\n' # (ksh93 and bash support a new type of string literal which starts with $', then follows the ISO C quoting rules for string literals and is terminated with another single-quote character). ---- Bye, Roland -- __ . . __ (o.\ \/ /.o) roland.mainz at nrubsig.org \__\/\/__/ MPEG specialist, C&&JAVA&&Sun&&Unix programmer /O /==\ O\ TEL +49 641 3992797 (;O/ \/ \O;)