Re: Make cd built-in as resilient as mkdir -p built-in

2025-04-12 Thread Laurent Lyaudet
Le ven. 11 avr. 2025 à 18:11, Chet Ramey a écrit : > On 4/10/25 12:29 PM, Laurent Lyaudet wrote: > > Hello :), > > > > Recently, I noticed during tests that mkdir -p can handle paths beyond > > PATH_MAX that is currently 4096. > > But cd cannot do this. > >

Re: Make cd built-in as resilient as mkdir -p built-in

2025-04-10 Thread Laurent Lyaudet
Le jeu. 10 avr. 2025 à 18:29, Laurent Lyaudet a écrit : > Hello :), > > Recently, I noticed during tests that mkdir -p can handle paths beyond > PATH_MAX that is currently 4096. > But cd cannot do this. > You have to split your cd commands to go to the farthest directory. &

Re: Make cd built-in as resilient as mkdir -p built-in

2025-04-10 Thread Laurent Lyaudet
Le jeu. 10 avr. 2025 à 18:30, Laurent Lyaudet a écrit : > > > Le jeu. 10 avr. 2025 à 18:29, Laurent Lyaudet > a écrit : > >> Hello :), >> >> Recently, I noticed during tests that mkdir -p can handle paths beyond >> PATH_MAX that is currently 4096. >>

Make cd built-in as resilient as mkdir -p built-in

2025-04-10 Thread Laurent Lyaudet
ax-to-8092-and-name-max-to-512/58748/20?u=laurent-lyaudet ) Best regards, Laurent Lyaudet #!/bin/bash # base 16, each lines count for 64, 64*64=4096 mkdir -p 0123456789012345/0123456789012345/0123456789012345/0123456789012345/\ 0123456789012345/0123456789012345/0123456789012345/01234