Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: sh: -c: line 0: syntax error near unexpected token `('

by derby (Abbot)
on Nov 27, 2013 at 11:08 UTC ( #1064596=note: print w/replies, xml ) Need Help??


in reply to sh: -c: line 0: syntax error near unexpected token `('

Looks like sh on your system is not bash (or any shell that supports the process substitution syntax).

-derby

Update: You could always force bash:

$RT_DiffFiles= `bash -c \"comm -23 <(sort $RT_64OG_FilesPath) <(sort $ +RT_64_FilesPath)\"`;
but I'd look to see if Text::Diff accomplishes what you're after first.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1064596]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (4)
As of 2022-12-06 08:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?