Brash v1.2.13 Release Notes7-Aug-2016: Updated
This is a pure bug fix release. There two basic bug fixes:
- popd occasionally failed. This has been corrected.
- the current directory in background threads was sometimes lost in favor of the program current directory -- possibly resulting major scripting malfunctions.
The enhancements described below are added to allow more clarity in the output of the .ls and the .date commands to make it easier to use them in scripts that manipulate the time.
The .ls command now has the --seconds option to cause it to print the time on the file in standard unix UTC time format -- which is as a integer representing the number of seconds since January 1, 1970 (Greenich Mean Time).
The command, .ls, also supports the "--sep=string" option that lets you choose a string to separate the fields in its .ls output. When you use --sep and specify a string other an a single space, you will see a compressed output that has fewer leading blanks than if you accept the default separator of a single character string.
The .date command now has a new option, -p, that lets you specify the time to be printed. The date string is processed by the public domain function, parse_date(), into a UTC time code for use by the .date function.
A bug fix is included in this release. The source code that processes command line options. and which is used in many script functions, had a bug in the handling of processing command line options that begin with "--". This has no bearing on the getopts command which uses the older bourne-shell compatible command line parameter processing. Needed Brash Enhancements and Caveats:
- eval exit should exit, but currently it does not.