mirror of
https://github.com/9fans/plan9port.git
synced 2025-01-12 11:10:07 +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);
|
||||
if(lflag)
|
||||
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,
|
||||
vwidth, db->dev,
|
||||
-uwidth, db->uid,
|
||||
db->gid,
|
||||
(int)(glwidth-strlen(db->gid)), db->length,
|
||||
asciitime(uflag? db->atime : db->mtime), name);
|
||||
else
|
||||
Bprint(&bin,
|
||||
Qflag? "%s%s\n" : "%q%s\n",
|
||||
name, fileflag(db));
|
||||
asciitime(uflag? db->atime : db->mtime));
|
||||
Bprint(&bin,
|
||||
Qflag? "%s%s\n" : "%q%s\n",
|
||||
name, fileflag(db));
|
||||
}
|
||||
|
||||
void
|
||||
|
|
Loading…
Reference in a new issue