Hi Vincent,
Sorry, it doesn't work. The filesystem is always considered in binmode.
This is because you forgot the brackets in the awk regular expression !
I did ?
Here is the fixed line :
build_dir_mount_point=`df ${build_dir} | awk '/[0-9]%/{print $NF;}'`
Hmm, that looks just like the version I have here. Strange.
With this, a textmode filesystem fails as expected !
Good.
However, a textmode filesystem mounted in /mnt/cabinmodern is detected as
binmode and doesn't fail. Unfortunately, I always build my binutils in this
directory :-)
Oh come on, seriously ? OK, then we need a tighter grep. Something like:
is_binmode=`mount | grep "${build_dir_mount_point} " | grep
"\(binmode\)"`
Would you like to try this out please ?
Cheers
Nick
_______________________________________________
bug-binutils mailing list
bug-binutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-binutils