This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

B20 quote(') eval


I'm having problems with a command to place the number of lines in a
file into an integer variable in Bash.  The command
       declare -i count=`wc -l address.tab | awk --source="{print \$1}"`

gives me the error

"C:/bin/bash.exe": declare: 6558 address.tab: syntax error in expression
(error token is "address.tab")

which is the same error you would get if you enter the command

    declare -i count=`wc -l address.tab`

it appears the pipe( | ) in the quoted command is being ignored.  Is
this normal behavior?

richard
--
 Richard Schulte           "Vanity of vanities!  All is vanity"
rschulte@geocities.com               Ecclesiastes 1:2

-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]