Package: shellcheck
Version: 0.3.3-1
Severity: wishlist

In empty directories, this construct will print an asterisk. It is
probably better to use the latter versions to avoid that.

# 
for f in *; do
    echo "$f"
done

# bash only
for f in *; do
    [[ -e $f ]] || continue
    echo "$f"
done

for f in *; do
    [ -e $f ] || continue
    echo "$f"
done

# bash only
shopt -s nullglob
for f in *; do
    echo "$f"
done

-- System Information:
Debian Release: jessie/sid
  APT prefers testing
  APT policy: (900, 'testing'), (800, 'unstable'), (700, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 3.14-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages shellcheck depends on:
ii  libc6     2.19-4
ii  libffi6   3.1-2
ii  libgmp10  2:6.0.0+dfsg-4

shellcheck recommends no packages.

shellcheck suggests no packages.

-- no debconf information

-- 
bye,
pabs

http://wiki.debian.org/PaulWise

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to