opengnsys_ipxe/src
Michael Brown 25ec56e0ec [settings] Use a generic setting's own type as its default type
When fetching a named setting using a name that does not explicitly
specify a type, default to using the type stored when the setting was
created, rather than always defaulting to "string".  This allows the
behaviour of user-defined settings to match the behaviour of
predefined settings (which have a sensible default type).

For example:

  set server:ipv4 192.168.0.1
  echo ${server}

will now print "192.168.0.1", rather than trying to print out the raw
IPv4 address bytes as a string.

The downside of this change is that existing tricks for printing
special characters within scripts may require (backwards-compatible)
modification.  For example, the "clear screen" sequence:

  set esc:hex 1b
  set cls ${esc}[2J
  echo ${cls}

will now have to become

  set esc:hex 1b
  set cls ${esc:string}[2J  # Must now explicitly specify ":string"
  echo ${cls}

Signed-off-by: Michael Brown <mcb30@ipxe.org>
2012-09-10 14:25:04 +01:00
..
arch [sdi] Add support for SDI images 2012-09-05 14:11:01 +01:00
bin Rename .cvsignore files to .gitignore 2007-06-09 22:57:00 +01:00
config [sdi] Add support for SDI images 2012-09-05 14:11:01 +01:00
core [settings] Use a generic setting's own type as its default type 2012-09-10 14:25:04 +01:00
crypto [legal] Update FSF mailing address in GPL licence texts 2012-07-20 19:55:45 +01:00
doc [build] Rename gPXE to iPXE 2010-04-19 23:43:39 +01:00
drivers [ipoib] Expose Ethernet-compatible eIPoIB link-layer addresses and headers 2012-08-31 21:22:59 +01:00
hci [settings] Use a generic setting's own type as its default type 2012-09-10 14:25:04 +01:00
image [legal] Update FSF mailing address in GPL licence texts 2012-07-20 19:55:45 +01:00
include [settings] Use a generic setting's own type as its default type 2012-09-10 14:25:04 +01:00
interface [ipoib] Expose Ethernet-compatible eIPoIB link-layer addresses and headers 2012-08-31 21:22:59 +01:00
libgcc [build] Mark __intel_new_proc_init with __libgcc rather than cdecl 2009-08-03 15:56:10 +01:00
net [ipoib] Expose Ethernet-compatible eIPoIB link-layer addresses and headers 2012-08-31 21:22:59 +01:00
tests [legal] Update FSF mailing address in GPL licence texts 2012-07-20 19:55:45 +01:00
usr [ipoib] Expose Ethernet-compatible eIPoIB link-layer addresses and headers 2012-08-31 21:22:59 +01:00
util [util] Fix up checksum in UNDI ROM header, if present 2012-08-15 13:22:12 +01:00
.gitignore [build] Add support for local configuration files 2010-03-26 19:07:22 +00:00
Makefile [build] Include git commit within version string when available 2012-07-20 18:08:52 +01:00
Makefile.housekeeping [build] Display commands for dependency generation when building with V=1 2012-08-27 00:24:23 +01:00
doxygen.cfg [build] Remove PACKED macro 2010-05-29 23:49:47 +01:00