-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 03/18/2014 10:20 AM, Phillip Susi wrote: > On 3/18/2014 10:42 AM, Dave Kleikamp wrote: >> I'm not sure redirecting stdin should suppress the prompt. The >> -q flag does that (or -f). But it shouldn't trap. Looking at the >> code, it does that on purpose, calling abort(). I have no idea >> why it does that and I will fix it. > > Interactive prompts should be suppressed when the program is not > being run interactively. In other words, when stdin is not a tty. > > I ran into this problem because I was trying to extend the parted > test suite to include jfs and it just hung waiting for an answer to > a question that a human does not see since it is being run by a > script. Figuring out which mkfs.xxx variants need a magic flag to > do the right thing is not very nice.
It shouldn't hang, but if not told to specifically do something that requires confirmation, I believe it should just quit with an appropriate error message. It would be nice if all the mkfs.* variants behaved the same way. Shaggy -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQIcBAEBAgAGBQJTKHGxAAoJEDaohF61QIxkNvYP/3/beeeniXq63cam0AaLOlHC UPBm+ALdm4MFg/Op7xpOeeiS/eLtqjwPSLKqP9vVm4CL3B8F9Qo5Gxn5/BGH5SwE nj9ObLMGTu+zAp0et6NcrjtwhGH3XutAZfDhW4F8vmRvZEZhXm7+h2ac+nrE8+IL /CdA46sviO3JFm+mCkt6VSBLptEL14hV/NJDJ2QGbFuEz1VnUH7KRLqx/3sKiVAS u6fV992/fUtFjpOMgEiYcx9IJEmg0ho6PeOjMcg6A0v4XVhEp4qUTyELMz3k/t+I aFVMkNGi81seysk676Fr0vY8eRKDaEiSOLbC9zHrGZqDfGSq+ft9PUF99eJ8r6vm 66+2a+etJAaHNboJXSuRali8WBzj7VAjh+5g9DY0baL0Qi8JXIqbIR58Jf/BB0gd kciyifyw+COdsPsswQzXxq0kC76ieA1nchw2yNSHsiN+WdHxYRTKrMnZVlZWJJF1 fVCt08vhZwg3ganD2UqZOy00rM5640+L2lMFqspH75XeI7vAzqt+yY0ZVmKreJv5 3S9/jW4Eh7EDDiffH1l37bM5LDl6OvhMuHl3z8hpFGM7W1ew306JVla1AV4LbgSv ITH+oT7OTxz5LhCCk7msPc5ofIsq83U6wXqrXTPMH1dV0DGdRdQCV7sLU8rZ+ezD 9ERaBwDjgDYE8iUKNrNP =Xgq1 -----END PGP SIGNATURE----- ------------------------------------------------------------------------------ Learn Graph Databases - Download FREE O'Reilly Book "Graph Databases" is the definitive new guide to graph databases and their applications. Written by three acclaimed leaders in the field, this first edition is now available. Download your free book today! http://p.sf.net/sfu/13534_NeoTech _______________________________________________ Jfs-discussion mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jfs-discussion
