marimlem / minishell

0 stars 0 forks source link

expander: $_ most recent parameter #6

Closed marimlem closed 4 months ago

marimlem commented 4 months ago

$_ most recent parameter (or the abs path of the command to start the current shell immediately after startup).

marimlem commented 4 months ago

if implemented, needs to be accompanied with check, that char after _

  1. exists (could be $_\0, as to prevent errors in following checks)
  2. is not digit (if it is digit then the variable is $_1 and not $_)
  3. is not char (if it is char then the variable is $_a and not $_)
marimlem commented 4 months ago

not required by subject