HF RL Explorer

Task: Create a Bash Function to List Last 10 Files in a Directory

Task: Create a Bash Function to List Last 10 Files in a Directory: a task in Terminal-Lego-15k (Harbor dataset). In Bash, aliases do not support positional parameters like $1 . When you try to create an alias such as alias tail ls="ls -l $1 tail" , the $1 variable is expanded at the time of alias…

The task

In Bash, aliases do not support positional parameters like `$1`. When you try to create an alias such as `alias tail_ls="ls -l $1 | tail"`, the `$1` variable is expanded at the time of alias definition, not when the alias is executed.

Part of PrimeIntellect/Terminal-Lego-15k.