Hello.
  I have encountered a problem with typesetting the IFS variable. The
script:

#!/bin/ksh

function f1 {
    typeset -r IFS=" "

    echo "$(pwd)"
}

f1

is supposed to print the current working directory but ends up with:

ksh[8]: f1: line 5: IFS: is read only

Is this an expected behaviour?  What am I doing wrong?

Thanks for answers.

-- 
Tomáš Smetana
Base OS Software Engineer, Red Hat
RH IRC: #brno #devel #base-os; Freenode IRC: #fedora-devel

_______________________________________________
ast-users mailing list
[email protected]
https://mailman.research.att.com/mailman/listinfo/ast-users

Reply via email to