Repository navigation
Replies: 3 comments 1 reply
|
You can use an alias, or a wrapper script. |
|
The reason none of the three spellings work is that const char * const env_opts = xgetenv(env_cfg[NNN_OPTS], NULL);
int env_opts_id = env_opts ? (int)xstrlen(env_opts) : -1;
while ((opt = (env_opts_id > 0
? env_opts[--env_opts_id]
: getopt(argc, argv, "aAb:BcCdDeEfF:gHiJKl:nNop:P:QrRs:St:T:uUVxz0h"))) != -1) {Two consequences, and between them they cover all three attempts. Options that take an argument can't take one from case 'T':
if (env_opts_id < 0)
sort = (uchar_t)optarg[0];
break;
Each character is read as a separate flag, back to front ( default:
usage();
return EXIT_FAILURE;
So That's where the "path must be absolute" note comes from: the key is looked up per directory ( Which leaves the alias or wrapper N-R-K mentioned as the way to get a global default: alias n='nnn -T v'
|
|
Implemented at commit 3529500. Thank you for your patience. I have been planning to do this for a while but this is a significant change and required time. |
Uh oh!
There was an error while loading. Please reload this page.
#1557 states the problem, was closed †
Q. how to permanently set the sort order for ALL with a configuration setting?
NNN_OPTSORNNN_ORDERet al?As per the documentation, 'Path must be absolute'
#1557 (comment)
#1557 (comment)
† and locked with a post telling people to go here, rather than actually providing any information.
All reactions