Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: mapfile, many files and globbin



On Jun 5, 10:30pm, Wawrzek Niewodniczanski wrote:
}
} I just tested it and got:
} 
} names=( TEST/**/*list(.L+0e:'reply=(${(f)mapfile[$REPLY]})':) )
} zsh: bad floating point constant
} zsh: bad floating point constant
} zsh: no matches found: TEST/**/*list(.L+0e:reply=(${(f)mapfile[$REPLY]}):)
} 
} What's wrong?

You don't have the zsh/mapfile module loaded, so $mapfile is being
treated as an ordinary array and the subscript (that is, each file's
name) is being interpreted as an arithmetic expression.



Messages sorted by: Reverse Date, Date, Thread, Author