We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 45eef8f commit dd467f7Copy full SHA for dd467f7
distrobox-enter
@@ -712,8 +712,8 @@ if [ "${unshare_groups:-0}" -eq 1 ]; then
712
fi
713
714
# Generate the exec command and run it
715
-cmd="$(generate_enter_command | tac)"
716
-# Reverse it with tac so we can reverse loop and prepend the command's arguments
+cmd="$(generate_enter_command | awk '{a[i++]=$0} END {for (j=i-1; j>=0;) print a[j--]}')"
+# Reverse it so we can reverse loop and prepend the command's arguments
717
# to our positional parameters
718
IFS='
719
'
0 commit comments