SEMICOLON = "YES" is not a correct comparison op (should use ==),
it's assignment! As a result, sub(";1$", "", name) was always executed.
Untested - I have no idea when SEMICOLON is not "YES"
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
There is a simple bug in iso9660 helper:
if (name ~ /^\.\.?/) next
means "skip all lines which start with one or two dots".
Author probably meant:
if (name ~ /^\.\.?$/) next
I propose to not be cryptic and just check both possibilities separately.
The below trivial patch was tested to work: now I see
the file named ".dot" in a test iso file.
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
* 3543_mcview_not_found:
(mcview_do_search): clarify seach start and end positions.
(mcview_do_search): cleanup variables.
Ticket #3543: mcview: "Not found" result isn't reported in some cases.
* 2742_ash:
revert changes related to BASH shell prompt
Code refactoring
Improve subshell chapter in online help
Minor code changes.
New subshell types Busybox ash + Debian ash (dash) and some more enhancements plus fish chdir bugfix
Make MC's special commands not show up in bash's history and also suppress consecutive identical commands.
Ticket #2742: [Subshell] Support for ash + bugfixes for bash, fish
* 3420_cleanup: (35 commits)
Reimplement handling of ev_vfs_print_message_t message.
Fix typos.
Ticket #3539: fix reported -Wshadow warning with gcc 4.6.x
(vfs_get_current_dir): avoid string duplication.
mountlist: refactoring: reimplement mount list using GSList.
Sync with gnulub c6148bca89e9465fd6ba3a10d273ec4cb58c2dbe.
mcview: zero extension of char to int.
Ticket #3522: (edit_suggest_current_word): fix memory leak.
Ticket #3521: (edit_load_macro_cmd): fix memory leak.
Ticket #3520: free editor macros when closing mc.
(prepend_error_and_exit): fix format.
Clarify __attribute ((format (printf))) usage.
Fix calls of vfs_print_message().
Fix calls of fish_command().
(gauge_callback): fix draw of progress bar.
Rename mcview_t back to WView to be consistent with other widget names.
src/editor/editbuffer.c: fix typo.
Add default cases for switch(){} construction in smbfs
(nice_cd): use INPUT_LAST_TEXT.
Ticket #3495:(edit_ext_cmd): use INPUT_LAST_TEXT.
...
src/filemanager/dir.c: In function 'dir_list_grow':
src/filemanager/dir.c:263:14: warning: declaration of 'clear' shadows a global declaration [-Wshadow]
src/viewer/datasource.c: In function 'mcview_load_command_output':
src/viewer/datasource.c:398:16: warning: declaration of 'pipe' shadows a global declaration [-Wshadow]
(This not occur with gcc 4.7 or higher).
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
mountlist: add me_mntroot field on Linux machines.
Populate me_mntroot in mount_entry so Linux machines based on
/proc/self/mountinfo can distinguish between bind mounts and original
mounts. In reality bind mounts aren't treated differently than
mountroot=/ mounts by the kernel, but the user often wants these bind
mounts distinguished.
Currently, this in not used in mc, but probably can be used in future.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>