ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
those lots of arguments are running in over 3 lines...how will it differentiate between end of command 1 and start of command 2 ? Plus command one gives error on the second line..it thinks its a new command.
[QUOTE]those lots of arguments are running in over 3 lines...[quote]3 lines is not that much. To have bash confused over large command lines, - if ever - you probably need thousands (millions?) of lines!
Quote:
how will it differentiate between end of command 1 and start of command 2 ?
Just put the command on one line. Bash will know the next line is the next command!
However, if it bothers you (or your editor) to have such long lines in the script, then spread the command over several lines and finish all but the last line with a backslash ( \ ). Nothing (not even spaces or tabs) should go after the backslash.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.