I am not sure if it a bug,

#!/bin/ksh
INFILENUM=$1

function read_line  {
                                                                              $
# Associate standard input with file descriptor 4
# and redirect standard input to $INFILENUM $

exec 4<&0
exec 0< $INFILENUM $

read LINE
echo $LINE
                                                                              $
# Restore standard input and close file
# descriptor 4 $

exec 0<&4
exec 4>&-
}

read_line

output

read_line: ./num.sh[23]: $: not found
read_line: ./num.sh[23]: $: not found

may someone explain it
regards,
---


--
igor denisov.

Reply via email to