# Checking existence of file with underscore in file name in zsh

I am creating a really straightforward manuscript which will certainly link common arrangement documents. For one reason or another it does not act as i anticipated for documents with emphasize in name. Does _ (emphasize) suggests something unique in zsh?

The stated manuscript as it is currently:

#!/bin/zsh
STATIC_CONFIG_PATH="/opt/apps/config"
STATIC_CONFIG_FILES=("couchdb.yml" "database.yml" "elasticsearch.yml" "slurm_api.yml")

cd $1/config ELEMENTS=${#STATIC_CONFIG_FILES[@]}
for (( i=0;i<$ELEMENTS;i++)); do if [ ! -L${STATIC_CONFIG_FILES[${i}]} ]; then echo 'Linking '$STATIC_CONFIG_PATH'/'${STATIC_CONFIG_FILES[${i}]}
ln -s $STATIC_CONFIG_PATH'/'${STATIC_CONFIG_FILES[${i}]} fi done  0 2022-06-07 14:33:25 Source Share Answers: 1 Never mind. There is no emphasize mistery slurm_api.yml is ${STATIC_CONFIG_FILES[4]} so the for need to resemble a

for (( i=1;i<=\$ELEMENTS;i++)); do

0
2022-06-07 14:56:42
Source