Configuration Information [Automatically generated, do not change]: Machine: i586 OS: linux Compiler: gcc -I/usr/src/packages/BUILD/bash-3.0 -L/usr/src/packages/BUILD/bash-3.0/../readline-5.0 Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='i586' -DCONF_OSTYPE='linux' -DCONF_MACHTYPE='i586-suse-linux' -DCONF_VENDOR='suse' -DLOCALEDIR='/usr/share/locale' -DPACKAGE='bash' -DSHELL -DHAVE_CONFIG_H -I. -I. -I./include -I./lib -O2 -march=i586 -mtune=i686 -fmessage-length=0 -Wall -D_FORTIFY_SOURCE=2 -g -D_GNU_SOURCE -Wall -pipe -g -fbranch-probabilities uname output: Linux linux 2.6.13-15-smp #1 SMP Tue Sep 13 14:56:15 UTC 2005 i686 i686 i386 GNU/Linux Machine Type: i586-suse-linux
Bash Version: 3.0 Patch Level: 16 Release Status: release Description: Problem 1: -------- Following is the code (in a shell script)which redirects find command output to a file called "src". But this command generates a file called "src?" instead. SOURCE_PATH="src" rm -f $SOURCE_PATH #Getting all OPS src files find ../../com/onmobile/noc/common -name *.java > src Problem 2: --------- Later I need to read the src file. To circumvent Problem 1, if I use the below code : SOURCE="$SOURCE_PATH?" $JAVA_HOME/bin/javac -classpath $CLASSPATH -d $OUTPUT_PATH -sourcepath < cat $SOURCE I receive following error: cat: No such file or directory Could this problem be solved? I'm facing this problem even in CentOS 10.0 Bash Version: GNU bash, version 3.1.17(1)-release (i686-redhat-linux-gnu) Repeat-By: Fix: Thanks, Pratiksha