ksh 2014-06-25 beta issues an odd error while running the following pipeline interactively, but works when the pipeline is run from a script:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ $ echo $SHELL /opt/ksh/2014-06-25/bin/ksh $ type ksh ksh is a tracked alias for /opt/ksh/2014-06-25/bin/ksh $ type sqlite3 sqlite3 is a tracked alias for /usr/bin/sqlite3 $ sqlite3 t1.db 'create table t (x integer); insert into t values (1)' $ sqlite3 t2.db 'create table t (x integer); insert into t values (2)' $ ls *.db t1.db t2.db $ find . -name '*.db' | while read -r db; do sqlite3 $db 'select * from t'; done sqlite3: sqlite3: cannot execute [Exec format error] sqlite3: sqlite3: cannot execute [Exec format error] $ cat test.sh find . -name '*.db' | while read -r db; do sqlite3 $db 'select * from t'; done $ ksh test.sh 1 2 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ This was tested on OS X 10.7.5. -- Nathan Weeks IT Specialist USDA-ARS Corn Insects and Crop Genetics Research Unit Crop Genome Informatics Laboratory Iowa State University http://weeks.public.iastate.edu/ _______________________________________________ ast-users mailing list ast-users@lists.research.att.com http://lists.research.att.com/mailman/listinfo/ast-users