Print the value of an expression (examine)¶

examine expr1

Print value of an expression via typeset, let, and failing these, eval.

Single variables and arithmetic expressions do not need leading $ for their value is to be substituted. However if neither these, variables need $ to have their value substituted.

In contrast to normal zsh expressions, expressions should not have blanks which would cause zsh to see them as different tokens.

Examples:¶

examine x+1   # ok
examine x + 1 # not ok

See also

eval.

zshdb

Navigation

Contents:

  • Features
  • How to install
  • Entering the Zsh Debugger
  • Command Syntax
  • Command Reference
    • Breakpoints
    • Data
    • Files
    • Info
    • Running
    • Set
    • Stack
    • Show
    • Support
  • zshdb command

Related Topics

  • Documentation overview
    • Command Reference
      • Data
        • Previous: Evaluate a Zsh Expression (eval)
        • Next: Read in a Zsh Script (load)

Quick search

©2017, 2019, 2023 Rocky Bernstein. | Powered by Sphinx 1.8.6 & Alabaster 0.7.13 | Page source