Custom Query (44 matches)

Filters
 
Or
 
  
 
Columns

Show under each result:


Results (28 - 30 of 44)

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
Ticket Resolution Summary Owner Reporter
#24 fixed Add ability to format internal variables Gregg Young Lewis Rosenthal
Description

Presently, _DATE (in the US locale) results in:

mm-dd-yy

which makes it unsuitable for such things as using it in batch scripts for creating date-based directory names, when one wants to sort them by yyyy-mm-dd.

Similarly, _DAY results in:

dd

or

d

(the latter when the current date is prior to the 10th of the month). This means that when padding is desired, it must be explicitly stated, as in:

%@right[2,0%_DAY%]

which can be cumbersome for the part-time scripter, such as I.

I propose adding the ability to format such strings either with INI settings or ENV vars, e.g.:

SET DATEFMT=YYYY-MM-DD

or

SET DAYFMT=DD

Use case:

What I wanted was a simple one-liner for a command line to create a target directory for rsync, as in:

X:\{hostname}\%_DATE\{volume}

so that the above would be expanded to something like:

X:\laptop\2013-12-08\DATA

To achieve that formatting with 4OS2 3.08, the code would be:

X:\{hostname}\%[_YEAR]-%@right[2,0%_MONTH]-%@right[2,0%_DAY]\{volume}

which seems a bit cumbersome.

#23 invalid Problems compiling when set makeshell= sh.exe Tellie
Description

Hi I have also set the set CDPATH=.;..;..\..; in my cmd file, as Andy told me to do. also i have set makeshell= sh.exe

When i compile a program i all-ways see:

"c:\usr\share\qt4\mkspecs\os2-g++"\runmapsym.cmd "c:\usr\share\qt4\mkspecs\os2-g++"\wmapsym.cmd opentail.map opentail.sym c:\usr\share\qt4\mkspecs\os2-g++runmapsym.cmd: not found make.exe: * [opentail.exe] Error 127

also when i run make clean i get:

[n:\qt_src\opentail]make clean del moc_mainwindow.cpp moc_tailwidget.cpp moc_highlighteditor.cpp moc_traylauncher.cpp moc_settingsdialog.cpp whighlight.cpp moc_filelist.cpp moc_QRecentFilesMenu.cpp moc_smtp.cpp moc_fileinfoframe.cpp >nul 2>&1 del: not found make.exe: [compiler_moc_header_clean] Error 127 (ignored) del qrc_Icons.cpp qrc_TextFiles.cpp qrc_translations.cpp >nul 2>&1 del: not found make.exe: [compiler_rcc_clean] Error 127 (ignored) del ui_mainwindow.h ui_highlighteditor.h ui_settingsdialog.h ui_newhighlight.h ui_fileinfoframe.h >nul 2>&1 del: not found make.exe: [compiler_uic_clean] Error 127 (ignored)

and sometimes i also see a : SYS0003: The system cannot find the path specified.

If i do same building but then i have Set makeshell=cmd.exe Then it's building fine .. No error about the : c:\usr\share\qt4\mkspecs\os2-g++runmapsym.cmd: not found or the DEL not found or a sys003 error.

#22 worksforme Incompatibility CDPATH, ash, sh, porting from *nix andi.b
Description

Hint for porting *nix software -


There is a known problem with ash or something like because DPATH will have *ix semantics, as will all the other path like environment variables.

I prefer to handle these kinds of requirement locally rather than globally. For example, here's a bit from one of my session setup scripts which updates CDPATH for *ix semantics.

:: 2009-11-27 SHL Adjust CDPATH to have unix semantics to keep ash happy if defined CDPATH if "%@substr[%CDPATH,0,2]" != ".;" set CDPATH=.;%CDPATH


See http://bugs.ecomstation.nl/view.php?id=3529

set CDPATH=.;..;..\..; (leading .;) works here

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
Note: See TracQuery for help on using queries.