On Jun 18, 2007, at 4:22 PM, Lola J. Lee Beno wrote:

Joel Rees wrote:

Multi-line ommand?

sudo perl Makefile.PL \
--cflags="-I/usr/local/mysql/include -Os -arch i386 -fno-common" \
--libs="-L/usr/local/mysql/lib -lmysqlclient -lz -lm"

properly in Terminal?

I'm thinking that the lack of backslash terminates the command line. What's it doing (or not)?

I was getting ">" everytime I hit return. Once I retyped that line without the backslashes, it worked correctly.

Unlike Perl, the command-line shell doesn't accept multi-line commands automagically. To use them you need to add a \ at the end of each line as a "continuation" character. Instead of taking what you've typed and running it, the shell changes the prompt to '>' and accepts more input. When a line is entered without a trailing \, then the whole series of lines is joined together and executed as one command.

So you can run the above command without the trailing backslashes in the first two lines above. That's what you'd do if you'd prefer to type it all on one line instead of three separate lines.

sherm--

Web Hosting by West Virginians, for West Virginians: http://wv-www.net
Cocoa programming in Perl: http://camelbones.sourceforge.net


Reply via email to