What am I misunderstanding about how sacct filtering works here? I would have expected the second command to show the exact same results as the first.



[root@mickey ddrucker]# sacct --starttime $(date -d "7 days ago" +"%Y-%m-%d") -X --format JobID,JobName,State,Elapsed   --name zsh
JobID           JobName      State    Elapsed
------------ ---------- ---------- ----------
257713              zsh  COMPLETED   00:01:02
257714              zsh  COMPLETED   00:04:01
257715              zsh  COMPLETED   00:03:01
257716              zsh  COMPLETED   00:03:01

[root@mickey ddrucker]# sacct --starttime $(date -d "7 days ago" +"%Y-%m-%d") -X --format JobID,JobName,State,Elapsed   --name zsh --state COMPLETED
JobID           JobName      State    Elapsed
------------ ---------- ---------- ----------

[root@mickey ddrucker]# sinfo --version
slurm 21.08.8-2





--
Daniel M. Drucker, Ph.D.
Director of IT, MGB Imaging at Belmont
McLean Hospital, a Harvard Medical School Affiliate

The information in this e-mail is intended only for the person to whom it is addressed.  If you believe this e-mail was sent to you in error and the e-mail contains patient information, please contact the Mass General Brigham Compliance HelpLine at https://www.massgeneralbrigham.org/complianceline .


Please note that this e-mail is not secure (encrypted).  If you do not wish to continue communication over unencrypted e-mail, please notify the sender of this message immediately.  Continuing to send or respond to e-mail after receiving this message means you understand and accept this risk and wish to continue to communicate over unencrypted e-mail.