Afficher un message
Vieux 29/04/2008, 21h47   #6
lihao0129@gmail.com
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: bash: process substitution not working in script

On Apr 29, 2:42 pm, Bill Marcum <marcumb...@bellsouth.net> wrote:
> On 2008-04-29, lihao0...@gmail.com <lihao0...@gmail.com> wrote:
>
> > ./script.sh: line 30: syntax error near unexpected token `('
> > ./script.sh: line 30: `' file1.txt <( find -type f -exec file {}
> > + | \'

>
> > I checked the man page about the process substitution which mentioned
> > the named pipe. since I am not familiar with this part, could someone
> > me with this problem? many thanks,

>
> Does your script begin with #!/bin/bash?


Thanks, if I change the shebang line from

#!/bin/sh

to

#!/bin/bash

my original script worked. Just curious since 'ls -l /bin/sh' shows

lrwxrwxrwx 1 root root 4 Apr 23 15:20 /bin/sh -> bash

I thought it's bash by default...

Best,
lihao
  Réponse avec citation
 
Page generated in 0,36817 seconds with 9 queries