Hello When migrating a shell script from Debian to Ubuntu GNU/Linux, I ran into trouble with parameter expansion being handled differently between bash and dash. The script was originally developed on a FreeBSD box, hence using FreeBSD's bourne shell (not bash nor dash) which is POSIX plus some extra Berkeley extensions (not the same as bash). The idea is that the shell script was supposed to be POSIX and therefore not supposed to fail. After some investigation, I succeeded in locating the problem. > $ for L in A B C D; do mkdir $L && touch $L/FILE; done > $ echo * > A B C D > $ echo */FILE > A/FILE B/FILE C/FILE D/FILE > $ echo *"/FILE" > */FILE > $ I can't figure out why '*/FILE' and '*"/FILE"' are not expanded the same way... Thank you for your lights, Romain -- Romain Tartière <romain.tartiere@xxxxxxxxxxxxxx> HealthGrid SysAdmin pgp: 3BB8 9543 B4F2 3EFA 7478 0BA0 0F8D DB2D B9E4 7019 (ID: 0xB9E47019) (plain text =non-HTML= PGP/GPG encrypted/signed e-mail much appreciated)
Attachment:
pgpBIURAJOEnu.pgp
Description: PGP signature