SPLIT_FILE = 0,
SPLIT_DIR = 1,
SPLIT_SUBDIR = 2,
-
-/* Bits in G.all_fmt: */
-/* what files will be displayed */
-DISP_DIRNAME = 1 << 9, /* 2 or more items? label directories */
};
/* -Cadi1l Std options, busybox always supports */
# define G_show_color 0
#endif
smallint exit_code;
- unsigned all_fmt;
+ smallint show_dirname;
#if ENABLE_FEATURE_LS_WIDTH
unsigned terminal_width;
# define G_terminal_width (G.terminal_width)
struct dnode **subdnp;
for (; *dn; dn++) {
- if ((G.all_fmt & DISP_DIRNAME)
- || (option_mask32 & OPT_R)
- ) {
+ if (G.show_dirname || (option_mask32 & OPT_R)) {
if (!first)
bb_putchar('\n');
first = 0;
*--argv = (char*)".";
if (argv[1])
- G.all_fmt |= DISP_DIRNAME; /* 2 or more items? label directories */
+ G.show_dirname = 1; /* 2 or more items? label directories */
/* stuff the command line file names into a dnode array */
dn = NULL;