Hi all, I've been trying for a few weeks to try to get this to work, and the /bin/sh keeps snagging the command line before passing it to pkg_info
I'll use a different shell if I need to, but since I got everything except this one thing working, i'd rather keep it in sh In the shell script, i have a pkg_info -qLx "^$PKG-[0-9,._]+$" also tried (-X)tended regex instead of the standard rege(-x). sh keeps erroring out saying various $" isn't a valid variable name, or pkg_info doesn't find the anything there. And it does exist. This all came around with me trying to automatically update a bunch of ports. xorg-fonts is outdated, but xorg-fonts-100dpi or xorg-fonts-75dpi isn't. So the regex returns multiple values (as above). I just want the first, hence the anchors. Any ideas on how to get sh to let pkg_info see everything? Various escaping around the end $ just doesn't work. I'll keep working on it, but i'd like to see how you all would suggest getting it to work. Thanks! _______________________________________________ email@example.com mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"