5.7 KiB
Harbour Shell / Script Runner 3.2.0dev (r2013-04-03 03:33)
Copyright (c) 2007-2013, Viktor Szakáts
Copyright (c) 2003-2007, Przemysław Czerpak
http://harbour\-project\.org/
Traduzione (it): (inserisci qui il tuo nome)
Sintassi:
hbrun <file[.hb|.prg|.hrb|.dbf]>|<option> [<parametro[i]>]
Descrizione:
hbrun is able to run Harbour scripts (both source and precompiled), and it also features an interactive shell prompt.
Opzioni riportate di seguito sono disponibili da riga di comando:
-
--hb:debug abilita lo script debugging
-
-help questo aiuto
-
-viewhelp Help esteso nel visualizzatore di testo
-
-longhelp aiuto esteso
-
-longhelpmd Help esteso in formato Markdown
Files:
- *.hb Script di Harbour
- *.hrb Harbour binario portabile (conosciuto anche come script Harbour precompilato)
- hbstart.hb startup Harbour script for interactive Harbour shell. It gets executed automatically on shell startup, if present. Possible locations (in order of precedence) [*]: .\, %APPDATA%\.harbour, <cartella hbrun>
- shell plugins plugins .hb e .hrb per la shell interattiva di Harbour. Possono essere situati in [*]: %APPDATA%\.harbour\
- .hb_history memorizza la cronologia dei comandi per la shell interattiva di Harbour. E' possibile disattivare la cronologia creando la prima linea 'no' (senza virgolette e ritorno a capo). E' contenuta in [*]: %APPDATA%\.harbour\
- hb_extension list of extensions to load in interactive Harbour shell. One extension per line, part of line beyond a '#' character is ignored. Alternate filename on MS-DOS: hb_ext.ini. Resides in [*]: %APPDATA%\.harbour\
Costanti predefinite nei sorgenti:
- __HBSCRIPT__HBSHELL quando un file sorgente Harbour è eseguito come uno script di shell
- <standard Harbour> __PLATFORM__*, __ARCH*BIT__, __*_ENDIAN__, ecc...
Variabili d'ambiente:
- HB_EXTENSION lista di estensioni separate da spazio da caricare nella shell interattiva di Harbour
Shell API disponibile negli Harbour scripts:
- hbshell_gtSelect( [<cGT>] ) -> NIL
Cambia GT. Default [*]: 'gtwin' - hbshell_Clipper() -> NIL
Abilita la modialità di compatibilità Clipper (non-Unicode) - hbshell_include( <cHeader> ) -> <lSuccess>
Carica l'intestazione Harbour. - hbshell_uninclude( <cHeader> ) -> <lSuccess>
Scarica l'intestazione Harbour. - hbshell_include_list() -> NIL
Visualizza l'elenco di intestazione di Harbour caricato. - hbshell_ext_load( <cPackageName> ) -> <lSuccess>
Carica un pacchetto. Simile alla direttiva PP #request. - hbshell_ext_unload( <cPackageName> ) -> <lSuccess>
Scaricare pacchetto. - hbshell_ext_get_list() -> <aPackages>
Lista dei pacchetti caricati - hbshell_DirBase() -> <cBaseDir>
hb_DirBase() not mapped to script. - hbshell_ProgName() -> <cPath>
hb_ProgName() not mapped to script.
Note:
- .hb, .prg, .hrb or .dbf file passed as first parameter will be run as Harbour script. If the filename contains no path components, it will be searched in current working directory and in PATH. If not extension is given, .hb and .hrb extensions are searched, in that order. .dbf file will be opened automatically in shared mode and interactive Harbour shell launched. Non-standard extensions will be autodetected for source and precompiled script types. Note, for Harbour scripts, the codepage is set to UTF-8 by default. The default core header 'hb.ch' is automatically #included. The default date format is the ISO standard: yyyy-mm-dd. The default GT is 'gtcgi', unless full-screen CUI calls are detected, when 'gtwin' [*] is automatically selected (except for INIT PROCEDUREs).
- Puoi usare i tasti <Alt+V> nella shell interativa di Harbour per incollare il testo dalla clipboard.
- Values marked with [*] may be host platform and/or configuration dependent. This help was generated on 'win' host platform.
Licenza:
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA (or visit
their web site at http://www.gnu.org/).
License extensions:
- This source code must be kept and distributed as part
of the Harbour package and/or the placement of the tool sources
and files must reflect that it is part of Harbour Project.
- Copyright information must always be presented by
projects including this tool or help text.
- Modified versions of the tool must clearly state this
fact on the copyright screen.
- Source code modifications shall always be made available
along with binaries.
- Help text and documentation is licensed under
Creative Commons Attribution-ShareAlike 3.0:
http://creativecommons.org/licenses/by-sa/3.0/
Autore:
- Viktor Szakáts (vszakats.net/harbour)