scripts/*.files: Use single quotes for constant strings

This commit is contained in:
Дмитрий Левин 2007-09-29 14:54:29 +00:00
parent 5b9096b561
commit 66ee80b813
5 changed files with 10 additions and 10 deletions

View File

@ -1,7 +1,7 @@
#!/bin/sh -efu
while IFS=$'\t' read -r f t; do
case "$t" in
*ELF*" shared object"*)
*ELF*' shared object'*)
echo "$f" ;;
esac
done

View File

@ -1,9 +1,9 @@
#!/bin/sh -efu
while IFS=$'\t' read -r f t; do
case "$t" in
*ELF*" shared object"*)
*ELF*' shared object'*)
echo "$f" ;;
*ELF*" executable"*"dynamically linked"*)
*ELF*' executable'*'dynamically linked'*)
[ -x "$f" ] && echo "$f" ||
echo "${0##*/}: ELF executable $f not executable" >&2 ;;
esac

View File

@ -7,8 +7,8 @@ while IFS=$'\t' read -r f t; do
*) continue ;;
esac
case "$t" in
*" text"*) echo "$f" ;;
*"symbolic link to "*) ;;
*' text'*) echo "$f" ;;
*'symbolic link to '*) ;;
*) echo "${0##*/}: $f: $t" >&2 ;;
esac
done

View File

@ -1,7 +1,7 @@
#!/bin/sh -efu
while IFS=$'\t' read -r f t; do
case "$t" in
*"script text executable"*)
*'script text executable'*)
[ -x "$f" ] && echo "$f" ||
echo "${0##*/}: executable script $f not executable" >&2 ;;
esac

View File

@ -2,16 +2,16 @@
while IFS=$'\t' read -r f t; do
case "$t" in
#!/bin/sh
*"Bourne shell script text"*)
*'Bourne shell script text'*)
echo "$f" ;;
#!/bin/bash
*"Bourne-Again shell script text"*)
*'Bourne-Again shell script text'*)
echo "$f" ;;
#!/usr/bin/env bash
*" bash script text"*)
*' bash script text'*)
echo "$f" ;;
#!/bin/ash
*" /bin/ash script text"*)
*' /bin/ash script text'*)
echo "$f" ;;
esac
done