sslug-teknik team mailing list archive
-
sslug-teknik team
-
Mailing list archive
-
Message #98782
Re: Scripting problem
On 2009-08-05 14:34, Kim Jensen wrote:
> Når jeg tester linien direkte, så fungerer det fint, men i scriptet
> fejler den!
Får du något felmeddelande?
$ for skal in bash sh; do F=foo $skal -c 'echo ${F/foo/bar}'; done
bar
sh: Bad substitution
Alltså, den syntaxen du använder för substitution verkar vara gilltig
i bash, men inte i bourne. Använder du bourne som skal när du kör
scriptet? Testa i så fall att byta till bash.
--
Olof Johansson
∎ PGP: 0x7FC0FBBA
∎ http://www.stdlib.se
Attachment:
signature.asc
Description: Digital signature
References