Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

Recent content by pforhan

  1. P

    Replicating CMD's cd with wildcards?

    Basically, yeah. I can add the if logic to avoid this issue, it's just that, in my batch file, I went from this: cd %1*to this: rem change to requested dir. Use special rules when running under TCC: if (%@EVAL[1+1]%)==(2) goto cdUnderTCC cd %1* goto runMvn :cdUnderTCC if (%1)==(.) goto runMvn...
  2. P

    Replicating CMD's cd with wildcards?

    That's what I assumed. I know my usage is a bit odd, but so is Maven, for anyone who's used it. Maven allows you define a large hierarchy of projects, but frequently you just want to recompile a subset of those. Here's a typical use case: cd longNamedDomain mvn clean install cd...
  3. P

    Replicating CMD's cd with wildcards?

    That's interesting, in that it lists . and .. -- where @EXPAND and @FINDFIRST do not. Is that a defect?
  4. P

    Replicating CMD's cd with wildcards?

    By the way, I know TCC is not trying to be exactly like CMD... where is the line drawn between a defect/bug and intentional changes?
  5. P

    Replicating CMD's cd with wildcards?

    That solves the problem of missing . and .. in the @expand, certainly, but it looks like I'm stuck just directly checking for . and .. right now. Thanks for all the help!
  6. P

    Replicating CMD's cd with wildcards?

    I see this behavior, too, however it does not work for .* or ..* I've written the if logic for the . and .. cases, so that these will not go through the cd wildcard craziness. It should still work under CMD, too.
  7. P

    Replicating CMD's cd with wildcards?

    No, expanding either of those will be an arbitrary directory, and not the current directory or the parent directory. What this seems to boil down to is that . and .. are not in the list of directories listed by EXPAND or FINDFIRST... Here's what dir /ad shows: 2/02/2010 10:50...
  8. P

    Replicating CMD's cd with wildcards?

    Why? Because laziness rules my life. I want to run builds in one or more subdirectories, but not move from the current dir in the end. Furthermore, I just want to say doBuild dom *client serv where dom is short for domain, serv is short for server, and *client actually means web-client. I've...
  9. P

    Replicating CMD's cd with wildcards?

    In CMD.exe, I can do something like cd *doc*, and it will change into the first matching directory. TCC LE didn't like this. Is this an appropriate replacement? It seems to work. cd %@FINDFIRST[%1*]
  10. P

    Detecting TCC ?

    What's the best way to determine if TCC is the shell running a batch file? I'm using something like this: if not (%@EVAL[1+1]%)==(2) CMD command or if (%@EVAL[1+1]%)==(2) TCC command Is that my best bet? I was going to check %_VERSION, but it is not in LE...
Back
Top