On Sun, Feb 20, 2011 at 02:40:50PM -0500, Dave Reisner wrote: > Reuse the same logic as when --raw is set to avoid clobbering flags. > Invoking lsblk with -ni should yield identical results as with -in. > > Signed-off-by: Dave Reisner <d@xxxxxxxxxxxxxx> > --- > misc-utils/lsblk.c | 3 ++- > 1 files changed, 2 insertions(+), 1 deletions(-) > > diff --git a/misc-utils/lsblk.c b/misc-utils/lsblk.c > index 9b00826..f44ebf6 100644 > --- a/misc-utils/lsblk.c > +++ b/misc-utils/lsblk.c > @@ -946,7 +946,8 @@ int main(int argc, char *argv[]) > return EXIT_FAILURE; > break; > case 'i': > - tt_flags = TT_FL_ASCII; yeah, this is bug > + tt_flags &= ~TT_FL_TREE; /* disable the default */ > + tt_flags |= TT_FL_ASCII; /* enable ascii */ I think that tt_flags |= TT_FL_ASCII should be enough. Why do you want to disable the tree-like output at all? Note that the same thing we use in findmnt(8), "findmnt -a" uses ASCII chars instead of UTF8 for tree formating. Karel -- Karel Zak <kzak@xxxxxxxxxx> http://karelzak.blogspot.com -- To unsubscribe from this list: send the line "unsubscribe util-linux" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html