Roland

Thanks for the explanation about the syntax.

$ IFS=$' \t\n' # 


Thanks!
Valdemar

 

-----Original Message-----
From: ksh93-integration-discuss-boun...@opensolaris.org
[mailto:ksh93-integration-discuss-bounces at opensolaris.org] On Behalf Of
ext Roland Mainz
Sent: Sunday, February 01, 2009 8:24 AM
To: Korn Shell 93 integration/migration project discussion
Subject: Re: [ksh93-integration-discuss] .ssh/environment Bad line 14 is
it

"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;)
_______________________________________________
ksh93-integration-discuss mailing list
ksh93-integration-discuss at opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/ksh93-integration-discuss

Reply via email to