delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1999/07/16/09:35:50

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
Sender: cygwin-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
Message-ID: <FCF810FE7713D311AADD006008A845162AF756@server.pixsci.com>
From: Mike Kuhl <mkuhl AT pixstream DOT com>
To: "'fladerr AT dk DOT ibm DOT com'" <fladerr AT dk DOT ibm DOT com>
Cc: cygwin AT sourceware DOT cygnus DOT com
Subject: RE: Problems with the syntax for initializing variables
Date: Fri, 16 Jul 1999 09:33:02 -0400
X-Mailer: Internet Mail Service (5.5.2232.9)

Hi,

I've had no trouble doing this.  Under a bash shell (cygwin B20.1), here's
what I got:

$ TID=`date +"%d%m%y%H%M%S"`
$ echo $TID
160799090157

You failed to mention the symptoms/problems you encountered under the bash
shell.  Did you receive an error message?  The phrase "I've tried the same
syntax in BASH-shell, but without luck." doesn't offer much in the way of
information for us to be able to help you.

Regards,

Mike.


---
Michael Kuhl          PixStream Incorporated
Sr. Test Designer     180 Columbia Street West
mkuhl AT pixstream DOT com   Waterloo, ON
(519) 884-4196 X2286  N2L 3L3
(519) 884-5949 (FAX)  http://www.pixstream.com



-----Original Message-----
From: fladerr AT dk DOT ibm DOT com [mailto:fladerr AT dk DOT ibm DOT com]
Sent: Friday, July 16, 1999 8:57 AM
To: cygwin AT sourceware DOT cygnus DOT com
Subject: Problems with the syntax for initializing variables




Hi !

I've problems with initialize a variable with a dynamic variable like
"date". In Korn Shell I've used the following syntax with success:

TID=`date +"%d%m%y%H%M%S"`

I've tried the same syntax in BASH-shell, but without luck. In BASH-shell
it only work for me with the following syntax:

date +"%d%m%y%H%M%S" > tid
read TID < tid

Can you help me !

Thanks in advance !

Med venlig hilsen/Best regards
Rune Flader

I/T Specialist, Business Solution Integration
IBM Denmark A/S, Sortemosevej 21, DK-3450 Allerød, Denmark
Phone +45 4523 9078,  Mobile +45 2346 6730,  Fax +45 4523 6809
Internet: fladerr AT dk DOT ibm DOT com



--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019