I am using bash on UNIX (sparc 10)
for file in $SCPATH/$LIBNAME/*.{gob,c,cpp,h};
do
ln -s $file;
done;
The problem is that if there are no files with the extension “c”, it will put “.c” in $ file, and ln -s will create a link to “.c”. Is this a problem? How can I get around this (besides the obvious "if not * .c" hack).
source
share