Difference between revisions of "Bunset"

From Scriptwiki
Jump to: navigation, search
m
m (corrected binary files-link)
Line 1: Line 1:
The bunset command is used to unset a [[Binary Files|binary file]].
+
The bunset command is used to unset a [[:Category:Binary Files|binary file]].
 
  <nowiki>bunset <&binvar> [&binvar &binvar ... &binvar]</nowiki>
 
  <nowiki>bunset <&binvar> [&binvar &binvar ... &binvar]</nowiki>
 
This unsets all specified binary files. Unlike [[unset]], bunset doesn't work with [[Wildcard|wildcards]].
 
This unsets all specified binary files. Unlike [[unset]], bunset doesn't work with [[Wildcard|wildcards]].

Revision as of 10:39, 29 September 2006

The bunset command is used to unset a binary file.

bunset <&binvar> [&binvar &binvar ... &binvar]

This unsets all specified binary files. Unlike unset, bunset doesn't work with wildcards.

Example

bset &test 1 65
echo -a $bvar(&test,0)
bunset &test
echo -a $bvar(&test,0)

In this case the first echo will echo "1" as &test is filled with 1 byte, the second echo will echo "0" as &test is unset.