Encountered an error while using WEB Shell

melon

Member
Mar 18, 2022
19
0
6
23
20221113025558.png

Does not affect the use, just want to know how to solve this problem, there is obsessive-compulsive disorder.
Can anyone tell me how to solve it? thanks.
 
Good morning, look at this:
Code:
ub@ucsf (10.1.9.33) ~$ figlet - test
         _            _   
        | |_ ___  ___| |_
 _____  | __/ _ \/ __| __|
|_____| | ||  __/\__ \ |_
         \__\___||___/\__|
                          
ub@ucsf (10.1.9.33) ~$ figlet -- test
 _            _   
| |_ ___  ___| |_
| __/ _ \/ __| __|
| ||  __/\__ \ |_
 \__\___||___/\__|
                  
ub@ucsf (10.1.9.33) ~$ figlet --- test
figlet: invalid option -- '-'
Usage: figlet [ -cklnoprstvxDELNRSWX ] [ -d fontdirectory ]
              [ -f fontfile ] [ -m smushmode ] [ -w outputwidth ]
              [ -C controlfile ] [ -I infocode ] [ message ]

ub@ucsf (10.1.9.33) ~$ figlet -- --- test
                     _            _   
                    | |_ ___  ___| |_
 _____ _____ _____  | __/ _ \/ __| __|
|_____|_____|_____| | ||  __/\__ \ |_
                     \__\___||___/\__|
  • my first execution has one "-" --> fine
  • my second execution should have two "--" but gives... zero dashes in the output
  • my third execution produces your error message
  • the fourth execution with "-- ---" produces the desired three "---" in the output

Why is that? "--" starts the long version of an option. If you want to stop that, you tell it the interpreter by "-- ". After these special two dashes everything is a parameter for the called program ("figlet").

Btw: this is not Proxmox related... ;-)