mirror of
https://github.com/9fans/plan9port.git
synced 2025-01-27 11:52:03 +00:00
Make ls -lF work.
This commit is contained in:
parent
91fb6aaa3d
commit
c2ab969eca
1 changed files with 5 additions and 6 deletions
11
src/cmd/ls.C
11
src/cmd/ls.C
|
@ -227,17 +227,16 @@ format(Dir *db, char *name)
|
||||||
db->qid.type);
|
db->qid.type);
|
||||||
if(lflag)
|
if(lflag)
|
||||||
Bprint(&bin,
|
Bprint(&bin,
|
||||||
Qflag? "%M %C %*ud %*s %s %*llud %s %s\n" : "%M %C %*ud %*s %s %*llud %s %q\n",
|
"%M %C %*ud %*s %s %*llud %s ",
|
||||||
db->mode, db->type,
|
db->mode, db->type,
|
||||||
vwidth, db->dev,
|
vwidth, db->dev,
|
||||||
-uwidth, db->uid,
|
-uwidth, db->uid,
|
||||||
db->gid,
|
db->gid,
|
||||||
(int)(glwidth-strlen(db->gid)), db->length,
|
(int)(glwidth-strlen(db->gid)), db->length,
|
||||||
asciitime(uflag? db->atime : db->mtime), name);
|
asciitime(uflag? db->atime : db->mtime));
|
||||||
else
|
Bprint(&bin,
|
||||||
Bprint(&bin,
|
Qflag? "%s%s\n" : "%q%s\n",
|
||||||
Qflag? "%s%s\n" : "%q%s\n",
|
name, fileflag(db));
|
||||||
name, fileflag(db));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
Loading…
Reference in a new issue