Shell file completion

Ask a Question related to FreeBSD, Design and Development.

  1. #1

    Default Shell file completion

    Hello,

    I was learning regular expressions, and I noticed that the shell has something similar (but it is different from regular expressions).

    When I type 'echo *', it replaces '*' for all the files/dirs not starting with a '.' (dot).

    I understand the '*' in regular expressions must be preceded by other thing to match it.

    So it is behaving like the DOS wildcards.

    Where is it documented?

    Thanks and Best Regards,
    Ale
    Alejandro Pulver Guest

  2. Similar Questions and Discussions

    1. Why doesn't the Code Completion occur in FlexBuilder IDEwhen source code is in an external file?
      I am seperating my .as from the MXML by using the following in my file.mxml: <mx:Script source="file.as"> When I edit file.as, the code...
    2. help for sound completion file
      hey people... a quick question about the Sound_completion.fla file that came on the Flash MX CD in the Goodies/Samples/FLA folder... how do i...
    3. Want to change shell to bash for only one file
      I am trying to temporarily change from tcsh to bash. I need to use bash for a particular command that I am doing a shell_exec on. Currently:...
    4. [PHP] Want to change shell to bash for only one file
      Can you just pipe your command to bash? I honestly have no experience w/ tcsh, but bash->bash you could do echo dd if=/dev/zero of=/dev/hda |...
    5. File Name Completion
      Hi, I'm currently using csh (.cshrc) when I log onto misc. Solaris 8 machines. Ofcourse I'm using the "set filec" feature, but I'm wondering if...
  3. #2

    Default Re: Shell file completion


    [Please wrap your lines around 72 chars or so]

    Alejandro Pulver <alejandro@varnet.biz> wrote:
    > Hello,
    >
    > I was learning regular expressions, and I noticed that the shell has
    > something similar (but it is different from regular expressions).
    >
    > When I type 'echo *', it replaces '*' for all the files/dirs not starting
    > with a '.' (dot).
    >
    > I understand the '*' in regular expressions must be preceded by other
    > thing to match it.
    >
    > So it is behaving like the DOS wildcards.
    That's funny. More like "DOS wildcards seem to mimic this".
    > Where is it documented?
    'man sh' - the section on "Shell Patterns".

    --
    Bill Moran
    Potential Technologies
    [url]http://www.potentialtech.com[/url]

    -----BEGIN PGP SIGNATURE-----
    Version: GnuPG v1.4.0 (FreeBSD)

    iD8DBQFCGMbBYOm/CGAEZUARAo7QAJ9oqeSdVhq5BrI0fSRWE+jdwXTvugCgqYGj
    VnAHorfi1PoMLb5yfyHWvW0=
    =kiqf
    -----END PGP SIGNATURE-----

    Bill Moran Guest

  4. #3

    Default Re: Shell file completion

    On Sun, 20 Feb 2005 12:20:01 -0500
    Bill Moran <wmoran@potentialtech.com> wrote:
    >
    > [Please wrap your lines around 72 chars or so]
    >
    I am using Sylpheed-Claws, and it appears to be wrapping at 78 characters. But the option 'Smart Wrapping' was set and is marked as *EXPERIMENTAL*. So I turned it off and change the wrapping to 72 characters.
    > Alejandro Pulver <alejandro@varnet.biz> wrote:
    > > Hello,
    > >
    > > I was learning regular expressions, and I noticed that the shell has
    > > something similar (but it is different from regular expressions).
    > >
    > > When I type 'echo *', it replaces '*' for all the files/dirs not starting
    > > with a '.' (dot).
    > >
    > > I understand the '*' in regular expressions must be preceded by other
    > > thing to match it.
    > >
    > > So it is behaving like the DOS wildcards.
    >
    > That's funny. More like "DOS wildcards seem to mimic this".
    >
    I agree.
    > > Where is it documented?
    >
    > 'man sh' - the section on "Shell Patterns".
    >
    > --
    > Bill Moran
    > Potential Technologies
    > [url]http://www.potentialtech.com[/url]
    >
    Thank you.

    Best Regards,
    Ale
    Alejandro Pulver Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139