Discussion:
[Nano-devel] Fwd: [PATCH] support globs in include paths
Ντέντος Σταύρος
2018-11-13 17:23:40 UTC
Permalink
Hello,

I read the patch applied at
https://lists.gnu.org/archive/html/nano-devel/2014-03/msg00080.html

However, I have an corner case:
What happens if, while applying a "standard" configuration, the glob
returns nothing?

# ls -lah .nano/*.nanorc
ls: cannot access '.nano/*.nanorc': No such file or directory
# ls -lah .nano
total 8.0K
drwxr-xr-x 2 root root 4.0K Nov 13 16:52 .
drwx--x--x 23 root root 4.0K Nov 13 19:13 ..
# nano -V
GNU nano, version 2.5.3
(C) 1999..2016 Free Software Foundation, Inc.
Email: ***@nano-editor.org Web: http://www.nano-editor.org/
Compiled options: --disable-libmagic --disable-wrapping-as-root
--enable-utf

Can this be an error that doesn't stop execution?

ΝτέΜτος Σταύρος
Benno Schulenberg
2018-11-13 18:52:22 UTC
Permalink
Post by Ντέντος Σταύρος
I read the patch applied
at https://lists.gnu.org/archive/html/nano-devel/2014-03/msg00080.html
What happens if, while applying a "standard" configuration, the glob returns nothing?
Nothing happens. Nano will read zero syntax files, so nothing
will get colored in any file.
Post by Ντέντος Σταύρος
Can this be an error that doesn't stop execution?
The error does not stop execution. Or do you mean that nano waits
and asks to press Return? More recent nanos don't wait and ask that
question any more. So, you may want to build and install 3.2.

(The error message, though, is a bit silly: Error expanding ...: Success.
That could be improved.)

Benno
Benno Schulenberg
2018-11-19 11:14:09 UTC
Permalink
Post by Benno Schulenberg
Post by Ντέντος Σταύρος
What happens if, while applying a "standard" configuration, the glob returns nothing?
(The error message, though, is a bit silly: Error expanding ...: Success.
That could be improved.)
Fixed in git, commit d3f0d32e:

http://git.savannah.gnu.org/cgit/nano.git/commit/?id=d3f0d32e

Benno

Loading...