Skip to content

SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.

remember commands even if failed

Chris Lu0b4269b6a86b
diff --git a/weed/shell/shell_liner.go b/weed/shell/shell_liner.go
index 64c8094fe1..db9e815ff8 100644
--- a/weed/shell/shell_liner.go
+++ b/weed/shell/shell_liner.go
@@ -84,10 +84,12 @@ https://cloud.seaweedfs.com/ui/%s
func processEachCmd(reg *regexp.Regexp, cmd string, commandEnv *CommandEnv) bool {
cmds := reg.FindAllString(cmd, -1)
+
+ line.AppendHistory(cmd)
+
if len(cmds) == 0 {
return false
} else {
- line.AppendHistory(cmd)
args := make([]string, len(cmds[1:]))