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 meditating upon the Monastery: (6)
As of 2022-01-27 20:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:












    Results (71 votes). Check out past polls.

    Notices?