Re: Où se documenter sur une expression comme ${1%/*} dans /bin/sh ?
On Mon, Jul 25, 2022 at 10:06:28AM CEST, bern <bern@taranig.net> said:
> Le 2022-07-25 09:49, Olivier a écrit :
> > Bonjour,
> >
> > Dans /etc:dhcp/debug sous Bullseye, j'ai trouvé l'instruction ci-après.
> > echo "$(date): entering ${1%/*}, dumping variables."
> >
> > Cette expression vaut /etc/dhcp/dhclient-exit-hooks.d dans ce cas
> > précis quand $1 vaut /etc/dhcp/dhclient-exit-hooks.d/monscript.
> >
> > Où trouver de la doc sur ce type d'expression (ie %/*) ?
> >
> > Slts
>
> man bash
>
>
man sh plutôt non ? Par défaut sh c'est dash, pas bash sous debian
--
Erwan
Reply to: