Closed Artoria2e5 closed 8 years ago
Can you give a complete example? One of the links on the front page is
for user in $(cut -f1 -d: /etc/passwd); do crontab -u $user -l 2>/dev/null; done On Oct 26, 2015 5:04 PM, "Mingye Wang" notifications@github.com wrote:
This happens on explainshell.com.
— Reply to this email directly or view it on GitHub https://github.com/idank/bashlex/issues/4.
( IFS=/; set -ef -- /D/a-b*; for f in $(ls -rtd "$@"; echo /); do [ -n "${f##D*}" ] || continue; mv "${1%/*}/${f%?}" "/r${1%/*}-a"; done )
.
Sorry for making such premature conclusion on the title.
Tracked down to for f in $(a; b); do :; done
. Updating title..
It seems like any command substitution with a comma doesn't work, even $(a; b)
.
Hmm. Backtick ones work though.
Yeah, I'll have to walk through the code with a debugger to see what's wrong. ETA: unknown. :(
Wow.
This happens on explainshell.com.