เอกสารรายละเอียดสำหรับคำสั่ง bash build-in อยู่ที่ไหน?


0

ฉันต้องการทราบความหมายของ compgen ตัวเลือก. กับ help compgen ฉันสามารถรับหน้าความช่วยเหลือ แต่จะแสดงเฉพาะรายการตัวเลือก ไม่มีคำอธิบายสำหรับมัน

compgen: compgen [-abcdefgjksuv] [-o options] [-A action] [-G globpat]   [-W wordlist] [ฟังก์ชั่น -F] [คำสั่ง -C] [-X filterpat] [-P คำนำหน้า]   [-S ต่อท้าย] [คำ]       แสดงความสำเร็จที่เป็นไปได้ขึ้นอยู่กับตัวเลือก

Intended to be used from within a shell function generating possible
completions.  If the optional WORD argument is supplied, matches against
WORD are generated.

Exit Status:
Returns success unless an invalid option is supplied or an error occurs.

โดยเฉพาะฉันต้องการทราบวิธี -abcdefgjksuv ข้อโต้แย้งทำงาน


คำตอบ:


0

ใกล้ด้านล่างของหน้า bash man คือส่วนคำสั่ง SHELL BUILTIN ที่มันบอกว่า

compgen [option] [word]
          Generate  possible  completion  matches  for  word according to the
          options, which may be any option accepted by the  complete  builtin
          with the exception of -p and -r, and write the matches to the stan-
          dard output.  When using the -F or -C options,  the  various  shell
          variables  set  by  the  programmable  completion facilities, while
          available, will not have useful values.

          The matches will be generated in  the  same  way  as  if  the  pro-
          grammable  completion  code had generated them directly from a com-
          pletion specification with the same flags.  If word  is  specified,
          only those completions matching word will be displayed.

          The  return  value is true unless an invalid option is supplied, or
          no matches were generated.

ด้านล่างมันคือ complete คำสั่ง builtin ซึ่งอธิบายสวิตช์

โดยการใช้ไซต์ของเรา หมายความว่าคุณได้อ่านและทำความเข้าใจนโยบายคุกกี้และนโยบายความเป็นส่วนตัวของเราแล้ว
Licensed under cc by-sa 3.0 with attribution required.