- Jun
- 727
- 12
Now I'm trying to understand the new (since version 27) CLIP command, and I'm puzzled.
The help specifies the following format:
This suggested to me that one can combine the options, and there is no place in the help text that specifies otherwise. However, that does not work. If only one (or none) of the options is allowed, then the help should state so, and the "text" part should appear after "/S clipn:" and before "/Z".
Moreover, I can enter all kinds of commands that don't work but give no syntax error, such as
It looks as though the /C option is processed and the rest ignored, but I would have expected a syntax error (or something in the help text stating that extraneous material is ignored).
Another odd one is
Is there a reason why one actually has to spell out the full "clipn:" instead of just specifying the number, such as
The output from CLIP with no argument can be rather confusing when clipboards contain more than a single line of text (as I discovered rather dramatically after I copied the output of the clip command to the clipboard and then ran
Perhaps the command
The help specifies the following format:
CLIP [/C clipn: /R n /S clipn: /Z text]
This suggested to me that one can combine the options, and there is no place in the help text that specifies otherwise. However, that does not work. If only one (or none) of the options is allowed, then the help should state so, and the "text" part should appear after "/S clipn:" and before "/Z".
Moreover, I can enter all kinds of commands that don't work but give no syntax error, such as
clip /c clip2: /r 1
It looks as though the /C option is processed and the rest ignored, but I would have expected a syntax error (or something in the help text stating that extraneous material is ignored).
Another odd one is
clip new text
, which displays two lines of "CLIP0:" (one for each word in the extraneous text, suggesting that each word is being processed in some way) without changing the contents of the clipboards.Is there a reason why one actually has to spell out the full "clipn:" instead of just specifying the number, such as
clip /c 2
(or maybe alternately clip /c2
)? If there is no reason, I would suggest this as an enhancement to the command, as well asclip /s 2 text
or clip /s2 text
.The output from CLIP with no argument can be rather confusing when clipboards contain more than a single line of text (as I discovered rather dramatically after I copied the output of the clip command to the clipboard and then ran
clip
). That led me to write clp.btm to display each clipboard with a banner line and an "echo." to terminate any contents without a final CRLF. Here's an example of the output:========== Clipboard 0: ==========
clip /c clip2: /r 1
========== Clipboard 1: ==========
CLIP [/C clipn: /R n /S clipn: /Z text]
========== Clipboard 2: ==========
========== Clipboard 3: ==========
clipboard 2
========== Clipboard 4: ==========
========== Clipboard 5: ==========
========== Clipboard 6: ==========
========== Clipboard 7: ==========
========== Clipboard 8: ==========
========== Clipboard 9: ==========
Perhaps the command
clip
should format the output more clearly.