mirror of
https://github.com/hymkor/lispect.git
synced 2026-09-03 07:37:52 -04:00
README: update quoted example.lsp
This commit is contained in:
@@ -13,13 +13,13 @@ Lispect
|
|||||||
|
|
||||||
```example.lsp
|
```example.lsp
|
||||||
(block main
|
(block main
|
||||||
(if (< (length args) 2)
|
(if (< (length ARGV) 2)
|
||||||
(progn
|
(progn
|
||||||
(format (error-output) "Usage: ~A ~A USERNAME@DOMAIN PASSWORD~%" $EXECUTABLE_NAME $PROGRAM_NAME)
|
(format (error-output) "Usage: ~A ~A USERNAME@DOMAIN PASSWORD~%" EXECUTABLE-NAME PROGRAM-NAME)
|
||||||
(return-from main nil)))
|
(return-from main nil)))
|
||||||
|
|
||||||
(let ((account (car args))
|
(let ((account (car ARGV))
|
||||||
(password (cadr args))
|
(password (cadr ARGV))
|
||||||
(sshpid nil))
|
(sshpid nil))
|
||||||
|
|
||||||
(with-handler
|
(with-handler
|
||||||
@@ -44,6 +44,9 @@ Lispect
|
|||||||
|
|
||||||
(expect*
|
(expect*
|
||||||
("Permission denied"
|
("Permission denied"
|
||||||
|
(expect "password:")
|
||||||
|
(send #\U3)
|
||||||
|
(wait sshpid)
|
||||||
(return-from main nil)
|
(return-from main nil)
|
||||||
)
|
)
|
||||||
("$ "))
|
("$ "))
|
||||||
|
|||||||
Reference in New Issue
Block a user