Re: How to use the character dollar ($) in a command file ?
From: Martin Jarvis <smj_at_jbecpor.demon.co.uk>
Date: Mon, 8 Mar 1993 08:33:38 +0000
Message-ID: <C3KAG3.E58_at_jbecpor.demon.co.uk>
Received on Mon Mar 08 1993 - 09:33:38 CET
Date: Mon, 8 Mar 1993 08:33:38 +0000
Message-ID: <C3KAG3.E58_at_jbecpor.demon.co.uk>
Yves Noel (noel_at_citi.citilille.fr) wrote:
: I think the utilisation of the character dollar in an object name is not compatible
: with the signification of this same character under Unix, because object names in a
: command file are truncated when they contain it.
: My question is : how to protect the character dollar in a command file ?
If by command file you mean shell script then what's happening is that the object name is being translated as an environment variable.
Try putting quotes around the object name (single quotes that is).
Regards,
Martin
Martin Jarvis | John Brown E & C Ltd, smj_at_jbecpor.demon.co.uk | 1 Buckingham Street,Martin Jarvis /JBEC-Portsmouth, IT | Portsmouth, Hampshire, UK
Received on Mon Mar 08 1993 - 09:33:38 CET