E
E
evgenyt20002019-03-31 23:49:04
linux
evgenyt2000, 2019-03-31 23:49:04

Why is the size of the story not displayed based on the results of the script?

Good evening!
The size of the history is not displayed based on the results of the script.
Can anyone suggest why?
He writes that he does not find it, in the console echo $HISTSIZE finds

#!/bin/bash

echo "Здравствуйте,$(whoami) ,размер Вашей истории $(HISTSIZE) команд."

Answer the question

In order to leave comments, you need to log in

1 answer(s)
X
xotkot, 2019-04-01
@evgenyt2000

$(variable) -- wrong
$(command) -- right
${variable} -- right $ { command
} -- wrong
set -o history

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question