> From: David Sastre > Please test if > > [ -e "${p}" ] && read -r PRINTER < "${p}" && PRINTER=${PRINTER%%,*} > > works as expected.
No, it doesn't work, probably due to bash subshell or something, as separating the final assignment from the command line *does* work: $ [ -e "${p}" ] && read -r PRINTER < "${p}" && PRINTER=${PRINTER%%,*} $ echo $PRINTER \\tmsdc2\TMSEngineering,winspool,Ne02: $ PRINTER=${PRINTER%%,*} $ echo $PRINTER \\tmsdc2\TMSEngineering $ --Ken Nellis