Sorting the global dir history

May 20, 2008
11,438
99
Syracuse, NY, USA
Steve (or anyone else interested) ...

I started a new thread because it would have been too difficult to find the earlier discussion of this.

You might want to check out ftp://lucky.syr.edu/4plugins/dirsort.zip.

It contains DIRSORT.EXE (syntax: DIRSORT [/R(everse)]) which will sort the global directory history list (and make all the drive letters uppercase because I find that easier to read).

I also have DIRSORT in a test version of the 4UTILS plugin but I'm hesitant to leave it there without some indication that folks will find it useful. So I'd appreciate feedback.

Rex, having all the drive letters in the same case is nice on the eyes. I imagine it would be a one-liner for you to do that when a directory is added to the list. Would you consider it?
 
May 20, 2008
11,438
99
Syracuse, NY, USA
No - it would break some third-party apps (like ClearCase).

No big deal but I'd really like to understand what you mean. How can capitalizing the drive letter of a case-insensitive path in a window shown by TCC break anything?
 

rconn

Administrator
Staff member
May 14, 2008
12,369
150
vefatica wrote:

> ---Quote (Originally by rconn)---
> No - it would break some third-party apps (like ClearCase).
> ---End Quote---
> No big deal but I'd really like to understand what you mean. How can capitalizing the drive letter of a case-insensitive path in a window shown by TCC break anything?

Some apps ported over from Linux/Unix (like ClearCase) ARE
case-sensitive. (At one time 4NT *did* capitalize the drive letter, and
it caused a surprising number of problems.)

Rex Conn
JP Software
 
May 20, 2008
11,438
99
Syracuse, NY, USA
Some apps ported over from Linux/Unix (like ClearCase) ARE
case-sensitive. (At one time 4NT *did* capitalize the drive letter, and
it caused a surprising number of problems.)

In this thread, I did not receive mail notification of my original post (of last night) or your most recent reply (now two hours after it). Is there no fixing this thing?
 
May 20, 2008
3,515
4
Elkridge, MD, USA
You might want to check out ftp://lucky.syr.edu/4plugins/dirsort.zip.

It contains DIRSORT.EXE (syntax: DIRSORT [/R(everse)]) which will sort the global directory history list (and make all the drive letters uppercase because I find that easier to read).

I also have DIRSORT in a test version of the 4UTILS plugin but I'm hesitant to leave it there without some indication that folks will find it useful. So I'd appreciate feedback.

Possibly a separate plug-in (4SORT) that can sort not only the directory history, but any one of the global tables. When sorting functions or aliases, it should use only the function or alias name as sort key. Command history sorting would be most useful if left parentheses and spaces preceding commands were ignored.

How do you ever get lower case drive letters into your directory history?
 
May 20, 2008
11,438
99
Syracuse, NY, USA
On Thu, 22 Jan 2009 10:44:18 -0600, Steve Fábián <> wrote:


>Possibly a separate plug-in (4SORT) that can sort not only the directory history, but any one of the global tables. When sorting functions or aliases, it should use only the function or alias name as sort key. Command history sorting would be most useful if left parentheses and spaces preceding commands were ignored.
>
>How do you ever get lower case drive letters into your directory history?

I don't know how they get in there but they do.

I am still not convinced there's any good reason to sort the command history.
Recent commands would no longer be recent; consecutive commands might no longer
be consecutive. I'd post the plugin code for DIRSORT if anyone wants to
elaborate on it or do similar things with the other lists.

One change that would help you (maybe Rex would consider it) is to do a wildcard
search on a partially-specified command line rather than trying to exactly match
the initial part (as I think it does now). For example, you enter "*for*type"
and invoke the command history and the history mechanism uses "*for*type*" (note
added "*") as a wildcard search criterion, finding, for example, "(for %f in
(*.txt) type %f) >> bigfile".
 

rconn

Administrator
Staff member
May 14, 2008
12,369
150
In this thread, I did not receive mail notification of my original post (of last night) or your most recent reply (now two hours after it). Is there no fixing this thing?

If you know of a way to convince the Chinese to stop sending several million emails per day to our mail server, that would help. (They're not getting through, but they're making it nearly impossible to do anything else.)

On a somewhat related note, I did fix the issue with the email headers last week, but despite the dozens of complaints I had received earlier, nobody actually seems to have noticed (or cared?) that it's working now.
 
May 20, 2008
603
0
Sammamish, WA
>
>
> On a somewhat related note, I did fix the issue with the email headers last
> week, but despite the dozens of complaints I had received earlier, nobody
> actually seems to have noticed (or cared?) that it's working now.
>
>

Hey! I'd stopped paying attention to the headers at all because they were
useless and annoying.

Thank you, thank you, thank you!!

--
Jim Cook
2009 Saturdays: 4/4, 6/6, 8/8, 10/10, 12/12 and 5/9, 9/5, 7/11, 11/7.
Next year they're Sunday.
 
May 20, 2008
3,515
4
Elkridge, MD, USA
rconn wrote:
| ---Quote (Originally by vefatica)---
| In this thread, I did not receive mail notification of my original
| post (of last night) or your most recent reply (now two hours after
| it). Is there no fixing this thing? ---End Quote---
|
| If you know of a way to convince the Chinese to stop sending several
| million emails per day to our mail server, that would help. (They're
| not getting through, but they're making it nearly impossible to do
| anything else.)

Is "@jpsoft.com" under attack, or the mail server in general?

| On a somewhat related note, I did fix the issue with the email
| headers last week, but despite the dozens of complaints I had
| received earlier, nobody actually seems to have noticed (or cared?)
| that it's working now.

I did notice with appreciation, but with so many other problems (esp. the
loss of V10 installability) I did not have a chance to send a KUDO.
--
Steve
 
