Skip to content

print -v hickup #929

Description

@jghub

not sure whether this is as it should be but wanted to ask:

x=1 && print -v x # → 1
typeset -i x=1 $$ print -v x  # → @

that also happens in ksh93u+. maybe I am misunderstanding something about print -v? I have recently started to use it as a convenient way to get formatted output for arrays, especially associative arrays, but there the content was "string" anyway. so I am not sure what "without converting to string" regarding %B format means in printf --man and whether the described behaviour is to be expected.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    invalidThis does not seem right

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions