}
# test if we can use color in ls...
- $test_color=` ls --help 2>&1 | grep -i color `;
+# $test_color=` ls --help 2>&1 | grep -i color `;
# this is an array of files from which to draw alias definitions.
@ALIAS_DEFINITION_FILES = ("$FEISTY_MEOW_SCRIPTS/core/common.alias");
print GENOUT "## please do not edit.\n";
print GENOUT "##\n";
- if (length($test_color)) {
- print GENOUT "export color_add=--color=auto\n";
- } else {
- print GENOUT "export color_add=\n";
- }
+# if (length($test_color)) {
+# print GENOUT "export color_add='--color=auto'\n";
+# } else {
+# print GENOUT "export color_add=\n";
+# }
# plow in the full set of aliases into the file.
foreach $i (@ALIAS_DEFINITION_FILES) {
fi
##############
+
+ # set up the color_add variable which is a flag that lets ls know colors work.
+
+ # test if we can use color in ls...
+ ls --help 2>&1 | grep -i -q color
+ if [ $? -eq 0 ]; then
+ export color_add='--color=auto'
+ else
+ export color_add=
+ fi
+ unset test_ls_colors
+ ##############
+
# umask sets a permission mask for all file creations.
# this mask disallows writes by "group" and "others".
umask 022