May 20, 2008
11,438
99
Syracuse, NY, USA
On Thu, 22 Jan 2009 12:00:35 -0600, rconn <> wrote:


>---Quote (Originally by vefatica)---
>In this thread, I did not receive mail notification of my original post (of last night) or your most recent reply (now two hours after it). Is there no fixing this thing?
>---End Quote---
>
>If you know of a way to convince the Chinese to stop sending several million emails per day to our mail server, that would help. (They're not getting through, but they're making it nearly impossible to do anything else.)

I don't know how they're handling it but I wish something similar would happen
to the mail server I administer so I could see how effective IPSEC would be. I'd
use IPSEC (Unix should have it) to have the OS block specific IPs or vast
subnets. The mail server would never see them. But I don't know how effective
that would be against such a large number of connections.


>On a somewhat related note, I did fix the issue with the email headers last week, but despite the dozens of complaints I had received earlier, nobody actually seems to have noticed (or cared?) that it's working now.

I wouldn't have noticed it because quite a while ago I wrote and implemented an
extension ("policy") fo my mail server that turned the offending "From:" header
into a "X-om:" header.
 

rconn

Administrator
Staff member
May 14, 2008
12,369
150
rconn wrote:
| If you know of a way to convince the Chinese to stop sending several
| million emails per day to our mail server, that would help. (They're
| not getting through, but they're making it nearly impossible to do
| anything else.)

Is "@jpsoft.com" under attack, or the mail server in general?

Just the jpsoft.com mail server; the web site is only suffering incidental damage from the overload.
 
May 20, 2008
3,515
4
Elkridge, MD, USA
rconn wrote:
| ---Quote (Originally by Steve Fábián)---
| rconn wrote:
|| If you know of a way to convince the Chinese to stop sending several
|| million emails per day to our mail server, that would help. (They're
|| not getting through, but they're making it nearly impossible to do
|| anything else.)
|
| Is "@jpsoft.com" under attack, or the mail server in general?
| ---End Quote---
|
| Just the jpsoft.com mail server; the web site is only suffering
| incidental damage from the overload.

Sorry, what I meant to ask was: is all that spam directed to the jpsoft.com
domain, or against multiple domains served by the same mail server? I think
you meant the former, and you implied that the same computer is the server
for the jpsoft.com website.
--
Steve
 

rconn

Administrator
Staff member
May 14, 2008
12,369
150
Steve Fábián wrote:


> Sorry, what I meant to ask was: is all that spam directed to the jpsoft.com
> domain, or against multiple domains served by the same mail server? I think
> you meant the former, and you implied that the same computer is the server
> for the jpsoft.com website.

It's all directed at the jpsoft.com domain.

Rex Conn
JP Software
 
Similar threads
Thread starter Title Forum Replies Date
WavSlave DO not sorting as requested in v19 Support 11
M Sorting Files automatically Support 10
vefatica DIR sorting? Support 5
Joe Caverly Error when sorting list alphabetically for @select Support 2
nikbackm Sorting (DIR) over sub-directories Support 3
A Bug report: Sorting modified in listview does not work Support 3
D Documentation Help "Startup" page does not describe global lists Support 0
WadeHatler Any way to disable ALL the global hotkeys? Support 8
vefatica GLOBAL /Q? Support 2
fpefpe How to? Global variable set /v Support 4
Patulus GLOBAL command is very slow Support 28
vefatica @SMOPEN and "Global\" Support 3
C How to? GLOBAL question Support 5
P Disable global hotkey Ctrl+Shift+T Support 19
vefatica Dumping global lists to the *sav files Support 17
vefatica GLOBAL Support 4
Stefano Piccardi parsing issue in command GLOBAL Support 3
vefatica Aliases global vs. local Support 12
D Directory history file and global directory history Support 23
mdwyer @replace - global use in a text file Support 3
C sharing global histories between different TCMD versions? Support 5
E Fixed Bug with DIR /Z displaying descriptions Support 8
J Paths shown in DIR /B Support 2
K Fixed Prompt display will be shifted after use dir to display a filename with Chinese. (v25.00.28 x64) Support 18
Jesse Heines How to? How to display picture creation date with dir command Support 6
vefatica WAD DIR.BTM? Support 11
DrusTheAxe DIR reports meaningless SYMLINK information Support 14
C show file description? with dir? Support 8
vefatica DIR /F and streams? Support 7
rps Multi-column DIR /v not displaying all files. Support 5
R How to? Dir specific file search patterns with spaces in the pathnames? Support 6
rps Dir /Nfv -> Alt-F2 Support 2
rps @FILESIZE[....,a] allocated size not matching Dir results Support 8
A TCMD - Dir Command puts out blank lines? Support 16
S Problems with dir command in the debugger Support 5
M TCC incorrect dir output since Windows 1803 Support 6
x13 Problem listing repository files using DIR http(s)://... Support 8
cxxl dir /s works in mysterious ways :( Support 4
vefatica Help nit (FFIND and DIR with /S) Support 0
N Fixed Strange dir behavior Support 6
JohnQSmith Weird DIR output (missing lines) Support 1
C 7zip with date range .vs. filelist created with dir and daterange Support 0
D Towards shared (dir-)history lists Support 3
vefatica WAD DIR /HL still gets names wrong Support 16
vefatica DIR /S /HL? Support 4
H Fixed DIR /G returns wrong sizes Support 2
nickles WAD dir.htm Support 2
vefatica DO dir in /s /a:+d /d"g:\" * ( ... ) Support 26
vefatica DIR \\.\...? Support 4
M Fixed DIR /S /B1 ignores "/S" Support 5

Similar threads