shell: Add handling for symbolic input and output of values

The symbols are derived from the constant definitions.