zsh-users
 help / color / mirror / code / Atom feed
* for loop 'bad math expression'
@ 2024-01-30  3:39 Ray Andrews
  2024-01-30  3:46 ` Ray Andrews
  0 siblings, 1 reply; 25+ messages in thread
From: Ray Andrews @ 2024-01-30  3:39 UTC (permalink / raw)
  To: Zsh Users

Been reviewing and deleting old email backups but saving some:


for bb in *.eml~save*; do    # Error msg. points to this line.

     thunderbird -file $bb

     echo "\nFile: $bb: Press 's' to save, 'd' to delete or '^C' to quit."
     read -sk1 key

     case $key in
         d ) rm -v $bb ;;
         s ) mv -v $bb save-$bb ;;    # Rename so not viewed again.
         * ) errormsg "skipping file ..." ;;
     esac
done

... it's been working fine, done thousands.  But just now it threw me an 
error:

     global:20: bad math expression: operator expected at `CDF8.eml'

.... there's no such file.  They all have eight characters then '.eml':

    607 [2013-01-16--18:57] 48EE0E21.eml*
     694 [2013-01-16--18:57] 48ECE166.eml*
   10115 [2013-01-16--18:57] 48E4BB08.eml*

... like that.  And if saved:

    2842 [2013-01-16--18:57] save-48137E34.eml*
    3135 [2013-01-16--18:57] save-4812320B.eml*
    2278 [2013-01-16--18:57] save-48122AEC.eml*

Does anyone have the slightest clue what's going on here?




^ permalink raw reply	[flat|nested] 25+ messages in thread

end of thread, other threads:[~2024-02-05 15:48 UTC | newest]

Thread overview: 25+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-01-30  3:39 for loop 'bad math expression' Ray Andrews
2024-01-30  3:46 ` Ray Andrews
2024-01-30  4:04   ` Bart Schaefer
2024-01-30  4:06     ` Bart Schaefer
2024-01-30  4:17       ` Ray Andrews
2024-01-30 13:44         ` Ray Andrews
2024-01-30 14:30           ` Lawrence Velázquez
2024-02-03 23:52           ` Bart Schaefer
2024-02-04  1:14             ` Ray Andrews
2024-02-04  2:05               ` Lawrence Velázquez
2024-02-04  4:20                 ` Bart Schaefer
2024-02-04 16:08                   ` Ray Andrews
2024-02-04 20:56                     ` Lawrence Velázquez
2024-02-04 15:51                 ` Ray Andrews
2024-02-04 20:48                   ` Lawrence Velázquez
2024-02-04 21:09                     ` Bart Schaefer
2024-02-04 21:23                       ` Bart Schaefer
2024-02-05  2:10                     ` Bart Schaefer
2024-02-05  2:43                       ` Mikael Magnusson
2024-02-05  2:50                         ` Bart Schaefer
2024-02-05 15:21                       ` Ray Andrews
2024-02-05 15:48                         ` Mark J. Reed
2024-02-04 14:43               ` Mark J. Reed
2024-02-04 16:37                 ` Ray Andrews
2024-02-04 21:09                   ` Lawrence Velázquez

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).