summaryrefslogtreecommitdiffstats
path: root/fish/glob.c
Commit message (Collapse)AuthorAgeFilesLines
* fish: glob command now expands /dev/ patterns (RHBZ#635971).Richard W.M. Jones2012-05-021-2/+141
| | | | | | | | | | | | | For example: ><fs> glob echo /dev/* /dev/vda /dev/vda1 /dev/vda2 /dev/vda3 ><fs> glob echo /dev/v*/* /dev/vg_f16x64/lv_root /dev/vg_f16x64/lv_swap
* fish: Clean up glob code and make it return error if malloc fails.Richard W.M. Jones2012-05-021-39/+54
| | | | | | This commit tidies up the code for the 'glob' command. It also makes the command return an error if malloc fails (previously it would just print a message but not return any error indication).
* Remove "convenience header" "gettext.h" and use <libintl.h> instead.Richard W.M. Jones2012-05-011-0/+1
| | | | | | | | | | | | gettextize provides a local file called "gettext.h". Remove this and use <libintl.h> from glibc headers instead. Most of this change is mechanical: #include <libintl.h> in every C file which uses any gettext function. But also we remove the gettext.h file, and adjust the "_" macros. Note that this effectively removes the ./configure --disable-nls option, although we don't know if that ever worked.
* Replace 'int' with 'size_t' passim.Richard W.M. Jones2012-03-131-4/+4
| | | | | Analyze all uses of 'int' in the code, and replace with 'size_t' where appropriate.
* Tempus fugit.Richard W.M. Jones2012-01-181-1/+1
| | | | Update all copyright dates to 2012.
* Update FSF address.Matthew Booth2011-11-081-1/+1
|
* fish: Make exit_on_error into a completely local variable.Richard W.M. Jones2011-01-181-1/+1
| | | | | | Note that 'time' and 'glob' (which both run subcommands) do not correctly pass the exit_on_error flag in the remote case. This is not a regression: the current code doesn't work either.
* fish: Change 'int argc' to 'size_t argc' throughout.Richard W.M. Jones2010-10-211-5/+6
|
* fish: Fix glob command (RHBZ#635969).Richard W.M. Jones2010-10-011-9/+3
| | | | | | | | | This is a fix for the glob command in guestfish which was inadvertently broken in commit c359347dd42c9f5b875630537ee3641264826b89. This also appears to fix: https://bugzilla.redhat.com/show_bug.cgi?id=635969 glob echo mkfs ext2 /dev/vd[b-t]1 prints garbage
* generator: Generate guestfish-only commands.Richard W.M. Jones2010-09-181-1/+1
| | | | | | The guestfish-only commands such as 'alloc' and 'edit' are now generated from one place in the generator instead of being spread around ad-hoc in the C code.
* fish: glob should only print commands when trace mode is enabled.Richard Jones2010-09-101-5/+7
|
* Convert all TABs-as-indentation to spaces.Jim Meyering2009-08-031-27/+27
| | | | | | | | | | | Do it by running this command: [exempted files are matched via .x-sc_TAB_in_indentation] git ls-files \ | pcregrep -vf .x-sc_TAB_in_indentation \ | xargs pcregrep -l '^ *\t' \ | xargs perl -MText::Tabs -ni -le \ '$m=/^( *\t[ \t]*)(.*)/; print $m ? expand($1) . $2 : $_'
* remove trailing blanksJim Meyering2009-07-031-1/+1
|
* Guestfish pipes.Richard W.M. Jones2009-06-281-1/+1
|
* Incorrect assignment on glob error path.Richard W.M. Jones2009-06-241-1/+1
|
* Add 'glob' command for guestfish.Richard Jones2009-06-221-0/+163