[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#11228: Bug in ls?

From: Bob Proulx
Subject: bug#11228: Bug in ls?
Date: Thu, 12 Apr 2012 09:12:48 -0600
User-agent: Mutt/1.5.21 (2010-09-15)

Chris Jones wrote:
> Yes, the find command is a bit too much for me in.. regular interactive
> use - i.e. if it has even an outside chance of doing something I might
> regret, I usually choose to run a test first.. and if still in doubt..
> I back up the target tree(s).

Oh, it isn't so bad.  And the more you use it the more comfortable you
will be with it.  Using find in the way Andreas wrote is my preferred

Andreas wrote:
  find /tmp/z1 -name '*bk*' -exec mv -t /tmp/z2 {} +

> As to dotglob, I knew of its existence.. but it never made it to my
> active vocabulary.
> The problem with ‘shopt -s dotglob; command’ is that it leaves the
> option set for the ensuing session. 

You missed seeing Pádraig's comment about how he uses it.

Pádraig wrote:
  I usually do the above with something like:
  (shopt -s dotglob; mv /tmp/z1/*bz* /tmp/z2)

By using the subshell with the parens it only sets it for the
subshell.  When the subshell exits the dotglob setting goes away with
it.  The parent shell never has it set that way.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]