Skip to content

awk: syntax error at source line 1 #808

@danielepolencic

Description

@danielepolencic

I just checkout a fresh version of nvm from the repo (manual install). and every time I open the shell (zsh) I get the following error:

Last login: Sun Aug 16 20:15:42 on ttys009
awk: syntax error at source line 1
 context is
    { command >>>  printf <<< ("%d%06d%06d\n", $1,$2,$3); }
awk: illegal statement at source line 1
awk: syntax error at source line 1
 context is
    { command >>>  printf <<< ("%d%06d%06d\n", $1,$2,$3); }
awk: illegal statement at source line 1
awk: syntax error at source line 1
 context is
    { command >>>  printf <<< ("%d%06d%06d\n", $1,$2,$3); }
awk: illegal statement at source line 1
awk: syntax error at source line 1
 context is
    { command >>>  printf <<< ("%d%06d%06d\n", $1,$2,$3); }
awk: illegal statement at source line 1

I tracked it down and it seems connected to this:

https://github.com/creationix/nvm/blob/master/nvm.sh#L320

Then I noticed I had to checkout the latest release. When I reverted to v0.26.0 and everything worked as normal.

Not sure if this counts as a bug or not.

Metadata

Metadata

Assignees

Labels

bugsOh no, something's broken :-(shell alias clobberingAnything dealing with users shadowing builtins with aliases or functions.shell: zsh

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions