why does this command give this output:
$ echo !#
echo echo
echo
$
I read about the !, how it negates or expands history, depending on context.
I just can’t figure out why it behaves this way when joined with #.
why does this command give this output:
$ echo !#
echo echo
echo
$
I read about the !, how it negates or expands history, depending on context.
I just can’t figure out why it behaves this way when joined with #.