On Sun, 17 Nov 2024 16:59:34 +0100,
Kirill A. Korinsky wrote:
>
> >Synopsis:ksh: syntax error: `(' unexpected
> >Category:ksh
> >Environment:
> System : OpenBSD 7.6
> Details : OpenBSD 7.6-current (GENERIC.MP) #39: Sun Nov 17 11:27:14
> CET 2024
>
On Sun, 17 Nov 2024, Klemens Nanni wrote:
> 17.11.2024 22:00, Klemens Nanni пишет:
> > I can't say right away what the shell is supposed to do here and/or what it
> > really does; looks like it expands the alias and before function
> > definition.
>
> That's what it does:
>
> $ alias foo=
On Sun, 17 Nov 2024, Klemens Nanni wrote:
> 17.11.2024 22:49, George Koehler пишет:
> > On Sun, 17 Nov 2024 19:10:30 +
> > Klemens Nanni wrote:
> >
> >> 17.11.2024 20:25, Andreas Kähäri пишет:
> >>> A the final right curly brace of a compound command must be preceeded by
> >>> a command termi
On Sun, Nov 17, 2024 at 04:59:34PM +0100, Kirill A. Korinsky wrote:
> >Synopsis:ksh: syntax error: `(' unexpected
> >Category:ksh
> >Environment:
> System : OpenBSD 7.6
> Details : OpenBSD 7.6-current (GENERIC.MP) #39: Sun Nov 17 11:27:14
> CET 2024
>
On Sun, 17 Nov 2024 18:25:47 +0100,
Andreas Kähäri wrote:
>
> A the final right curly brace of a compound command must be preceeded by
> a command terminator, most commonly a newline or a semi-colon. This is
> what causes the syntax error in the script.
>
> An additional issue is that your logi
On Sun, Nov 17, 2024 at 06:28:34PM +0100, Andreas Kähäri wrote:
> On Sun, Nov 17, 2024 at 05:52:26PM +0100, Jeremie Courreges-Anglas wrote:
> > On Sun, Nov 17, 2024 at 04:59:34PM +0100, Kirill A. Korinsky wrote:
> > > >Synopsis:ksh: syntax error: `(' unexpected
> > > >Category:ksh
>
>Synopsis: ksh: syntax error: `(' unexpected
>Category: ksh
>Environment:
System : OpenBSD 7.6
Details : OpenBSD 7.6-current (GENERIC.MP) #39: Sun Nov 17 11:27:14
CET 2024
catap@matebook.local:/usr/src/sys/arch/amd64/compile/GENERIC.MP
On Sun, Nov 17, 2024 at 04:59:34PM +0100, Kirill A. Korinsky wrote:
> >Synopsis:ksh: syntax error: `(' unexpected
> >Category:ksh
> >Environment:
> System : OpenBSD 7.6
> Details : OpenBSD 7.6-current (GENERIC.MP) #39: Sun Nov 17 11:27:14
> CET 2024
>
On Sun, 17 Nov 2024 17:52:26 +0100,
Jeremie Courreges-Anglas wrote:
>
> See main.c:
> /* Aliases that are builtin commands in at&t */
> "login=exec login",
>
> I guess a builtin would be slightly cleaner, but it means more code.
>
Indeed, the bug can be reproduced only when I u
17.11.2024 20:27, Kirill A. Korinsky пишет:
> On Sun, 17 Nov 2024 17:52:26 +0100,
> Jeremie Courreges-Anglas wrote:
>>
>> See main.c:
>> /* Aliases that are builtin commands in at&t */
>>"login=exec login",
>>
>> I guess a builtin would be slightly cleaner, but it means more code.
17.11.2024 22:00, Klemens Nanni пишет:
> I can't say right away what the shell is supposed to do here and/or what it
> really does; looks like it expands the alias and before function definition.
That's what it does:
$ alias foo=bar
$ foo() {}
$ typeset -f foo
$ t
17.11.2024 20:25, Andreas Kähäri пишет:
> A the final right curly brace of a compound command must be preceeded by
> a command terminator
Not always:
$ f() {} ; typeset -f f
f() {}
> most commonly a newline or a semi-colon. This is
> what causes the syntax error in the script.
On Sun, 17 Nov 2024 19:10:30 +
Klemens Nanni wrote:
> 17.11.2024 20:25, Andreas Kähäri пишет:
> > A the final right curly brace of a compound command must be preceeded by
> > a command terminator
>
> Not always:
>
> $ f() {} ; typeset -f f
> f() {}
That isn't a compound command
17.11.2024 22:49, George Koehler пишет:
> On Sun, 17 Nov 2024 19:10:30 +
> Klemens Nanni wrote:
>
>> 17.11.2024 20:25, Andreas Kähäri пишет:
>>> A the final right curly brace of a compound command must be preceeded by
>>> a command terminator
>>
>> Not always:
>>
>> $ f() {} ; typeset -f
On Sun, Nov 17, 2024 at 04:16:17PM +1000, David Gwynne wrote:
> On Sat, Nov 16, 2024 at 07:36:37PM -0800, Andrew Hewus Fresh wrote:
> > I finally got around to fixing my alpha, which involved replacing the
> > disk. That meant I have to scp some stuff over to to it and after a bit
> > of time it p
15 matches
Mail list logo