Documentation: A "Coming from Perl" section

Đang mở
#1,843 7 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
45/100
Loại issue
Tài liệu
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
perl
Lĩnh vực
documentation

Hướng nghiên cứu

Bắt đầu bằng cách tìm các phần "Coming from " hiện có trong cuốn sách Nushell và đọc cấu trúc cùng các ví dụ của chúng. Thêm một phần tương tự "Coming from Perl" với các cách thay thế theo phong cách Nushell tự nhiên cho các biến đặc biệt Perl được liệt kê, sau đó kiểm tra để bảo đảm phần này phù hợp với kiểu tài liệu và điều hướng của cuốn sách.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

enhancement
Related problem

The "Coming from " sections of the Nushell book are a great idea, but there is an obvious "other language" missing- Perl.

As a solution that aims to bridge the gap between shells and programming languages the Pathologically Eclectic Rubbish Lister (PERL) seems to me the natural ancestor/competitor of Nushell. Perl may be long in the tooth but it is still a very widely used tool on Linux / Unix based systems, and has a lot of features designed specifically to make it work well as a "glue" language.

It's not obvious (at least to me as a user new to Nushell) how some of the things Perl can do can be accomplished in Nushell, some specific "getting started" help would be useful.

Describe the solution you'd like

A documentation section on "Coming from Perl" could help open up Nushell to areas where Perl has been the "swiss army knife" of system automation for years.

As an example, it would be particularly helpful to have idiomatic Nushell alternatives for the Perl "special variables" including-

$0    $PROGRAM_NAME        Pathname of the current script
$$    $PID                 The pid of the process running the current script
$^T   $BASETIME            Timestamp when the current process started
$<    $UID                 Real user ID (uid) of this process
$>    $EUID                Effective user ID of this process
$(    $GID                 Real group ID
$)    $EGID                Effective group ID
$!    $ERRNO / $OS_ERROR   Number or text of the error from the last system call
$?    $CHILD_ERROR         Status returned by the last child process
Describe alternatives you've considered

No response

Additional context and details

No response

Ngôn ngữ chính
TypeScript
Star
258
Fork
561
Merge trung bình
3 giờ 20 phút
Pull request đã merge (30 ngày)
15

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của nushell/nushell.github.io

Tất cả issue của nushell/nushell.github.io

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.