* munch: Don't use head command. It doesn't exist everywhere.
[binutils-gdb.git] / gdb / munch
index a3d7ad0e4fb607ba7c74b2d2ed887c719d8f656d..26405a8d7caf3d52fd5ed773c99a235a3a39b6bf 100755 (executable)
--- a/gdb/munch
+++ b/gdb/munch
@@ -23,7 +23,7 @@ if test "`$MUNCH_NM main.o | egrep main | egrep FUNC | egrep GLOB`" != "" ; then
         's/^.*\(_initialize_[a-zA-Z0-9_]*\).*$/  {extern void \1 (); \1 ();}/'\
       | sort -u
 elif test "`$MUNCH_NM main.o | egrep '[TD] *_?main$'`" = "" ; then
-     if test "`$MUNCH_NM main.o | head -6 | egrep 'Subspace$'`" != "" ; then
+     if test "`$MUNCH_NM main.o | egrep 'Type    Subspace'`" != "" ; then
        # HP PA RISC compilers don't prepend underscores
        shift;
        $MUNCH_NM $* | egrep '_initialize_.*' | \