Commit Graph

7703 Commits

Author SHA1 Message Date
Sergei Trofimovich
9175c6babd Merge branch 'mc-4.6'
* mc-4.6:
  ChangeLog/NEWS: added entry for #181 ticket (copy to deleted dir)
2009-01-29 01:34:33 +02:00
Sergei Trofimovich
1da3919eb1 ChangeLog/NEWS: added entry for #181 ticket (copy to deleted dir)
Signed-off-by: Sergei Trofimovich <slyfox@inbox.ru>
2009-01-29 01:34:17 +02:00
Sergei Trofimovich
abc295cee2 Merge branch 'mc-4.6'
* mc-4.6:
  Now a trailing slash will only be added in copy & move dialogs if the path itselfs
  copy/move dialog: add trailing '/' to default destination path (fix #181)
2009-01-29 01:12:09 +02:00
Patrick Winnertz
66c9fde141 Now a trailing slash will only be added in copy & move dialogs if the path itselfs
doesn't already have a trailing slash.

Signed-off-by: Patrick Winnertz <winnie@debian.org>
2009-01-28 23:54:04 +01:00
Sergei Trofimovich
689164a6bc copy/move dialog: add trailing '/' to default destination path (fix #181)
Problem:
  When user tried to copy/move file (F5/F6) - he could run into trouble if
  destination directory is removed (it can be removed by user from another mc session).
  Operation is performed and(!) file is renamed.
  So when when user issues 'cp /tmp/a.file /tmp/b' - he gets not expected /tmp/b/a.file,
  but /tmp.b !

Solution:
  Add trailing space for destination directory for non-local copy/move(F5/F6) operations.
  So operation, given above will take form: 'cp /tmp/a.file /tmp/b/' disambiguating b
  meaning.

Signed-off-by: Sergei Trofimovich <slyfox@inbox.ru>
2009-01-28 23:31:39 +02:00
Patrick Winnertz
cad6ffd2bb Merge branch 'mc-4.6' 2009-01-27 23:03:06 +01:00
Patrick Winnertz
bef72946fd Merge branch 'mc-4.6' of ssh://midnight-commander.org:2222/git/mc into mc-4.6 2009-01-27 22:55:40 +01:00
Patrick Winnertz
77d2839de5 Merge branch '203_keypad_putty' into mc-4.6 2009-01-27 22:55:16 +01:00
Enrico Weigelt, metux IT service
e34e748666 Merge commit 'origin/mc-4.6' 2009-01-27 22:53:12 +01:00
Enrico Weigelt, metux IT service
2f6f6af425 fixed comments to /* ... */ 2009-01-27 22:04:12 +01:00
Patrick Winnertz
3dd8716646 Not only comment it out but removing it 2009-01-26 21:51:40 +01:00
Patrick Winnertz
753a663d2d Merge branch 'mc-4.6' 2009-01-26 21:44:42 +01:00
Patrick Winnertz
89d3cbddd2 Removed unneeded var to make build process a bit cleaner 2009-01-26 21:29:25 +01:00
Patrick Winnertz
2a6edc23c5 Merge branch 'mc-4.6' 2009-01-26 19:12:18 +01:00
Patrick Winnertz
d79dfa1324 Some minor fixes to the german locale 2009-01-26 19:11:29 +01:00
Patrick Winnertz
c63d259314 Somehow the merge duplicated Enricos Changelog entry. 2009-01-26 17:58:30 +01:00
Patrick Winnertz
bcc78efe17 Merge branch '167_locale_german' 2009-01-26 17:55:41 +01:00
Patrick Winnertz
17c0e75e62 Unfuzzied one more german string 2009-01-26 17:54:21 +01:00
Patrick Winnertz
a740f8ed7b Some more fuzzy translations reviewed 2009-01-26 17:54:21 +01:00
Patrick Winnertz
6753c71e23 Reedited de.po with poedit.. Added some more translations and restructured the rest 2009-01-26 17:54:20 +01:00
Patrick Winnertz
0d35576a6d Add changelog entry about this change, as everything we do should be documented there 2009-01-26 17:54:20 +01:00
Patrick Winnertz
984d97fdf5 Add some minor fixes concerning spelling issues 2009-01-26 17:53:38 +01:00
Enrico Weigelt, metux IT service
fae850368d ... 2009-01-26 17:53:38 +01:00
Enrico Weigelt, metux IT service
4118f13d89 po/de.po: some minor changes 2009-01-26 17:53:38 +01:00
Patrick Winnertz
7abcb66aba Merge branch 'mc-4.6' 2009-01-26 16:56:24 +01:00
Patrick Winnertz
1fd3aa61d6 Merge branch '10_fish_whitespace_symlink_issue' into mc-4.6
Conflicts:
	ChangeLog
2009-01-26 16:55:52 +01:00
Patrick Winnertz
ea5cfade55 Add code snipplet by il.smind which should fix issues with putty and
mc (mc over ssh on a putty console)
 - to reproduce try this:
    1) run 'putty'; login to remote host
    2) run mc
    3) press key '/' on keypad. You will see menu that is called when you press the F2
    4) Go to 'Learn keys' (simple call dialog)
    5) just exit from 'learn keys' dialog (without any changes)
    6) 3) press key '/' on keypad again. You will see '/' symbol in command line.
