[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: line 50 : unexpected end of file - cant find the fault ..
From: |
Greg Wooledge |
Subject: |
Re: line 50 : unexpected end of file - cant find the fault .. |
Date: |
Fri, 16 Aug 2024 08:41:22 -0400 |
On Fri, Aug 16, 2024 at 13:58:21 +0200, alex xmb sw ratchev wrote:
> i attach an old v ( 3 ) that doesnt error
> the error is most recent , ..
In v4 you have here strings *and* an alias expansion inside of a proc sub.
In v3 you have neither. So, let's try....
hobbit:~$ cat foo
#!/bin/bash
: < <(
cat <<<"here string"
)
hobbit:~$ ./foo
hobbit:~$ source ./foo
hobbit:~$
Nope, that didn't trigger it. Let's try...
hobbit:~$ cat foo
#!/bin/bash
shopt -s expand_aliases
alias 22=true
: < <(
cat <<<"here string"
22
cat <<<"second here string"
)
hobbit:~$ ./foo
hobbit:~$ source ./foo
hobbit:~$
Nope. OK, what if they're inside a function, with the alias not defined
at the time the function is defined?
hobbit:~$ cat foo
#!/bin/bash
shopt -s expand_aliases
f() {
: < <(
cat <<<"here string"
22
cat <<<"second here string"
)
}
alias 22=true
f
hobbit:~$ ./foo
hobbit:~$ source ./foo
hobbit:~$
No luck. Sorry, I don't know what's causing the error. I suggest that
you start with the one that's giving the error (v4), and remove things
one by one, until you stop getting the error. Whatever the last thing
you removed was -- that's probably where the error's coming from.
- line 50 : unexpected end of file - cant find the fault .., alex xmb sw ratchev, 2024/08/16
- Re: line 50 : unexpected end of file - cant find the fault .., alex xmb sw ratchev, 2024/08/16
- Re: line 50 : unexpected end of file - cant find the fault .., Greg Wooledge, 2024/08/16
- Re: line 50 : unexpected end of file - cant find the fault .., alex xmb sw ratchev, 2024/08/16
- Re: line 50 : unexpected end of file - cant find the fault .., alex xmb sw ratchev, 2024/08/16
- Re: line 50 : unexpected end of file - cant find the fault .., alex xmb sw ratchev, 2024/08/16
- Re: line 50 : unexpected end of file - cant find the fault ..,
Greg Wooledge <=
- Re: line 50 : unexpected end of file - cant find the fault .., alex xmb sw ratchev, 2024/08/16
- Re: line 50 : unexpected end of file - cant find the fault .., Greg Wooledge, 2024/08/16
- Re: line 50 : unexpected end of file - cant find the fault .., alex xmb sw ratchev, 2024/08/16
Re: line 50 : unexpected end of file - cant find the fault .., Chet Ramey, 2024/08/16