length of command limited?

Asked by Julian Rombach on 2011-05-10

Hi.

Question: Is there a limit to the possible length of a command? Maybe it is defined by the maximum length of a line in the file .clicompanion.

Thanks

Question information

Language:
English Edit question
Status:
Solved
For:
CLI Companion Edit question
Assignee:
No assignee Edit question
Solved by:
Julian Rombach
Solved:
2011-05-18
Last query:
2011-05-18
Last reply:
2011-05-16
Duane Hinnen (duanedesign) said : #1

I have not reached a maximum command length but would be interested to know if anyone determines what that might be.

stlsaint (stlsaint) said : #2

Since CLI companion uses your regular terminal with all standard commands included, with the use of xargs i say there is no limit.

Wow. If this is true then this program is a mighty and diabolic tool. Does anyone know some free code which writes a whole shell script of some length into one single command by putting in some &&s and ;s and some Brackets and replacing linebreak+'}' by '; }' ? If anyone does then you should deliver the program together with this code and say: "Hey, you can take any shellscript you like and transmute it into one single command, if you like to use the input capacities CLI Command instead of other templates like zenity."