Questions tagged [yash]

Questions about the yash shell

Yet another shell yash is a command line shell for UNIX-like operating systems.

The shell conforms to the POSIX.1-2008 standard (for the most parts), and according to its author is more conforming than some other POSIX-conforming shells.

Moreover, it has many features that are used for interactive use, such as command history and command line editing, array, recursive globbing, floating point arithmetic supports and a few unique features.

2 questions
16
votes
9 answers

Check variable is an array in Bourne like shell?

In Bourne like shell which support array variable, we can use some parsing to check if variable is an array. All commands below were run after running a=(1 2 3). zsh: $ declare -p a typeset -a a a=( 1 2 3 ) bash: $ declare -p a declare -a…
cuonglm
  • 150,973
  • 38
  • 327
  • 406
15
votes
2 answers

Slightly confused about whether printf in the yash shell is a built-in command or not

The yash shell has a printf built-in, according to its manual. However, this is what I see in a yash shell with default configuration: $ command -v printf /usr/bin/printf $ type printf printf: a regular built-in at /usr/bin/printf Is printf a…
Kusalananda
  • 320,670
  • 36
  • 633
  • 936