Date: Sun, 22 Feb 1998 13:50:35 +0200 (IST) From: Eli Zaretskii To: Jude Dashiell cc: djgpp AT delorie DOT com Subject: Re: gdate program oddity In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk On Sat, 21 Feb 1998, Jude Dashiell wrote: > I can have output with gdate +"%A" or gdate +"%B" and both > are correct but combine them and you get nothing. Do you type this from COMMAND.COM? If so, this is a misfeature of COMMAND.COM: it treats `%' character specially (%foo% means the value of environment variable `foo') and doesn't provide an easy way to quote that character. You need to type `%' twice in a row to get a literal `%'. Try the following, one of them should work for you: gdate "+%%A %%B" gdate "+%%%%A %%%%B" Of course, from withing Bash, "+%A %B" works as well.