---
There is currently no good way to sort files by mtime in the shell.
It's possible to do so with an ls that supports -t, but parsing ls is
problematic. It's possible using GNU find's printf %T and nul separated
lists with sort -z. Neither is a great option. This patch adds the
ability to sor
On Mon Nov 14, 2022 at 1:00 PM MST, Chet Ramey wrote:
> On 10/3/22 2:56 PM, Evan Gates wrote:
> > ---
> >
> > There is currently no good way to sort files by mtime in the shell.
> > It's possible to do so with an ls that supports -t, but parsing ls is
> >
I recently tried to use ] as an index in an associative array. While
it works fine after the array is declared, I could not figure out a
way to include it in the initial declaration.
To reproduce:
declare -A aarr
aarr[\]]=rbrac
declare -p aarr # this should print a legal declaration for aarr
eval
setup:
foo() { printf "%q\n" "$IFS" >&2; printf "%s\n" "$*" >&2; }
IFS=: read <<< "$(foo bar baz qux)"
bash 4.2 output:
:
bar:baz:qux
bash 4.3 output:
:
bar baz qux
IFS is still set within the function call, but isn't being used in the
expansion of "$*"
-emg
from bash(1):
Unless otherwise specified, primaries that operate on files follow
symbolic links and operate on the target of the link, rather than the
link itself.
On Mon, Feb 9, 2015 at 1:00 PM, Cheng Rk wrote:
>
>
> To bug-bash@gnu.org:
>
>
> According this documentation `help test`, I am expe
he devel branch HEAD.
-emg
From 4d533ebe10316dbb511088ecc92a4978ad3f0ad5 Mon Sep 17 00:00:00 2001
From: Evan Gates
Date: Wed, 8 Apr 2015 08:17:11 -0700
Subject: [PATCH] change __P to PARAMS in histfile.c
as far as I can tell histfile.c indirectly includes rlstdc.h not stdc.h
both define similar ma
On Mon, Oct 3, 2022 at 12:48 PM Chet Ramey wrote:
>
> On 10/1/22 6:38 AM, Emanuel Haupt wrote:
> > Static build of 5.2 fails to build on FreeBSD 13.1-RELEASE (amd64).
> >
> > The logic in m4/strtoimax.m4 is inverted. The following patch replaces
> > strtoimax() if and only if it is present and fun
Expand \m in prompts according to PROMPTTIMEFORMAT for the last
timed command. This is an easy way to get the result of time without
redirections by using @P expansions.
Add shopt prompt_time_all to time every command run. Used in combination
with \m the time of the previous command can be added
Quoting Evan Gates (2024-09-16 19:03:21)
> Expand \m in prompts according to PROMPTTIMEFORMAT for the last
> timed command. This is an easy way to get the result of time without
> redirections by using @P expansions.
>
> Add shopt prompt_time_all to time every command run. Used