2009-01-26 16:21:06 +01:00
Mikhail S. Pobolovets
e3a82ba1d8 Signed-off-by: Mikhail S. Pobolovets <styx.mp@gmail.com>
Automatic new directory(Mkdir, F7) name filling.
Can be configured (on|off) in 'Configure options'.
2009-01-26 13:33:13 +02:00
Patrick Winnertz
881ff40b3d Merge branch 'mc-4.6' 2009-01-26 10:30:14 +01:00
Patrick Winnertz
74dadcc258 Added rev3 of the patch attached to the bugreport 2009-01-26 00:34:50 +01:00
Patrick Winnertz
e1572aefd3 Remove embedded function and use instead the regex directly as we doesn't need
more lines of code as really necessary.
 The regex stuff is taken from this site:
   http://www.slac.stanford.edu/slac/www/resource/how-to-use/cgi-rexx/cgi-esc.htm
2009-01-25 22:52:24 +01:00
Patrick Winnertz
26992b5e0a Replaced 6 with & as & where meant 2009-01-25 20:23:56 +01:00
Patrick Winnertz
73813916e2 Added changelog notice about the fixed fish behaviour.
Used there the emailaddress of me and slyfox
2009-01-25 20:23:33 +01:00
Sergei Trofimovich
8a12b5e187 fish: fixed forgotten '\\' special char in perl escaping
Signed-off-by: Sergei Trofimovich <slyfox@inbox.ru>
2009-01-25 20:22:29 +01:00
Sergei Trofimovich
a8779af1aa fish: fixed handling of files with spaces, quotes, etc.
Changes:
 * removed "" from all operations, because shells do not like it:
    $ LANG=C ls "//\ a\ -\>\ b\ \"\"\""
    ls: cannot access //\ a\ -\>\ b\ """: No such file or directory
    $ [sf] ~:LANG=C ls //\ a\ -\>\ b\ \"\"\"
    // a -> b """
 * transited to mhl escaping function in vfs/fish.c
 * fixed vast majority of FISH ops in respect to special chars

Signed-off-by: Sergei Trofimovich <slyfox@inbox.ru>
2009-01-25 20:22:29 +01:00
Sergei Trofimovich
a944b8ca5b fish: partially fixed perl backend for FISH
Broken:
 * spacy files are still broken (like " a b")
Changes:
 * vfs/fish.c learned to parse 'R' (raw filemode)
 * fixed perl backend escaping

Signed-off-by: Sergei Trofimovich <slyfox@inbox.ru>
2009-01-25 20:22:29 +01:00
Sergei Trofimovich
636b1ff16f fish: added handling for escaped characters
Changes:
 * mhl/string.h achieved new function: mhl_str_dup_range
 * fish: added handling for quoted string (:"enc" and :"enc1" -> "enc2")

Signed-off-by: Sergei Trofimovich <slyfox@inbox.ru>
2009-01-25 20:22:29 +01:00
Sergei Trofimovich
3884370289 fish: one step closer to working state
!!!WARNING!!!: FISH is still broken
Changes
 * fixed sed fallback (added escaping)
 * fixed FISH hangup (introduced earlier in perl changes)
 * added FISH 500 if perl script dies somehow (no more FISH hangups on dir list path!)
 * added '#if 0' in vfs/fish.c:fish_dir_load() - handy to debug

Signed-off-by: Sergei Trofimovich <slyfox@inbox.ru>
2009-01-25 20:22:29 +01:00
Patrick Winnertz
05a2491681 Argh.. we need even more escaping since this runs in c which executes
a shell script which executes then a perl script.... this uses then " as output in printf:
 --> therefore we need up to 5 backslashes
2009-01-25 20:22:29 +01:00
Patrick Winnertz
61dee5baa3 Removed a % which I accidentially overviewed the first time 2009-01-25 20:22:29 +01:00
Patrick Winnertz
837aece56f Some fixes to the new fish get dirlisting code. One issue is remaining. 2009-01-25 20:22:28 +01:00
Patrick Winnertz
b198432f06 Add some whitespace fixes which are also used to make symlinks work correctly 2009-01-25 20:22:28 +01:00
Patrick Winnertz
1667b696b7 Add new read dir stuff based on perl.
- please note that this patch won't work right now
2009-01-25 20:22:28 +01:00
Patrick Winnertz
01ef2aaf80 Revert slavaz patch because this was something unrelated to not working links via fish.
this indeed belongs into ticket:149.
2009-01-25 20:22:28 +01:00
Slava Zanko
a202cac66b Changes in directory listing format:
- check if remote have a 'test' utility.
  If 'test' exists - use it for recognize symlinks (test -L)
  and forming "L<symlink>" string in output
- Restore part of source code for handling "L<symlink>"
- check if 'ls' command support option '-Q' and use it if supported
- FIXME: need to write fish_get_unquoted_filename
- FIXME: need to rewrite algorithm of parsing ' -> ' substring
  (relative to -Q option)

New logic will correct show symlinks on lot of OSes, but in some
pure OSes need to review...
2009-01-25 20:22:28 +01:00
Patrick Winnertz
56e02e2848 Remove case 'L' check as this was never implemented as it seems... 2009-01-25 20:22:28 +01:00
Patrick Winnertz
5493da68a2 Remove vars which are not needed 2009-01-25 20:22:28 +01:00
Patrick Winnertz
b166e7f232 Update Slavaz patch to work correctly on files called "foo -> bar" 2009-01-25 20:22:28 +01:00
Patrick Winnertz
a320431503 We will release 4.6.2 and not 4.6.2-pre1. Therefore setting the version
correct in configure.ac
2009-01-25 18:22:35 +01:00
Patrick Winnertz
f26bcf3919 Add the bugs to NEWS which will be fixed by the 4.6.2 release 2009-01-25 18:07:17 +01:00