Mercurial 和第三方 hg-login 脚本的问题

发布于 2024-09-08 10:34:34 字数 1888 浏览 1 评论 0原文

我正在尝试使用 HgLogin 设置 Mercurial 我有以下问题系统。我完成了所需的一切,但是当我尝试登录到我的存储库时,我收到了这个答案:

remote: /home/mercurial/hg-login: line 1: use: command not found
: command not foundrial/hg-login: line 1:
: command not foundrial/hg-login: line 2:
remote: /home/mercurial/hg-login: line 3: {PATH}: command not found
: command not foundrial/hg-login: line 3:
: command not foundrial/hg-login: line 4:
remote: /home/mercurial/hg-login: line 5: my: command not found
: command not foundrial/hg-login: line 5:
remote: /home/mercurial/hg-login: line 6: my: command not found
: command not foundrial/hg-login: line 6:
: command not foundrial/hg-login: line 7:
: command not foundrial/hg-login: line 11:
remote: /home/mercurial/hg-login: line 12: my: command not found
: command not foundrial/hg-login: line 12:
remote: /home/mercurial/hg-login: line 13: my: command not found
: command not foundrial/hg-login: line 13:
: command not foundrial/hg-login: line 14:
: command not foundrial/hg-login: line 18:
remote: /home/mercurial/hg-login: line 19: my: command not found
: command not foundrial/hg-login: line 19:
remote: /home/mercurial/hg-login: line 20: my: command not found
remote: /home/mercurial/hg-login: line 20: : command not found
: command not foundrial/hg-login: line 20:
: command not foundrial/hg-login: line 21:
: command not foundrial/hg-login: line 25:
remote: /home/mercurial/hg-login: line 26: defined: command not found
remote: /home/mercurial/hg-login: line 27: or: command not found
: command not foundrial/hg-login: line 27:
remote: /home/mercurial/hg-login: line 28: syntax error near unexpected token `$user'
'emote: /home/mercurial/hg-login: line 28: `my ($user) = $user_in =~ /^($r_user)$/

看来 Perl 不会解析脚本。 您可以在 https://www.mercurial-scm.org/wiki/HgLogin 上找到 hglogin 脚本

I'm trying to setup mercurial using the HgLogin I have the following problem system. I done everything that is needed but when I tried to login to my repository I receive this answer:

remote: /home/mercurial/hg-login: line 1: use: command not found
: command not foundrial/hg-login: line 1:
: command not foundrial/hg-login: line 2:
remote: /home/mercurial/hg-login: line 3: {PATH}: command not found
: command not foundrial/hg-login: line 3:
: command not foundrial/hg-login: line 4:
remote: /home/mercurial/hg-login: line 5: my: command not found
: command not foundrial/hg-login: line 5:
remote: /home/mercurial/hg-login: line 6: my: command not found
: command not foundrial/hg-login: line 6:
: command not foundrial/hg-login: line 7:
: command not foundrial/hg-login: line 11:
remote: /home/mercurial/hg-login: line 12: my: command not found
: command not foundrial/hg-login: line 12:
remote: /home/mercurial/hg-login: line 13: my: command not found
: command not foundrial/hg-login: line 13:
: command not foundrial/hg-login: line 14:
: command not foundrial/hg-login: line 18:
remote: /home/mercurial/hg-login: line 19: my: command not found
: command not foundrial/hg-login: line 19:
remote: /home/mercurial/hg-login: line 20: my: command not found
remote: /home/mercurial/hg-login: line 20: : command not found
: command not foundrial/hg-login: line 20:
: command not foundrial/hg-login: line 21:
: command not foundrial/hg-login: line 25:
remote: /home/mercurial/hg-login: line 26: defined: command not found
remote: /home/mercurial/hg-login: line 27: or: command not found
: command not foundrial/hg-login: line 27:
remote: /home/mercurial/hg-login: line 28: syntax error near unexpected token `$user'
'emote: /home/mercurial/hg-login: line 28: `my ($user) = $user_in =~ /^($r_user)$/

It seems Perl won't parse the script.
You can find the hglogin script on https://www.mercurial-scm.org/wiki/HgLogin

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

人心善变 2024-09-15 10:34:34

您可能需要在 Perl 脚本的顶部添加此内容:

#!/bin/perl

或系统 Perl 的路径。看起来您的系统正在运行该脚本,就像它是 shell 脚本而不是 perl 脚本一样。

You probably need this at the top of your perl script:

#!/bin/perl

or the path to your system perl. It looks like your system is running that script as if it were a shell script not a perl script.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文