Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Misleading typo in the wiki #1871

Closed
zhangxiaoxing opened this issue Apr 24, 2024 · 1 comment
Closed

Misleading typo in the wiki #1871

zhangxiaoxing opened this issue Apr 24, 2024 · 1 comment
Labels

Comments

@zhangxiaoxing
Copy link

The wiki Usage - Program options section, foot notes No. 4 says

"The keys for option -T are apparent disk usage / disk usage / extension / revision / size / time / version. Capitalize to reverse (except r)".

From the following excerpt from the source code, I'm fairly certain the "revision" should actually be "reverse". This is causing confusions, I guess we should correct it.

case 'e': /* File extension */
	cfg.extnorder ^= 1;
	cfg.sizeorder = 0;
	cfg.timeorder = 0;
	cfg.apparentsz = 0;
	cfg.blkorder = 0;
	cfg.reverse = 0;
	entrycmpfn = &entrycmp;
	break;
case 'r': /* Reverse sort */
	cfg.reverse ^= 1;
	entrycmpfn = cfg.reverse ? &reventrycmp : &entrycmp;
	break;
case 's': /* File size */
	cfg.sizeorder ^= 1;
	cfg.timeorder = 0;
	cfg.apparentsz = 0;
	cfg.blkorder = 0;
	cfg.extnorder = 0;
	cfg.reverse = 0;
	entrycmpfn = &entrycmp;
	break;
@N-R-K
Copy link
Collaborator

N-R-K commented Apr 24, 2024

Thanks, fixed.

@N-R-K N-R-K closed this as completed Apr 24, 2024
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants